HTML can't link to above the root directory. You have to use a server side script to read the file from there into the script and have the script in the folder where you want the file accessible from.
Can you elaborate please? So if there were a member area and after logging in you could play videos through a flash player. How would the video file be accessed?
Instead of referencing the flash file directly from the page you instead reference a server side script. That script validates that it has been accessed in a way where the flash file is allowed to be displayed and if it has it then sets up the appropriate headers to identify that it is a flash file and it then reads the content of the flash file into itself.
So your server side script basically contains three pieces of code.
1. validate that the file has been requested from somewhere that is allowed
2. set the headers to identify this file as containing flash and pass that to the browser.
3. copy the content of the flash file from above the root folder and pass it to the browser.
Thanks for this info. Will this work if the file needs to be embedded on the page. Typically there is one Flash Player which is not protected that references a video file that is.
Thanks again.
Bookmarks