Allow from IP without password prompt, and also allow from any address with password prompt


Order deny,allow
Deny from all
AuthName "htaccess password prompt"
AuthUserFile /web/askapache.com/.htpasswd
AuthType Basic
Require valid-user
Allow from 172.17.10.1
Satisfy Any
Sources

http://www.askapache.com/htaccess/apache-authentication-in-htaccess.htmlexternal link