Skip to Content
Platform.Ontology

IP geolocation

The server converts the visitor's IP into an approximate country, region and city.

Gets silentlyNetwork and connectionAddressingWeb browsersWhen the page loads

In one line

Can guess your country, region and city from your IP address

The server converts the visitor's IP into an approximate country, region and city.

Commercial databases (MaxMind, IPinfo, IP2Location) map IPs to places. Vendors claim about 99.8% country accuracy, but city accuracy is much lower and mobile or VPN IPs often point to the carrier hub or exit.

What it can and can't do

What the user does: Nothing. It happens when your device connects to the site

It can

  • Look up a likely country, region and city from your IP
  • Show local content, prices and language
  • Spot a mismatch with your time zone, such as when you use a VPN

It cannot

  • Find your street or home; city guesses are much less exact than country
  • Get it right on mobile and VPN connections, which often point to a carrier hub or exit
  • Know your name or account from it

Browser support

BrowserStatusFirst versionReleasedNote
ChromeSupported12008-12-11None
EdgeSupported792020-01-15None
FirefoxSupported12004-11-09None
SafariSupported12003-06-23None
Safari on iPhoneSupported12007-06-29None
Chrome on AndroidSupported1Not listedNone
Samsung InternetSupported5.02016-12-15None

How a site asks for it

APIGeoIP lookup of the client IP (MaxMind GeoIP2, IPinfo)
How access is grantednone
What the user seesNot listed
Needs a secure context (HTTPS)No
Needs a user gestureNo
How long it lastsNot listed
How to take it backNot listed
Inside an iframeNot listed

Typical flow

  1. Read client IP
  2. Query a local or API database
  3. Return country, region, city, postal, lat and long

Data you get

What comes back: Country, region, city, lat and long with accuracy radius
Shape: object

FieldTypeUnitRangePrecision
accuracy radiusintegerkm5 to 1000city level in good cases, vendor reported
countrystringNoneISO 3166about 99.8% vendor claim

Technical limits

  • City accuracy varies widely and is often wrong for mobile and VPN users
  • Does not reveal street address

The story

What it is

A site turns your internet address into a guess of your country, region and city.

For you

You never have to allow anything. Sites guess your country and often your city from your internet address. It is right for countries most of the time, less for cities. A VPN changes the guess.

For makers

Makers use it for local prices, language, taxes and rights. Ads use it for regional targeting. Fraud teams compare it with your billing address and sign in history.

Where you see it

TypeExampleApps
gamesA game site picks your server region and shows local store prices.Roblox, Steam
gamesA cloud gaming service uses it to see which data center is close to you and whether the game is licensed in your country.GeForce NOW, Xbox Cloud Gaming
mediaA streaming service uses it to show only the shows allowed in your country.Netflix, BBC iPlayer
shoppingA store shows prices, taxes and delivery for your country.Amazon, IKEA
adsAn ad network shows local ads for your city, such as nearby store offers.None named
securityA bank flags a login from a country the customer has never visited.None named
analyticsA site measures where its readers live without asking them.Google Analytics

Risks

  • Reveals rough location
  • Can be wrong

Good uses and abuse

Legitimate uses

  • Content localization, tax and licensing, fraud rules

Known abuse

  • Price discrimination, geoblocking, stalking via leaked city

Scores

ScoreValueMeaning
Sensitivity2 of 5How revealing the data is
Utility5 of 5How useful it is to honest apps
Friction0 of 5How much the user has to do
Fingerprint bits3Rough identifying entropy, when known

Sources

How well checked: Based on official documentation.

On this page