The uses that actually work

Almost everything written about IP geolocation is about it failing. Here is where it succeeds, and what separates the two.

Content delivery, the case it was built for

A content delivery network keeps copies of a site in many locations and answers each request from a nearby one. Deciding which one is near you is the single largest use of IP geolocation by volume, and it works well.

How a content network uses your address to pick a server A content delivery network answers from the edge location nearest you, decided from your address and from network routing. This is the use of geolocation that works well, because it only needs to be roughly right. The use that works, because it only has to be roughly right You request a page The network decides from your address and from routing Nearest edge, 12 ms away A distant one, 140 ms away Why this is the good use of geolocation Being wrong about your city costs a few milliseconds. Being wrong about your country costs a few more. Nothing breaks, nobody is denied anything, and the answer degrades gently rather than failing. Compare with the bad use Denying access based on a city-level guess that is right about half the time, where being wrong means a person who paid for something cannot use it.
Being wrong costs milliseconds. Nothing breaks, nobody is denied anything, and the answer degrades gently rather than failing.

In practice most networks lean on anycast rather than a database lookup: the same address is announced from many locations at once, and ordinary internet routing carries your packets to whichever is closest in network terms. That is better than a geolocation guess, because it measures the thing that actually matters, which is network distance rather than physical distance.

This site is served that way. Our front page comes from whichever CloudFront edge is nearest you, and the geolocation shown to you comes from headers that same edge adds.

Fraud scoring, where it is one signal among many

Payment and login systems weigh location, and the useful part is rarely the city. What matters is:

Notice that all three tolerate a wrong city. A system built on the country and the shape of the change works; one that flags you for being in the next town over does not, and mostly annoys real customers.

Why a VPN triggers extra verification

Not because a VPN is suspicious in itself. It hides the signals the system relies on, so the score falls back to the fallback, which is more friction. That is the mechanism behind the extra code you get asked for after connecting to a tunnel.

Compliance, where the rule is about place

Some obligations genuinely attach to where a person is, and geolocation is how a website applies them.

ObligationWhat it drives
GDPR and similar privacy lawWhich consent banner you see, and what it must ask
Sales tax and VATWhich rate applies, and whether tax shows in the price
SanctionsWhether a service may be offered at all
Gambling licensingPer-jurisdiction, and enforced strictly
Age verification rulesVaries by country and increasingly by state

Country accuracy is high enough for most of this, which is why these systems work tolerably. The exception is anything decided at state or regional level, where the accuracy available is materially worse than the rule assumes. That gap is a real and growing problem, and it is one people rarely notice until it affects them.

The pattern that separates good uses from bad

Having gone through the uses, the distinction is easy to state.

Good useBad use
Precision neededCountry or regionCity or finer
Being wrong costsMilliseconds, or a mild annoyanceAccess to something paid for
Failure modeDegrades gentlyDenies outright
Can the user correct it?Yes, by overriding a defaultNo, and often no way to appeal
Is it the only signal?No, one of severalYes

Routing, currency defaults and fraud scoring sit in the left column. Denying a person access on a city-level guess sits in the right, and it is asking more of the technology than it can deliver at the accuracy it actually achieves.

If you are building something with it

Where to swim next