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 18.104.22.168 Satisfy Any
That makes it so that anyone from from 22.214.171.124 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.