I have httpauth turned on for a folder on my site, but when coming from a specific IP address I don’t want that, I just want to pass right through.
Here’s what I have in my .htaccess file to facilitate that:
Order deny,allow Deny from all AuthType Basic AuthUserFile /path/to/.htpasswd AuthName "Go Away" require valid-user Allow from 22.214.171.124 Satisfy Any
That makes it so that anyone from from 126.96.36.199 would NOT be prompted for a password at all, they’d get right through.
You should be able to do anything you wish in the spot I have Auth running.