Jump to content

[SOLVED] Limit Files Only To Users


hoopplaya4

Recommended Posts

Hi All,

 

I've got a current website where users login, and then have the ability to upload files for other members of the website.

 

When a user uploads a file, it is uploaded to http://www.mydomain.com/secure/uploads/abc.doc

 

My question is: How do I make these files secure (ex. abc.doc) so that they can only be downloaded by members of the site, and not some random person who happens to make a google search for "abc.doc" and happens to come across my site.

 

Thanks!

 

 

Link to comment
https://forums.phpfreaks.com/topic/156163-solved-limit-files-only-to-users/
Share on other sites

Put them outside of the root directory and make a download script to access/dish out the file to the user. Alternatively, you can just make the link available to the user and not the world. If google cannot see the item it will not index it.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.