Using Satisfy any
With the Satisfy directive we can allow certain hosts access while requiring authentication from others. Eg:
<Location /foo>
AuthType Basic
AuthName "Foo"
AuthUserFile /etc/httpd/conf/passwords
Require valid-user
Order allow,deny
Allow from 10.0.0.10 10.0.0.12
Satisfy any
</Location>
