Is IP geolocation this accurate and accessible to every website nowadays?
If this website can do this I assume every website I visit can do it too?
Is IP geolocation this accurate and accessible to every website nowadays?
If this website can do this I assume every website I visit can do it too?
<script id="cflocation">
window.CFLocation = {"lat":####,"lng":####};window.CFDsm=null;
</script>
See https://developers.cloudflare.com/network/ip-geolocation/.Mine's off by more than 100 miles (Comcast Business fiber), it's not magic.
And yet every site that uses IP geolocation for useful purposes thinks I'm in a completely different state that bounces around every few months, if I don't let the browser share my location.
At my last job, I built a little docker image that used the free maxmind DB and kept it up to date, and ran a node server which returned some JSON telling estimated lat/long, city name, country, etc.
It's put me on the wrong continent before now. That was fun.
What did you expect after leaving Europe? /s
I believe my ISP rarely or never rotates IP addresses, and on top of that I think my ISP provided router is assigned an IPv6 address and it prioritizes using it, because when I visit whatismyipaddress.com with JS disabled, it can only show my IPv6 address, but if I enable JS it can show an IPv4 address too (I assume through the WebRTC IP leak method, which requires JS)
I don't think they need any hackery to get your IPv4, they just need a separate hostname configured that they can fetch from, which only has an ipv4 (A) record.
Just because it’s 800km off for your IP does not mean it’s 800km off for every IP and Maxmind is generally considered one of the reliable providers of this information.
If the location data is incorrect, you can always submit a correction with us: https://ipinfo.io/corrections
Right city, completely wrong part. Maybe that's where my ISP has their connection?