Solved

Disable Right Click on a web site using streamed video

Posted on 2007-03-20
6
155 Views
Last Modified: 2013-11-19
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?
0
Comment
Question by:signpost2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 18

Expert Comment

by:Eternal_Student
ID: 18755967
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.
0
 
LVL 5

Expert Comment

by:jalalmegadeth
ID: 18756174
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
0
 
LVL 29

Expert Comment

by:rdivilbiss
ID: 18756807
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.

http://www.experts-exchange.com/Other/Miscellaneous/Q_22455648.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

 

0
 
LVL 33

Expert Comment

by:shalomc
ID: 18765639
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
0
 
LVL 29

Accepted Solution

by:
rdivilbiss earned 250 total points
ID: 18766636
shalomc,

Yes it is important to take additional steps if you goal is indeed to prevent download abuse.

I was just glossing over the finer points and getting straight to the how to stream the download part as one of many possible solutions to the question.  But you are correct to point out you'll need more if you do not want the same links & parameters to always retrieve the same file.

Thanks
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question