Is there a way to specify certain ip's to circumvent basic htaccess authentication?
I'm wanting it so that if someone from the internet accesses my site, they have to enter a password, but if i access it from localhost, it doesn't.
Printable View
Is there a way to specify certain ip's to circumvent basic htaccess authentication?
I'm wanting it so that if someone from the internet accesses my site, they have to enter a password, but if i access it from localhost, it doesn't.
Code:AuthName "Authorised Users Only."
AuthType Basic
AuthUserFile /.htpasswd
require valid-user
Order deny,allow
Deny from all
Allow from 127.0.0.1
Allow from your.static.ip.addr
Allow from anyone.else.ip.addr
Satisfy Any
wow. that works beautifully. thank you very much