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
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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.