Problems with 5G Blacklist in a localhost installation
-
If I enable the 5G Blacklist Firewall Rules in a localhost installation (a WordPress running over Xampp, for instance), it became impossible to log out from WordPress.
The guilty is one of the lines added to the file .htaccess: if I manually comment it, putting a “#” before it, then it is possible to log out again, as folows:
# 5G:[QUERY STRINGS]
(…)
# The guilty line, already commented, is the one below this comment:
#RewriteCond %{QUERY_STRING} (base64_encode|localhost|mosconfig) [NC,OR]Another way to solve the problem is, obviously, removing the word “localhost” from the list of “forbbiden words”, leaving just base64_encode and mosconfig there.
In my corporation, we are always doing migrations from the production server to a localhost installation, for development purposes. So, when this option is set on, on the production server, our localhost installations simply do not work!
A suggestion: on startup, the plugin could do a check on the installation and, if it detects that it is running in a localhost installation, that line should be commented. I guess it will be enough, as that line does not create problems on login, just on log out.
https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/
- The topic ‘Problems with 5G Blacklist in a localhost installation’ is closed to new replies.