Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IP Address Location (City/Country)

Status
Not open for further replies.

Unimatic1140

Programmer
Jul 31, 2008
2
US
I've recently seen some newspaper comment boards automatically determine and post where I'm posting from via my IP address and would love to add the same functionality to my discussion board.

Does anyone happen to know of a way (such as a Perl Module) that can programatically determine the physical location (and place it into a variable) of the users posting a message to my site via one of the Perl programs I wrote. I know how to determine the IP address and I record those, but I would like to not have to manually take those address to another website and look the location up manually. Confused

Thanks in advance for everyone's assistance.
 
Search for "geo location IP" on cpan. There are a few different modules.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[noevil]
Travis - Those who say it cannot be done are usually interrupted by someone else doing it; Give the wrong symptoms, get the wrong solutions;
 
Thanks I will search for geo location IP.

The reason I want the system to do it automatically is I get users that instead of putting their true location enter things like "home of the TV Diner". LOL I want to display their true location if possible.
 
I asked a similar question in the web designer's forum
thread253-1483785
the conclusion was that the results were not all that accurate.
It might be simpler just to give the visitors a drop down list of locations to choose from.

Keith
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top