Solved

Disable Right Click on a web site using streamed video

Posted on 2007-03-20
6
150 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
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 32

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Problem to be resolved in this article Currently, development of website and web application can be done without writing thousands of lines of programming code by hand. Description This can be done through by using a open source framework such …
Accessibility and Usability are two concepts that seem to be closely related.  But, too many people seem to have a distorted perception of them. During last five years, those two words have come to the day-to-day work of almost every web develope…
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

762 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now