Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Geographic lookup via IP

by epoptai (Curate)
on May 30, 2001 at 11:40 UTC ( [id://84189]=note: print w/replies, xml ) Need Help??


in reply to Geographic lookup via IP

IPtoLL is a hostname to latitude/longitude conversion tool (perl module) that uses whois and the DBI module to interface with a relational database (like SQL) in which a domain-to-city cache and city-to-location database are stored. Not perfect but it does work suprisingly well.

http://www-unix.mcs.anl.gov/~olson/IPtoLL.html

Update: You can't automatically determine the general geographic location of a visitor with greater than national resolution. What you can do is determine the address listed in the DNS record that may or may not correspond to the general location of the box the visitor is accessing your site with. Most of the time the user is in the same country the request came from, if the DNS record is correct.

--
Check out my Perlmonks Related Scripts like framechat, reputer, and xNN.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://84189]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-04-19 03:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found