Saturday, February 18, 2012

What is up with those ads that know where I live?

I see ads that say something like meet interesting singles in (the city that I live in). How do they do that? As a web designer, I am interesting in learning how to acquire the general area of the visitor, just out of curiosity.



I'm guessing it has something to do with IP address, but I'm not sure.What is up with those ads that know where I live?
They use your IP to pinpoint your location. A PHP script can be used to do this.



Check out the source code of this website:



http://software77.net/cgi-bin/ip-country鈥?/a>What is up with those ads that know where I live?
Cool that's neat.

Report Abuse

No comments:

Post a Comment