apache: bypass authentication for a specific ip

Solution 1:

You use use Satisfy Any:

Order deny,allow
allow from 1.2.3.4
deny from all
Satisfy Any
AuthType Basic
AuthName "private area"
AuthUserFile /path/to/htpasswd
Require valid-user