Every request to a website carries the IP address it came from. Addresses are handed out in blocks to internet providers, mobile networks and companies, and those blocks are mostly used in known places. Geolocation databases collect that knowledge, so an address can be turned into a likely country and city without asking the visitor anything.
How accurate is it?
It depends on the level you ask for.
| Level | Typical reliability |
|---|---|
| Country | Usually right |
| Region or state | Often right |
| City | A reasonable guess, often the location of the provider's equipment rather than the person |
| Street or house | Not possible from an IP address alone |
Database providers publish their own accuracy figures; there is no single number that holds everywhere. Accuracy also varies by country and by type of connection.
What throws it off
- VPNs and proxies. The location is the VPN's exit, not the person.
- Mobile networks, which can route traffic through a distant gateway.
- Corporate networks that send all staff traffic through one office.
- Privacy relays such as Apple's iCloud Private Relay, which hide the visitor's own address behind the relay's.
- Cloud servers, where the location is the data centre; see data-centre traffic.
Treat city reports as patterns, not facts about individual people.
How Reveata uses it
Reveata derives country, region and city from the IP address on its server, then discards the address. IP addresses are never stored (Privacy, cookies and cookieless mode).
The lookup uses a MaxMind GeoLite2 database stored on Reveata's own servers, so visitor IP addresses are not sent to MaxMind or any other third party for it. The servers only download database updates from MaxMind (Privacy Policy).
Location then powers:
- the location reports and the country, region and city filters;
- the live map in Realtime;
- Exclude countries under Settings → General → Exclusions. A visit whose location is unknown is always counted, so an exclusion never hides traffic by guesswork (Exclusions).
Behind your own server proxy, Reveata can only locate visitors correctly when the proxy sends the visitor's address with a valid proxy secret. Otherwise every visit appears to come from your proxy's location (Proxy through your own server).
Privacy
An IP address can be personal data, and in some cases so can a precise location. Turning the address into a country or city and then dropping it, as Reveata does, keeps far less than storing addresses in logs. Whether that is enough for your obligations depends on your setup and your visitors' countries; this is not legal advice.