jspeybro
10-27-2004, 02:37 PM
Hi, I've been looking for a script for htaccess but I could only find pieces. I don't know if it can be combined.
this is what I want to accomplish:
I want to allow access from the ip-range 134.xxx.xxx.xxx and request authentication if the visitor is outside this range.
I can use this code to request authentication:
AuthName "Restricted area"
AuthType Basic
AuthUserFile /full/path/to/.htpasswd
Require valid-user
and something like this to allow the ip-range 134.xxx.xxx.xxx:
<Limit GET HEAD POST>
order allow,deny
allow from 134
deny from all
</LIMIT>
any body knows how I can combine this?
Johan
this is what I want to accomplish:
I want to allow access from the ip-range 134.xxx.xxx.xxx and request authentication if the visitor is outside this range.
I can use this code to request authentication:
AuthName "Restricted area"
AuthType Basic
AuthUserFile /full/path/to/.htpasswd
Require valid-user
and something like this to allow the ip-range 134.xxx.xxx.xxx:
<Limit GET HEAD POST>
order allow,deny
allow from 134
deny from all
</LIMIT>
any body knows how I can combine this?
Johan