Whitelist CloudFlare IP Address Range

Home Forums BulletProof Security Pro Whitelist CloudFlare IP Address Range

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #35789
    Dennis
    Participant

    I have BPS pro and I would like to whitelist Cloudflare IP address range by adding it to the htaccess file.  To do this, I would need to go to the htaccess File Editor in the BPS plugin and edit that file?

    Would I add the IP range like this?

    #(IPv4)
    #Allow from 173.245.48.0/20
    #Allow from 103.21.244.0/22
    #(IPv6)
    #Allow from 2400:cb00::/32
    #Allow from 2405:8100::/32
    
    Or should it be without the "#" like this?
    
    #(IPv4)
    Allow from 173.245.48.0/20
    Allow from 103.21.244.0/22
    #(IPv6)
    Allow from 2400:cb00::/32
    Allow from 2405:8100::/32
    
    Do I need to add "order deny,allow" before the IP address list like so?
    
    order deny,allow
    #(IPv4)
    #Allow from 173.245.48.0/20
    #Allow from 103.21.244.0/22
    #(IPv6)
    #Allow from 2400:cb00::/32
    #Allow from 2405:8100::/32

    Thank you

    #35791
    AITpro Admin
    Keymaster

    The only known issue with Cloudflare and BPS Pro is the BPS Pro Plugin Firewall and Login Security > https://forum.ait-pro.com/forums/topic/cloudflare-login-security-and-plugin-firewall-not-working/.  Are you experiencing a problem?  If so, what is the problem?  You typically do not need to whitelist Cloudflare IP addresses in your root htaccess file.  A pound sign # in htaccess code means “commented out” text/code/etc.

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