Lurker News

Comments (151) 64 threads

Show all comments

Showing thread 33 of 64

gameshot9111 reply#
Wow...I basically never let webpages use my location, but I did for this one, and it landed about 200 feet from my apartment. That's crazy accurate! How can an IP be linked to a geolocation that closely?
dev_dull1 reply#
Are you using Chrome? It’s probably not geo IP.
foota1 reply#
Yeah, geo ip doesn't need permission to work (modulo privacy), that will all be done server side.
gameshot9111 reply#
Okay, so then how does a website know my location to 200 feet?
gameshot9112 replies#
I'm on a desktop though - no GPS/wifi.
why-oh-why#
If you're using Chrome, Google knows your location through your phone (and Google Maps, if you're on an iPhone)

If you're on mac and have an iPhone, same thing is happening across the whole OS.
Available WiFis, even if you're not connected to one, will be used by your OS to provide location as well.
This uses the basic Geolocation API, you can look up how your computer figures out its location for more detailed info.