Htaccess/Htpasswd not working with IP Blacklisting
-
Trying to password protect my staging site I discovered that htaccess/htpasswd protection of the site’s root directory doesn’t work if AIOWPS’s “Enable IP or User Agent Blacklisting” feature is turned on.
Doesn’t matter which IP addresses are in the list of IPs to blacklist, I tried reducing it to only one IP that I was sure wasn’t mine and if the Blacklisting is on, it puts this block in my .htaccess file:
#AIOWPS_IP_BLACKLIST_START <IfModule !mod_authz_core.c> Order allow,deny Allow from all Deny from 110.123.123.123 </IfModule> <IfModule mod_authz_core.c> <RequireAll> Require all granted Require not ip 110.123.123.123 </RequireAll> </IfModule> #AIOWPS_IP_BLACKLIST_END
And the visitor is NOT prompted with a login. If I disable the “Enable IP or User Agent Blacklisting:” checkbox (under Blacklist Manager), then it works properly.
I guess this is a bug report and not a support request because I did solve it… I just wanted to post this for anyone else googling in the future. Also suggestion to AIOWPS to maybe fix this.
- The topic ‘Htaccess/Htpasswd not working with IP Blacklisting’ is closed to new replies.