stanbridge
12-04-2008, 05:09 AM
I am trying to setup a protected folder on my website with the following two rules:
1) Users coming from one of our two static IPs can access the folder without needing to enter a username or password.
2) All other attempts to access the folder are met with a username and password login.
I have been able to meet point 1 with the following .htaccess file code...
#deny all access
deny from all
allow from 111.222.333.444 111.222.333.555
<IfModule mod_speling.c>
CheckSpelling On
</IfModule>
I have been able to meet point 2 by using the Dynamic Drive htaccess generator at the following location: http://tools.dynamicdrive.com/password/
Unfortunately my attempts to combine the code has failed.
Is this even possible. If so, can someone show me how?
Cheers,
Stanbridge
1) Users coming from one of our two static IPs can access the folder without needing to enter a username or password.
2) All other attempts to access the folder are met with a username and password login.
I have been able to meet point 1 with the following .htaccess file code...
#deny all access
deny from all
allow from 111.222.333.444 111.222.333.555
<IfModule mod_speling.c>
CheckSpelling On
</IfModule>
I have been able to meet point 2 by using the Dynamic Drive htaccess generator at the following location: http://tools.dynamicdrive.com/password/
Unfortunately my attempts to combine the code has failed.
Is this even possible. If so, can someone show me how?
Cheers,
Stanbridge