Richard Parnaby-King Richard Parnaby-King - 1 year ago 162
Apache Configuration Question

htaccess password protect but not on localhost

I have set up a dev site and want to password protect it so only validated visitors can view the site. All well and good. I am getting annoyed, on my local version, entering my username and password. So, without changing the htaccess file between my local copy and the one on the dev site, how do I password protect the site but allow myself access without having to enter my username and password?

Ben Ben
Answer Source

Something like this should do the trick..

Require valid-user
Allow from
Satisfy Any


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download