Link to home
Start Free TrialLog in
Avatar of signpost2
signpost2

asked on

Disable Right Click on a web site using streamed video

Hi I  am working on a site that streams videos. I need to disable right click to hide the URL of the file do you know of any way to do this?
Avatar of Eternal_Student
Eternal_Student
Flag of United Kingdom of Great Britain and Northern Ireland image

Here is a script to disable for IE.

http://www.dynamicdrive.com/dynamicindex9/noright.htm

I don't think you can do this for Mozilla .. besides .. you can never stop anyone from finding the source of your video if they really want to. Right click disabling certainly wont stop most people who are even remotely internet savvy.
Avatar of jalalmegadeth
jalalmegadeth

Hi
I agree with Eternal Student, the client could have disabled JS before viewing the video


check this link and maybe you'll get a better idea
http://www.karakas-online.de/forum/viewtopic.php?t=3938

GL
You can hide the URL of the video to prevent direct linking, here is an example in ASP but it is similar in PHP.  This would prevent other people linking to the video and using your bandwidth, which is a useful thing.

https://www.experts-exchange.com/questions/22455648/protection-from-download.html

However, when you stream the video to a browser to be viewed, the person can capture and save the stream.

https://addons.mozilla.org/firefox/2254/ is but one way.

Disabling the right mouse button will be useless as mentioned above.  Also there are keyboard shortcuts to view source as well as developer plugins for both IE and FF which allow you to dissect and view the source of a page and not use right click inside the browser window.

Regards,
Rod

 

Avatar of Shalom Carmel
rdivilbiss,
> This would prevent other people linking to the video and using your bandwidth.

using this solution hides the original mp3 file, but lets people use an equivalent url that can be linked to.

a better but more complicated solution is to add some verification code to the asp
file, that checks referer information, session cookies etc. then, if verification fails, you can send an equivalent of http 403  - a sound of a police siren instead.

ShalomC
ASKER CERTIFIED SOLUTION
Avatar of rdivilbiss
rdivilbiss
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial