![]() If you require greater accuracy, MaxMind offers a database on a paid subscription basis. It uses ARIN, RIPE, APNIC, and LACNIC whois to obtain the IP->Country mappings. This free database is similar to the database contained in IP::Country, as well as many paid databases. IP ADDRESS TO COUNTRY DATABASESįree monthly updates to the database are available from ![]() Any location provided by a GeoIP database or web service should not be used to identify a particular address or household. Locations are often near the center of the population. This module can be used to automatically select the geographically closest mirror, to analyze your web server logs to determine the countries of your visitors, for credit card fraud detection, and for software export controls. This database should be more complete and accurate than reverse DNS lookups. This database simply contains IP blocks as keys, and countries as values. This module uses the GeoIP Legacy file based database. My $g = Geo::IP->open('/usr/local/share/GeoIP/GeoIPv6.dat') or die # the IPv6 support is currently only avail if you use the CAPI which is much My $gi = Geo::IP->open("/usr/local/share/GeoIP/GeoIPCity.dat", GEOIP_STANDARD) $country = $gi->country_code_by_name('') # returns undef if country is unallocated, or not defined in our database My $gi = Geo::IP->new(GEOIP_MEMORY_CACHE) ![]() Geo::IP - Look up location and network information by IP Address VERSION
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |