Page 1 of 1
Protecting Videos in PHP
Posted: Tue Jun 08, 2010 3:29 am
by RaoYasir
Hi!
We are going to develop a portal in PHP which will provide the different contents for view only (all contents are paid and could only be viewed). Our contents may include pdf, txt, video or audiofiles.
Could it is possible that user can only view the videos but not be able to download them (even using any software).
If its possible then please provide me the suggestion on how to do it. and if its not possible then please explain it why it cant be done.
Thanks in Advance.
Regards,
Muhammad Yasir
Re: Protecting Videos in PHP
Posted: Wed Jun 09, 2010 12:50 pm
by kaisellgren
There is no bulletproof way to do that. If the user can view the video, it means that the browser transfers the bits, thus, with knowledge it can always be "downloaded". Your only option is to make it as hard as possible to get those videos so that most of your users will not waste their time and rather pay for it.
Re: Protecting Videos in PHP
Posted: Tue Jun 15, 2010 9:45 pm
by André D
Kai is right, but there are steps you can take to make it harder for people to save your video content. Depending on how you display it, there are generally two ways deliver a video:
progressive download and
streaming media.
Progressive download works just like any other file download. Just like a .jpeg, for example, the file is downloaded and stored in the browser cache (which depending on the browser, may be written to the native file system). When video is served over a streaming media protocol, most players store the data in an in-memory buffer; the bits are never written to disk, and the entire video stream is usually never in memory all at once.
If you're embedding the videos with Flash, you could use
Wowza Media Server or
Adobe Flash Media Server. Another option is an
Amazon CloudFront Streaming distribution in conjunction with their "private content" feature, which is based on Adobe Flash Media Server.
Re: Protecting Videos in PHP
Posted: Wed Jul 07, 2010 1:38 pm
by Bind
without digital rights management of some kind, anyone can snag and reconstruct the stream with various free and commercial http data/stream-copy utilites.
the best I have found is using the microsoft silverlight player in combination with their media server and digital rights management.
unfortunately this is not a free solution.
netflix uses this mechanism very successfully to protect and display their view-it-now streaming video content.