
IP2Location.io, region and city, filled in.
When Cloudflare can’t place a visit, an online lookup at ip2location.io fills in country, region and city. Use it with or without an API key; the page shows how many lookups were made this month.
- Online lookupip2location.io
- API keyOptional
- LookupsThis month
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.
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
- 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
- Add visitor location headersOn
Do I need an API key for IP2Location.io?
No. The online lookup works with or without an API key.
How many lookups are made?
The page shows how many lookups were made this month.
When is it used?
Only when Cloudflare can’t place a visit, such as one an ad blocker sent through the website.
Is there an option that stays in my account?
Yes. A MaxMind GeoLite2 database in your Cloudflare account keeps every address there.
Try it on every client site.
Unlimited websites, every feature, one license.