Working with Cloudflare?

Cloudflare showing 522 or caching the wrong thing? We fix it.

Cloudflare sits between the public and your origin, which is a good place for it to help and an easy place for it to hide what is actually going wrong. We find the setting that is biting and leave the rest alone.

  • Since 2015Fixing technology
  • FreeEstimates
  • US teamReal engineers

cloudflare-dash.log

still failing

What it is

Cloudflare at a glance

Cloudflare was founded in 2009 by Matthew Prince, Lee Holloway and Michelle Zatlyn, and now trades on the New York Stock Exchange under the ticker NET. It runs a reverse-proxy CDN, authoritative DNS and security service that sits in front of a large share of the public web, taking requests on your behalf and forwarding the ones it decides to trust.

The company has since grown well beyond DNS and caching. The platform now includes edge compute with Workers, object storage with R2, zero-trust access for internal apps, serverless hosting through Pages, video with Stream, and a domain registrar. Most customers only use a slice of all of that, rather than every product in the catalogue.

Type
CDN, DNS and security reverse proxy
First released
2010
License
Proprietary SaaS, with a free tier available
Maintained by
Cloudflare, Inc.
Typically used for
DNS, CDN, DDoS protection, SSL, bot management, zero-trust network access and edge compute

The honest version

Cloudflare pros and cons

No technology is all upside. This is where Cloudflare earns its place and where it tends to cause trouble.

Where Cloudflare is strong

  • A useful free tierThe free plan includes a global CDN, basic DDoS protection and SSL certificates, which covers a lot of small sites on day one.
  • A genuinely fast networkAnycast routing and hundreds of points of presence mean requests reach a Cloudflare edge close to the visitor, not a server on another continent.
  • A wide product lineWorkers, R2, Pages, Zero Trust and Tunnels live in one dashboard, so an internal app, a static site and a cache rule share the same account.
  • A clear DNS editorThe DNS panel is one of the better ones in the industry, and changes propagate quickly because Cloudflare is the authoritative server.
  • Access for internal appsmTLS, SSO rules and Cloudflare Access put a login in front of an admin panel without exposing it to the public internet.

Where Cloudflare bites

  • SSL mode confusionThe 'Flexible' option is insecure by design, encrypting only the browser side, yet it gets chosen often because it avoids origin certificate errors on day one.
  • Caching rules fight each otherPage Rules, Cache Rules and Transform Rules all touch the same request. When two of them disagree, the one that wins is rarely the one you expected.
  • Proxied and non-proxied records mixedPointing an MX or SIP record through the orange cloud, or a web record through the grey one, quietly breaks email, calls or the site itself.
  • Anti-abuse catches dynamic DNSHome servers and small SaaS projects that update records often get flagged, sometimes without an obvious appeal path.
  • Pages has build quirksCloudflare Pages is cheaper than Vercel but its build environment is stricter, and a site that builds everywhere else can still fail there on a Node version mismatch.
  • R2 is cheap until it isn'tFree egress is a real win for storage, but custom headers, signed URLs and video streaming need Workers in front, which adds cost and moving parts.

Sound familiar?

Common Cloudflare problems we fix

The Cloudflare problems that bring people to us, and what you have once each one is fixed.

Error 522: Connection timed out

Cloudflare can't reach the origin

The origin server is down, overloaded, firewalling Cloudflare's IP ranges, or listening on a port Cloudflare does not proxy.

Origin reachable and proven

ERR_TOO_MANY_REDIRECTS

The site is in a redirect loop

Flexible SSL rewrites HTTPS to HTTP at the edge while the origin forces HTTPS back again, so each side insists the other end is in the wrong.

SSL set to Full (strict)

SSL mode: Flexible

The padlock is a lie

The browser sees HTTPS, but Cloudflare talks to the origin in plain HTTP. Anyone between the edge and the server can read the traffic.

End-to-end encryption with a real cert

Error 1020: Access denied

Your own staff are being blocked

A firewall rule, a country block or a bot-fight setting is catching real users, often from a mobile network or a corporate VPN.

Rules that match attackers, not customers

MX record: proxied

Email stopped arriving after DNS moved

Mail records cannot run through Cloudflare's proxy. An orange cloud on an MX, SPF or autodiscover record silently breaks mail.

Mail flowing, records corrected

Pages build failed

The site builds locally but not on Pages

A different Node version, a missing environment variable, or a build command that assumed a writable cache directory.

Deploys green and reproducible

Workers CPU time exceeded

A Worker times out under load

A Worker doing too much synchronous work per request, or calling an origin that itself is slow, and hitting the CPU limit.

Within limits, with headroom

last audit: never

Nobody knows what the account contains

Years of page rules, firewall rules, workers and DNS entries added by people who have long since left, and no one on the current team wants to be the one to turn any of it off.

Account documented and trimmed

What we do

Cloudflare help, from rescue to upkeep

Call us for one broken setting, or hand us the whole account.

Rescue
522s, redirect loops, blocked customers. We get the site answering first and find the cause second.
DNS migrations
Moving DNS onto Cloudflare without dropping mail, calls or the site, with a rollback plan ready.
SSL and origin security
Full strict mode, origin certificates, authenticated origin pulls, so the padlock means something.
Caching and performance
Cache Rules and Page Rules written so they agree, with hit ratios measured before and after.
Zero Trust and Access
Putting Access, Tunnels and mTLS in front of internal tools, without leaving an open back door.
Managed Tech
Monitoring, rule reviews and a team to call, on an ongoing basis.

How it works

From first message to fixed

  1. Look Free estimate

    Tell us what's going wrong. We look at it, then tell you plainly what's wrong and what it will cost.

  2. Fix

    We fix the cause, not the symptom. If something is down, getting it back up comes first.

  3. Harden

    Backups, monitoring, updates and access, so the same problem can't quietly come back.

  4. Hand back or stay on

    You get a plain-language write-up. Or we stay on for hosting, upkeep and new work.

Often found together

Running Cloudflare alongside something else?

We work on the whole stack, so the problem can be wherever it actually is.

Questions

Cloudflare questions

Something else? Call+1 737 727 7327

Why am I getting a 522 error on my site?

A 522 means Cloudflare tried to reach your origin server and gave up waiting. Common causes are the origin being down or overloaded, a firewall on the origin blocking Cloudflare's IP ranges, or a hosting provider that has rate-limited the connection. The fix is almost always on the origin, not in the Cloudflare dashboard.

Why is my site in a redirect loop since I turned on Cloudflare?

Nearly always because SSL is set to Flexible. Cloudflare serves HTTPS to the browser and sends HTTP to your origin, which then redirects back to HTTPS, which Cloudflare rewrites again. Switch SSL to Full (strict) and install a real certificate on the origin and the loop goes away.

Is Cloudflare SSL 'Flexible' mode safe?

It is not safe for anything that actually matters. Traffic between Cloudflare and your origin travels in plain text, so the padlock a visitor sees is misleading. Use Full (strict) with a certificate on the origin, which is free with Let's Encrypt or with a Cloudflare Origin Certificate.

Why did Cloudflare block my own staff from the website?

Usually a firewall rule, a security level set too high, or a managed challenge catching mobile and VPN traffic. The dashboard's Security Events view shows exactly which rule triggered. We tune the rules so they catch attackers and not customers.

How do I move DNS to Cloudflare without downtime?

Copy every existing DNS record into Cloudflare first, with the orange cloud off on anything that is not plain web traffic, then change the nameservers at the registrar. Mail records, SIP, and any service with its own certificate must stay grey-clouded. We rehearse the move on a staging domain where that helps.

How much does Cloudflare help cost?

Estimates are free and come without any obligation. Tell us what is going wrong and you get a price before any changes are made to the account.

Free estimate

Cloudflare giving you trouble?

Tell us what you're running and what's going wrong. A person reads it and comes back with an estimate.

  • No charge to find out what it will take
  • If it's urgent, say so

Replies come from a person. By sending, you authorize us to email you back. No marketing.