Fixing Cloudflare Blocking Errors in Wordfence Central
Content
Many WordPress administrators using the Wordfence Security plugin encounter a frustrating error when trying to connect their sites to Wordfence Central: "We’ve detected Cloudflare blocking our requests to your site." This connection is vital for managing security across multiple sites from a single dashboard. Based on community reports and solutions, this guide explains why this happens and provides the most effective troubleshooting steps to resolve it.
Why Cloudflare Blocks Wordfence Central
Wordfence Central communicates with your WordPress site by sending requests from its known servers. When you have Cloudflare enabled, its security features—like the Web Application Firewall (WAF) or IP Access Rules—can mistakenly identify these legitimate requests as a threat and block them. This is a common configuration conflict, not a bug in either service.
Common Solutions to Resolve the Block
1. Whitelist Wordfence IP Addresses in Cloudflare
The primary solution is to ensure Cloudflare allows traffic from Wordfence's servers. You must add their IP addresses to an allowlist within your Cloudflare settings.
- Find the current list of IP addresses on the Wordfence help page.
- In your Cloudflare dashboard, navigate to Security > WAF or Security > Security Rules.
- Create a new rule or access list that allows traffic from the provided Wordfence IPs. The exact location of these settings may change as Cloudflare updates its interface.
2. Clear Connection Data on Both Sides
Often, simply allowing the IPs is not enough if a failed connection attempt is cached. You must clear the connection state completely.
- In your Wordfence Central dashboard at wordfence.com, go to the Connection Issues tab. Use the trash can icon to remove any listed sites.
- On your WordPress site, go to Wordfence > Tools > Diagnostics.
- Scroll to the Other Tests section and click the "Clear all Wordfence Central connection data" button.
- Finally, re-initiate the connection from your site's Wordfence dashboard by clicking "Connect this site" in the Central widget.
3. Clear Your Hosting or Server Cache
If your site is on a host with its own caching mechanism (e.g., WPEngine), changes to Cloudflare settings might not take effect immediately. After whitelisting the IPs, clear your host's server-level cache and then attempt the connection again.
4. Check for Other Conflicts
Other factors can interfere with the connection. Temporarily disable plugins that:
- Change or hide the default WordPress login URL (
/wp-admin). - Act as an additional firewall on your server.
Also, ensure that the WordPress REST API is accessible, as Wordfence Central uses it to communicate instead of XML-RPC.
When to Investigate Further
If the problem persists after trying all steps, the issue might be more specific to your server configuration. In such cases, generating a diagnostic report from Wordfence > Tools > Diagnostics can provide deeper insight into any connection failures.
By methodically working through these steps, most users can successfully resolve Cloudflare blocking issues and enjoy the centralized management features of Wordfence Central.
Related Support Threads Support
-
Wordfence – CloudFlare blocking requestshttps://wordpress.org/support/topic/wordfence-cloudflare-blocking-requests/
-
Wordfence not connecting to site any longerhttps://wordpress.org/support/topic/wordfence-not-connecting-to-site-any-longer/
-
Does WordFence require xml-rpc for Wordfence Central?https://wordpress.org/support/topic/does-wordfence-require-xml-rpc-for-wordfence-central/
-
Wordfence Central: “The server encountered an error processing your request.”https://wordpress.org/support/topic/wordfence-central-the-server-encountered-an-error-processing-your-request/
-
Wordfence Central Connection Issues After Blocking Countries in Cloudflarehttps://wordpress.org/support/topic/wordfence-central-connection-issues-after-blocking-countries-in-cloudflare/
-
Wordfence Centralhttps://wordpress.org/support/topic/wordfence-central-6/
-
WordFence Central – HTTP 429 error when ignoring multiple itemshttps://wordpress.org/support/topic/wordfence-central-http-429-error-when-ignoring-multiple-items/
-
Wordfence Central Connection not workinghttps://wordpress.org/support/topic/wordfence-central-connection-not-working/
-
Unable to connect site to Wordfence Central because of Cloudflarehttps://wordpress.org/support/topic/unable-to-connect-site-to-wordfence-central-because-of-cloudflare/
-
Wordfence Central does not connect to my sites anymorehttps://wordpress.org/support/topic/wordfence-central-does-not-connect-to-my-sites-anymore/
-
Synchronization Error on 45 Sites – Wordfence Central Communication Issuehttps://wordpress.org/support/topic/synchronization-error-on-45-sites-wordfence-central-communication-issue/
-
Wordfence Central site linked under different URL messagehttps://wordpress.org/support/topic/wordfence-central-site-linked-under-different-url-message/
-
Wordfence central connection issueshttps://wordpress.org/support/topic/wordfence-central-connection-issues-4/
-
Wordfence Central – Whitelist IP addresshttps://wordpress.org/support/topic/wordfence-central-whitelist-ip-address/
-
Blocking user agents via Wordfence Centralhttps://wordpress.org/support/topic/blocking-user-agents-via-wordfence-central/
-
Not receiving alerts from Central.https://wordpress.org/support/topic/not-receiving-alerts-from-central/
-
Persistent “Local changes” on Wordfencehttps://wordpress.org/support/topic/persistent-local-changes-on-wordfence/
-
We’ve detected CloudFlare blocking our requests to your site.https://wordpress.org/support/topic/weve-detected-cloudflare-blocking-our-requests-to-your-site/
-
Wordfence Central for a site hosted on WPEngine with Cloudflarehttps://wordpress.org/support/topic/wordfence-central-for-a-site-hosted-on-wpengine-with-cloudflare/
-
Wordfence in multi-sitehttps://wordpress.org/support/topic/wordfence-in-multi-site-2/
-
Wordfence Central limitshttps://wordpress.org/support/topic/wordfence-central-limits/
-
Wordfence Central: how to bulk reconnect sites?https://wordpress.org/support/topic/wordfence-central-how-to-bulk-reconnect-sites/
-
Documentation on CloudFlare troubleshooting is outdatedhttps://wordpress.org/support/topic/documentation-on-cloudflare-troubleshooting-is-outdated/