Blacklisting Issue with Solution
-
I found an issue with Blacklisting that was preventing it from working at all in the latest version of the plugin. Basically, the code written by the plugin to .htaccess uses an IF statement to check whether a specific Apache module is loaded. If YES, it uses the newer “require not ip” approach to block IP addresses. If NO, it uses the older “Allow, Deny” approach.
After a lot of testing, I found that (in my case) the IF statement was directing to the newer approach, however, NO listed IPs were being blocked. I commented out all code to force only the newer approach and confirmed it was not working. I then reversed this to force only the older (Allow, Deny) approach and it worked as expected.
I hope you will investigate this as many users may not be comfortable directly editing .htaccess, and I assume that the plugin will directly overwrite my changes the next time it saves .htaccess. Note I am running Apache 2.4.25.
- The topic ‘Blacklisting Issue with Solution’ is closed to new replies.