.htaccess – Basic authentication for all except some ips

AuthType Basic
AuthName "Please Log In"
AuthUserFile /some/path/.htpasswd
Require valid-user
Order deny,allow
Deny from all
Allow from 127.0.0.1
Satisfy any

Leave a Reply

Your email address will not be published. Required fields are marked *