Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Hiding JW Player license key


When JW Player is embedded as described in the docs, the license key is exposed to everyone accessing the player page by looking at the html source code. Is there a way to prevent this from happening? Thanks!

5 Community Answers

Ethan Feldman

JW Player Support Agent  
-1 rated :

You can put it into an external JS file and then obfuscate it using a tool, that might help.

tfkuipers

User  
3 rated :

Actually the answer should be 'no, that is not possible'. Because the player is just client-side javascript running in the browser. If someone is interested in your key they can always extract it. There is no need to view the html source, just open the javascript console of your browser and enter: jwplayer.key

Ethan Feldman

JW Player Support Agent  
-2 rated :

Yes, it isn’t possible to totally hide it, since it is set client side. What I mentioned above will just deter less technically savvy folks.

alecosnet

User  
-1 rated :

Hi! What do you think about putting the license key inside jwplayer.js? Not at the top but just at the end of the file... it's possible?

This would help me avoiding to edit 200 php files since I put the call of jwplayer also where I don't need... thanks...

at the end of jwplayer.js this code:

jwplayer.key="myprivatelicensekey";

Ethan Feldman

JW Player Support Agent  
1 rated :

Yes, that is totally possible to do.

This question has received the maximum number of answers.