Forum Moderators: phranque

Message Too Old, No Replies

Indexing and .htaccess

         

Protection

1:22 am on Feb 11, 2004 (gmt 0)

10+ Year Member



My webhost disabled file indexing so I used this code in .htaccess to display the files of the folders I want to see:

Default: Options All

However, the problem is that I need to enable this for one important folder. Is there a way to make the folder files viewable only by staff members and not viewable by guests?

The problem with password protection is that it protects everything in the folder including the subfolders and files. I want people to be able to hotlink to my files without being able to see the files if they type www.mysite.com/download
Only the people I authorize should be able to view these files via http.

Is there any solutions to my problem?

jdMorgan

6:07 am on Feb 13, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



A simple solution might be to test {REMOTE_ADDR} and check the IP addresses. This would only work for in-house access, or a very short list of "allowed" IP addresses or IP address ranges.

Jim