Jump to content

Archived

This topic is now archived and is closed to further replies.

Daniel0

Detecting user's city

Recommended Posts

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 ???

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
check out something like [url=http://www.hotscripts.com/Detailed/47915.html]this whois script[/url] for about the best results

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.