Answer the question
In order to leave comments, you need to log in
[.htaccess] Authorization request if IP != 127.0.0.1
Hello. Friends, please help me configure .htaccess in such a way that the authorization request is not issued if the visitor's IP address = 127.0.0.1
A user with any other IP receives an authorization request and enters with the require valid-user
rule
The current state of .htaccess is quite standard
AuthName "Access desk #3.55. Any questions? Call 3-442"
AuthType Basic
AuthUserFile /home/path/.htpasswd
require valid-user
Answer the question
In order to leave comments, you need to log in
www.askapache.com/htaccess/apache-authentication-in-htaccess.html#allow-conditional
Order deny,allow
Deny from all
AuthName "htaccess password prompt"
AuthUserFile /home/askapache.com/.htpasswd
AuthType Basic
Require valid-user
Allow from 172.17.10.1
Satisfy Any
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question