148 articles
Knowledge Base
Cloudflare
148 articles in the Cloudflare category · page 2 of 7.
- Apex to www on Cloudflare: the Free-plan Redirect Rules recipe Send example.com to www.example.com with one Single Redirect rule, a proxied apex record, and path plus query preserved. The whole recipe works on the Free plan — here is the setup, the verification, and the traps.
- Auditing a redirect chain with curl: one hop maximum to the final URL Every entry URL should reach its final 200 in at most one redirect. Here is the curl method to measure hops, attribute each one to Cloudflare, the origin, or the CMS, and collapse the common three-hop chains.
- Autodiscover and autoconfig on Cloudflare: the records that make Outlook and Thunderbird configure themselves Outlook and Thunderbird find mail settings through autodiscover and autoconfig DNS entries. Which records to create on Cloudflare for Microsoft 365 and self-hosted mail, and why they stay DNS-only.
- Blocking xmlrpc.php at Cloudflare without breaking Jetpack xmlrpc.php is the most-abused file on a WordPress site, but Jetpack and the mobile apps still need it. The WAF custom rule that blocks everyone except Automattic, and how to test it before Jetpack notices.
- Bot Fight Mode is breaking your webhooks and APIs: what you can and cannot exempt Stripe deliveries fail, monitoring callbacks 403, mobile apps error out — and Security Events says Bot Fight Mode. Why the Free tier offers no exemptions, and the SBFM options that fix it on Pro and Business.
- Browser Cache TTL vs Edge Cache TTL on Cloudflare: who caches what, for how long Edge TTL controls how long Cloudflare data centres keep an object; Browser TTL controls the Cache-Control header visitors receive. Mixing them up is why purges seem to fail and stale files linger for a week. Here is how each dial works and the settings that fit each content type.
- Building an allowlist strategy on Cloudflare: WAF Skip rules plus IP Access rules Monitoring probes, webhook senders, and office IPs keep tripping edge security. How to build an allowlist that actually bypasses the right layers — and why IP Access rule Allow is not the tool you think it is.
- Caching HTML safely on Cloudflare Free or Pro: the bypass-on-cookie Cache Rules recipe Cloudflare does not cache HTML by default, and the old bypass-on-cookie safety valve was a Business-plan Page Rule. Cache Rules changed that: two rules give you cached anonymous pages and bypassed sessions on any plan, no APO required. Here is the recipe.
- Cloudflare 429 too many requests and challenge loops: causes and fixes A Cloudflare 429 too many requests comes from either a rate limiting rule or your own origin — and challenge loops have their own separate causes. Here is how to tell the sources apart and fix each one.
- Cloudflare 522 connection timed out: find and fix the real cause Cloudflare error 522 means the edge dialed your origin and got silence — no refusal, no answer. The cause is almost always a firewall dropping Cloudflare's IPs, an overloaded origin, or a wrong IP in DNS. Here is the diagnosis path for any origin.
- Cloudflare analytics vs server logs vs Google Analytics: why the numbers never match Cloudflare says 400k requests, your access log says 90k, GA says 12k visitors — and all three are correct. What each layer counts, how sampling works, what the GraphQL API gives non-Enterprise plans, and which number to use for which decision.
- Cloudflare API and Terraform basics: reproducible zone configuration Scoped API tokens, config snapshots with curl, and the Cloudflare Terraform provider — how to turn a dashboard-managed zone into configuration you can diff, review, and put back after a bad day.
- Cloudflare APO breaking the WooCommerce cart: stale mini-carts and empty checkouts APO caches full HTML at the edge, and WooCommerce carts are the first thing to go strange — wrong item counts, carts that empty themselves. What APO bypasses by default and where stores still get burned.
- Cloudflare Cache Everything is serving logged-in pages to strangers: the leak and the safe pattern A Cache Everything rule without a cookie bypass will cache a page the origin rendered for a logged-in user and serve it to anonymous visitors. Here is how the leak happens, how to confirm it, and the rule set that caches HTML without it.
- Cloudflare cache not clearing on WordPress: find which layer is actually stale You purged Cloudflare and the old page is still there. On WordPress there are at least four caches between the editor and the visitor, and the purge button only clears one of them. Here is how to identify the stale layer and clear them in the right order.
- Cloudflare Development Mode: what it bypasses, what it does not, and the 3-hour timer Development Mode makes the Cloudflare edge stop serving cached copies so you can see origin changes immediately. It does not purge anything, does not touch browser caches, and turns itself off after three hours. Here is how to use it without the usual surprises.
- Cloudflare Email Routing took over your MX: fixing the conflict with an existing mail server Enabling Email Routing replaces your MX records, so a domain with real mailboxes stops receiving into them. How the takeover works, how to decide which system keeps the domain, and how to walk it back.
- Cloudflare error 1020 access denied: which rule blocked you and how to fix it Cloudflare error 1020 means a WAF custom rule or IP access rule blocked the request. Here is how to find the exact rule in Security Events using the Ray ID, fix over-broad expressions, and tell Cloudflare 403s apart from origin 403s.
- Cloudflare error 520 on WordPress: web server returns an unknown error Cloudflare error 520 means the origin sent back something the edge could not parse — an empty reply, a reset connection, or oversized headers. On WordPress the usual suspects are PHP-FPM crashes and plugin-inflated cookies.
- Cloudflare error 523: origin is unreachable — DNS and routing causes Cloudflare error 523 means the edge has no network path to your origin: the DNS record points at a private or stale IP, or the route to the origin network is gone. Here is how to find which and fix it.
- Cloudflare error 524: a timeout occurred — fixing long requests behind the 100-second limit Cloudflare error 524 means the origin accepted the request but did not answer within 100 seconds. Slow PHP, heavy exports, and long database queries are the usual causes — here is how to fix them without an Enterprise plan.
- Cloudflare error 526: invalid SSL certificate — what the origin cert got wrong Cloudflare error 526 means the TLS handshake to your origin worked but the certificate failed validation: expired, self-signed, wrong hostname, or missing chain. Here is how to identify the exact defect and fix it.
- Cloudflare in front of your own HAProxy or Nginx load balancer Running your own LB behind the Cloudflare proxy means two hops between the visitor and the app. How to carry the real client IP through both, split health-check duties, and tune keep-alive so the layers cooperate.
- Cloudflare Load Balancing on Pro and Business: pools, monitors, and honest limits The Load Balancing add-on brings health checks, origin pools, and automatic failover to non-Enterprise zones. What you get at each add-on tier, how failover timing really works, and where Enterprise remains the answer.