Privacy · Visitor location

Visitor location without keeping the address.

Country, region and city come from Cloudflare first, which is the most exact. When Cloudflare can’t place a visit, a MaxMind database in your own account or an online lookup fills the gap.

How it works

Looked up once, then the address is gone.

The IP address is used once to find the country, region and city. Only the place is kept. The address itself is hashed into the day’s anonymous id and discarded.

  • Cloudflare first, the most exact source
  • Country, region and city kept with the visit
  • The IP address never written down
  • Shown on the map and in the location reports
How visitors are counted without cookies →
Where the location comes from
  • CloudflareFirst
  • MaxMind GeoLite2, in your CloudflareFallback
  • Online lookupFallback, optional
  • IP address kept afterwardsNever

Fallbacks

When Cloudflare can’t place a visit.

That happens when an ad blocker sent the visit through the website, or it came through an unusual proxy. Settings › Data and API › Visitor location picks the fallback.

  • MaxMind GeoLite2 City

    A database in your own Cloudflare account, free with a MaxMind account and updated weekly. No address leaves your account.

  • An online lookup

    ip2location.io, ipapi.co or freeipapi.com, with or without an API key. The page shows how many lookups were made this month.

  • No fallback

    Leave both off and those few visits have no region or city.

Proxies

Behind your own proxy? Read the right address.

When your websites sit behind a proxy or load balancer of your own, turn on Trust proxy headers so the visitor’s address is read from the header the proxy sets.

  • Reads X-Forwarded-For, X-Real-IP, True-Client-IP or Forwarded
  • Turn it on only for a proxy you trust, since anyone can send these headers
  • A second Cloudflare hop is recognized by itself
  • Websites on another Cloudflare account can keep region and city with Managed Transforms
Data and API settings →
Trust proxy headers
  • X-Forwarded-ForRead when on
  • X-Real-IPRead when on
  • True-Client-IPRead when on
  • ForwardedRead when on

Off by default. Turn it on only behind a proxy of your own.

Questions

Visitor location questions

Something else? Ask us.

Is the IP address stored for location?

No. It’s used once to find the place, then discarded. Only the country, region and city are kept.

Does the MaxMind fallback send addresses anywhere?

No. The database runs in your own Cloudflare account, so no address leaves it.

Does the online lookup send addresses out?

Yes, to the service you choose, which is why it’s optional. Mention it in the privacy policy if you turn it on.

How exact is it?

Country is very reliable. Region and city are close, and come from Cloudflare first, the most exact source.

Why do some visits have no city?

Cloudflare couldn’t place them and no fallback is on. Turn on MaxMind to fill most of them.

These pages explain how Nahnu Analytics handles data. They are not legal advice. Whether you need consent or other steps depends on where you and your visitors are and on the features you turn on; check with your own advisor.

Know where visitors are, without knowing who they are.

Unlimited websites, every feature, one license.