Hi Everyone,
I'm trying to build a script that will display a .mov that is located in a directory outside my public_html directory for security reasons. I want to use the script to first ensure that the request to view the movie came from a specific http host, and if not, exit before the video is displayed. I also want to avoid people fishing in the directory where the videos are located, hence having outside the public dir.
Any ideas on how to tackle this, or know of any existing scripts that would work?
videos in "safe directory"
Moderator: General Moderators
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
readfile() may be of interest.