video file security
Moderator: General Moderators
-
reallynew2php
- Forum Newbie
- Posts: 3
- Joined: Mon Nov 03, 2008 12:23 pm
video file security
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
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