htaccess file to ask password and exlude some files
by Taavi Rammar

In case you wanna password-protect site but exclude your own ip's and/or hosts, use following in your .htaccess file.

AuthName "Site description here"
AuthUserFile /home/mysite/.htpasswd
AuthType basic
Require valid-user
Order deny,allow
Deny from all
Allow from 111.222.333.444
Allow from mydevip.com myhomeaddress.com ready.mobi
Satisfy Any

Note: you have to have AllowOverride property set for this Directory.
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>

Copyright by techTips