Question 2 of 6

Why is my site coming from California?!

Customer ticket

Subject: Why is my site coming from California?!

I’m in London, but looking at your IPs it shows that you are serving my website from California. Can that be right? Why is that? I thought you were supposed to serve my website from some places close to me?

2. Thought process

This is a misunderstanding rather than a fault, so I wanted the answer to be reassuring, educational and verifiable. I explain the concept briefly, then give the customer a 30-second way to prove it themselves.

  • Root cause: anycast plus GeoIP. Third-party GeoIP databases map Cloudflare’s ranges to the registrant (Cloudflare, San Francisco, CA). Those databases can’t represent “announced from 300+ cities”.
  • Proof: /cdn-cgi/trace (colo=) and the cf-ray suffix are the authoritative answer to “which data centre served me?”. Both are documented in Cloudflare’s troubleshooting docs.
  • Setting expectations: Cloudflare’s docs say that the visitor’s ISP, not Cloudflare, decides which data centre receives the traffic, and that it cannot be pinned per zone. I mention this so the customer isn’t alarmed if they see Manchester or Amsterdam rather than LHR, and I give them a clear path to escalate if they see something truly distant.
  • Practical extra: customers who ask this are sometimes trying to geolocate visitors, so I point them to CF-IPCountry and CF-Connecting-IP.

3. Tools I would use, and why

ToolWhy
https://<domain>/cdn-cgi/traceShows the colo (serving data centre), the visitor’s IP and the location Cloudflare sees. This is the quickest proof.
curl -sI / browser DevToolsRead the cf-ray header; its suffix is the data centre’s IATA code.
dig example.comConfirm the customer is resolving to Cloudflare anycast IPs (proxied record) and not to their origin.
IP geolocation / WHOIS lookup (e.g. ipinfo, RIPE/ARIN)Shows the customer why the IP is labelled California: it’s registered to Cloudflare, Inc. in San Francisco.
traceroute / mtrIf a distant colo appears consistently, these show the ISP path for an escalation to the network team.
Cloudflare status page (Locations view)Map IATA codes to cities and check whether a nearby data centre is under maintenance or re-routed.