Answer the question
In order to leave comments, you need to log in
How to write a .htaccess rule to ask for a password?
I ask experts for help in writing a rule for requesting htaccess authorization if client IP = 192.168.1.1?
Answer the question
In order to leave comments, you need to log in
AuthUserFile /var/www/mysite/.htpasswd
AuthName "Please Log In"
AuthType Basic
require valid-user
Order allow,deny
Allow from 192.168.1.1
satisfy any
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question