Best way to store secure files?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
emkay
Forum Newbie
Posts: 2
Joined: Thu Jul 29, 2010 6:40 am

Best way to store secure files?

Post by emkay »

My new system will have an upload functionality. However, these files should only be available to specific accounts. How to do prevent people from just typing the URL of the file in the address bar and then downloading the file without the appropriate permissions?
User avatar
Jade
Forum Regular
Posts: 908
Joined: Sun Dec 29, 2002 5:40 pm
Location: VA

Re: Best way to store secure files?

Post by Jade »

You can change the permissions of the folder you store the files in or upload the files to a directory outside your public_html folder. I lean towards the second option.
Post Reply