Integrations · Location

MaxMind GeoLite2, region and city, filled in.

When Cloudflare can’t place a visit, a MaxMind GeoLite2 City database in your own Cloudflare account fills in country, region and city. It’s free with a MaxMind account, updates weekly, and no address leaves your Cloudflare account.

FreeUpdated weeklyIn your own Cloudflare
Visitor locationMaxMind
  • MaxMind GeoLite2 CityIn your Cloudflare
  • UpdatesWeekly
  • AddressesNever leave

A fallback when Cloudflare can’t place a visit.

Illustration

At a glance

Every visit placed.

When Cloudflare can’t place a visit, a fallback fills in.

  • Cloudflare first

    The most exact, used whenever it can.

  • Only when needed

    An ad blocker sent the visit through the website, or an unusual proxy.

  • Country, region and city

    Filled in for visits Cloudflare can’t place.

  • One setting

    Settings › Data & API › Visitor location.

Setup

Set it up.

In Settings › Data & API › Visitor location.

StepWhereDetails
Make a license keyYour MaxMind accountManage license keys, then generate a key
Paste the detailsSettings › Data & API › Visitor locationYour MaxMind account ID and license key
That’s itYour Cloudflare accountThe database updates weekly

Where it shows

Where you see it.

Location on every report.

  • Countries

    On every dashboard and report.

  • Regions and cities

    For visits Cloudflare can’t place.

  • Ad-blocked visits

    Sent through the website, still placed.

  • Unusual proxies

    Placed by the fallback.

  • Lookups this month

    Shown for online lookups.

  • Other Cloudflare accounts

    Keep region and city with location headers.

The order

Cloudflare first, then a fallback.

Country, region and city come from Cloudflare first, which is the most exact. When Cloudflare can’t place a visit, the fallback you chose fills in.

  • A MaxMind GeoLite2 City database in your Cloudflare account
  • Or an online lookup: ip2location.io, ipapi.co or freeipapi.com
  • With or without an API key for the online lookups
Visitor location →
Visitor locationOrder
  • CloudflareFirst
  • MaxMind GeoLite2Fallback
  • Online lookupFallback

Someone else’s Cloudflare

Keep region and city.

For websites on someone else’s Cloudflare account that forward visits through their own server, turn on Add visitor location headers in that account.

  • In Rules › Settings › Managed Transforms
  • On the other Cloudflare account
  • Keeps region and city
Visitor location →
Managed TransformsCloudflare
  • Add visitor location headersOn

Questions

MaxMind GeoLite2 questions

Something else? Ask us.

Does MaxMind cost anything?

No. GeoLite2 is free with a MaxMind account.

Does any address leave my account?

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

How often is it updated?

Weekly.

When is it used?

Only when Cloudflare can’t place a visit, such as one an ad blocker sent through the website.

Try it on every client site.

Unlimited websites, every feature, one license.