Cloudflare – Login Security and Plugin Firewall not working

Home Forums BulletProof Security Pro Cloudflare – Login Security and Plugin Firewall not working


Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #37603
    AITpro Admin

    Problem:  Cloudflare breaks the BPS Pro Plugin Firewall, which in turn breaks BPS Pro Login Security and other things.  Important Note:  This only appears to be caused by installing WordPress Cloudflare plugins and not when installing Cloudflare from your web host control panel or directly from the Cloudflare website.

    Solution:  Copy the Cloudflare IP address Range htaccess code below into the Plugin Firewall > Plugin Firewall Additional Whitelist Tools > Whitelist by Hostname (domain name) and IP Address text box > click the Save Hostname and IP Address Rules button > click the Plugin Firewall Activate button.,,,,,,,,,,,,,,,, 2400:cb00::/32, 2606:4700::/32, 2803:f800::/32, 2405:b500::/32, 2405:8100::/32, 2a06:98c0::/29, 2c0f:f248::/32



    Not working on Debian and apache2.4 because Rewritecond not accepting this kind of CIDR notation.

    I made 3 changes on 3 files :

    Modifications :

    $allow_whiteList[] .= 'RewriteCond %{REMOTE_ADDR} !^' . $allow_Value . '$' . "\n";
    $allow_whiteList[] .= 'RewriteCond expr "! -R \'' . $allow_Value . '\'"' . "\n";

    Now, cloudflare IPs are OK

    AITpro Admin

    @ Benito – You would have to make these same modifications each time you upgraded BPS Pro.  Not huge deal I guess, but probably figuring out why your particular server configuration is not working with the standard BPS Pro code would be a better route to take in the long run.  I’m guessing this is some kind of httpd.conf configuration issue somewhere or maybe the other Apache conf files.  In general that standard BPS Pro code works fine for most people.  I don’t have a lot of spare time these days with everything going on to look into this.

    Maybe try doing Google searches for: Apache httpd.conf config + CIDR for starters and then of course do variations of that search term to find the server config solution.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.