Automatic Whitelisting of Cloudflare IP’s
-
Hi,
Again a bunch of my sites have ran into issues with Cloudflare because they’re being rate limited/blocked by Wordfence because they’ve added new IP’s and as such the site would take 20+ seconds to load and there would be missing content because there would be some 522 errors in console.
I requested this before but I never got a reply to my last reply and nothing was ever done to fix this for users.
Cloudflare ran some tests and found:
$ cache_ping_port 159.65.37.60 443 162.158.63.94 Connection to 159.65.37.60 443 port [tcp/https] succeeded! 162.158.63.95 nc: connect to 159.65.37.60 port 443 (tcp) timed out: Operation now in progress 162.158.63.96 Connection to 159.65.37.60 443 port [tcp/https] succeeded! 162.158.63.97 Connection to 159.65.37.60 443 port [tcp/https] succeeded! 162.158.63.98 Connection to 159.65.37.60 443 port [tcp/https] succeeded! 162.158.63.99 Connection to 159.65.37.60 443 port [tcp/https] succeeded! $ cache_ping_port 159.65.37.60 80 162.158.63.94 Connection to 159.65.37.60 80 port [tcp/http] succeeded! 162.158.63.95 nc: connect to 159.65.37.60 port 80 (tcp) timed out: Operation now in progress 162.158.63.96 Connection to 159.65.37.60 80 port [tcp/http] succeeded! 162.158.63.97 Connection to 159.65.37.60 80 port [tcp/http] succeeded! 162.158.63.98 Connection to 159.65.37.60 80 port [tcp/http] succeeded! 162.158.63.99 Connection to 159.65.37.60 80 port [tcp/http] succeeded!
Cloudflare themselves recommend users whitelist their servers if you use their services, it wouldn’t be too hard for Wordfence to detect if a website is using Cloudflare or not, either looking at the domains IP, nameservers or even looking for the Cloudflare plugin…
Why on earth does Wordfence use a non-standard IP format when CIDR is by far the most common and also the standard when it comes to IP ranges. You should accept both formats as in code it’s not hard to convert CIDR into the non-standard IP format that Wordfence uses.
Wordfence should either:
1. Automatically whitelist Cloudflare IP ranges natively
2. Add an option for Cloudflare as a whitelisted service.
3. Add the ability to add links in the whitelists to both plain text pages and txt files for example to https://www.cloudflare.com/ips-v4 and https://www.cloudflare.com/ips-v6 which results in Wordfence periodically retrieving and whitelisting the listed IP ranges.Thanks!
- The topic ‘Automatic Whitelisting of Cloudflare IP’s’ is closed to new replies.