Is there a way to protect files in a specified directory so that only people who are logged on have access to it?
I’m not looking to hide the path to the file, but to actually limit it’s contents to only people who have logged into the site. This way if somebody were to actually have the direct path to the file, they would not be able to download it. I’m also not looking to use .htaccess to password protect the directory and then supply the information to access to members. Unless there is a way to do what I want with it, but I do not know of a way.
-
☆ A M B ☆
- 24,524 Posts
Two options would be to have the files outside of the web root, so only your download snippet would access them, or to store them as BLOBs in the database.