Forum Moderators: phranque
Ex:
end user navigates to my website at: http://www.example.com/video
on the video page, end user is watching an .mp4 video. right clicking on it and selecting save as source and he is able to download/save the file.
How can this be prevented?
alternatively, if he/she is to view the code ('src="com/mp4/video.mp4"') and plugs that into the URL at the end:
http://www.example.com/video/com/mp4/video.mp4
the prompt does not happen nor are they able to view the video.
Hope that is clear enough.
thanks!
Things you might want to look into include checking for a cookie or session hash, time-based urls, referrers, user agents, the user's ip address and other parts of the request that make it possible for you to uniquely identify a whether a request for your video is legitimate (i.e. in the right context).
The combination of these factors can make it more difficult for a casual visitor to access your video directly. Realize though that they could always capture the stream while the video is being watched :)
Even if you prevent right-click downloads, the user might press ctrl-u and look at your source code to find the url...
Hot-linking is a slightly different matter. There are a lot of threads about it on WebmasterWorld.
"Quick & Easy" isn't really possible, user jdMorgan makes some very good points at the bottom of this thread about image hotlinking: [webmasterworld.com...]