Daniel0 Posted October 2, 2006 Share Posted October 2, 2006 I've noticed advertisments and popup windows saying stuff like "bla bla in X" (where X is the city I live in). How do people detect what city I live in ??? Link to comment https://forums.phpfreaks.com/topic/22767-detecting-users-city/ Share on other sites More sharing options...
redbullmarky Posted October 2, 2006 Share Posted October 2, 2006 generally its down to your IP address and a huge database of IP's containing information about their location. It's not wildly accurate, as it only gives the city of your ISP (i.e, the people to whom the IP address has been allocated). I saw a site once that worked pretty well, and partially relied on users saying whether the location specified was correct or not, and if not offering an alternative. cant remember the link, though. But ultimately that relied on the same system Link to comment https://forums.phpfreaks.com/topic/22767-detecting-users-city/#findComment-102543 Share on other sites More sharing options...
Daniel0 Posted October 2, 2006 Author Share Posted October 2, 2006 I've tried that an advertisement said something about a specific part of the city (where I lived) which would as small as 5 square kilometers. I am just wondering how close they can get, and how the f*** they do it. Link to comment https://forums.phpfreaks.com/topic/22767-detecting-users-city/#findComment-102557 Share on other sites More sharing options...
obsidian Posted October 2, 2006 Share Posted October 2, 2006 check out something like [url=http://www.hotscripts.com/Detailed/47915.html]this whois script[/url] for about the best results Link to comment https://forums.phpfreaks.com/topic/22767-detecting-users-city/#findComment-102569 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.