Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Protecting folders
March 24, 2005, 2:15 pm
rate this thread
I have a data driven website. Part of the website is a downloads
section - all the downloads are help in a folder called "downloads".
When a general user (i.e. one that doesn't have a log in) uses the site
and access the downloads page they are given a list of general
downloads. When a member who has logged in uses the site, the same page
presents the general downloads and the member only downloads.
This all works fine.
A slight hole in this security, however, is that the downloads folder
is not protected. I have moved the member downloads into a subfolder
within downloads. How can I protect this so that only people who are
logged in can access it - so that general users cannot accidentally
browse it or make a direct link to the documents within it?
Hope this makes sense.
Re: Protecting folders
Hi - thanks. I thought about that but it turns out that the webserver
doesn't allow users to browser the directory structure anyway. So I
guess the biggest problem is people guessing the names of the downloads
and linking to them directly. I guess this is unlikely to happen... :oS