Page 1 of 1

video file security

Posted: Mon Nov 03, 2008 12:27 pm
by reallynew2php
I run an eLearning website and I store all my videos in one directory. I would like to create a .htaccess file to restrict access to this directory so that someone just can't type the url address of the video and watch it. My question is can I write code in PHP that will supply the username and password for htaccess so that I can play the video from a webpage?

Re: video file security

Posted: Fri Nov 07, 2008 8:36 am
by josh
No. To worsen the problem your webserver is doing things like byte code range requests for psuedo streaming you're going to have to implement in PHP if you want PHP to be the mediator between the file and the user