Page 1 of 1

Protecting a video file in public

Posted: Thu Jun 26, 2008 9:53 am
by karekanu
I have a video files uploaded in /upload folder.
So anyone could access it directly using http://www.example.com/upload/video1.flv
I want only the registered users to download or view the video, how
could i do it using sessions?. I've used sessions to authentication the users.

Sorry for the noobness

Re: Protecting a video file in public

Posted: Thu Jun 26, 2008 12:17 pm
by Christopher
Move the video outside of the public directory or into a protected directory. Then write a PHP script that does Access Control and have it send the file to the browser. Remember to set header properly.

Re: Protecting a video file in public

Posted: Thu Jun 26, 2008 12:52 pm
by Kieran Huggins
the bottom line is: if people can watch your video, they can also save it. DRM is fundamentally flawed at a conceptual level.