![]() Returns the full country name of IP address or domain name. $countrylong = $obj->get_country_long( $ip ) Returns "-" for unassigned or private IP address. Returns the ISO 3166 country code of IP address or domain name. OBJECT METHODS $countryshort = $obj->get_country_short( $ip ) IP2Location LITE Page CLASS METHODS $obj = Geo::IP2Location->open($database_file) Ĭonstructs a new Geo::IP2Location object with the database located at $database_file. The database will be updated in monthly basis for greater accuracy.įree IP2Location LITE database is also available at: The complete IPv4 and IPv6 database are available at: This module can be used in many types of project such as: 1) auto-select the geographically closest mirror serverĢ) analyze web server logs to determine the countries of visitorsĦ) prevent password sharing and abuse of serviceħ) geotargeting in advertisement IP2LOCATION DATABASES It supports all IP addresses in IPv4 and IPv6. This database consists of IP address as keys and other information as values. You can visit Libraries to download BIN sample files. This module uses a file based BIN database available at IP2Location Product Page upon subscription. This Perl module provides fast lookup of country, region, city, latitude, longitude, ZIP code, time zone, ISP, domain name, connection type, IDD code, area code, weather station code and station, MCC, MNC, mobile carrier brand, elevation, usage type, IP address type, IAB advertising category, district, AS number and AS name from IP address using IP2Location database. My $moduleversion = $obj->get_module_version() My $dbversion = $obj->get_database_version() ![]() Print STDERR Geo::IP2Location::get_last_error_message() My $obj = Geo::IP2Location->open("IP-COUNTRY-REGION-CITY-LATITUDE-LONGITUDE-ZIPCODE-TIMEZONE-ISP-DOMAIN-NETSPEED-AREACODE-WEATHER-MOBILE-ELEVATION-USAGETYPE-ADDRESSTYPE-CATEGORY-DISTRICT-ASN.BIN") Please visit IP2Location Database for more information. ![]() It supports both IPv4 and IPv6 addressing. Geo::IP2Location - Lookup of country, region, city, latitude, longitude, ZIP code, time zone, ISP, domain name, connection type, IDD code, area code, weather station code and station, MCC, MNC, mobile carrier brand name, elevation, usage type, IP address type, advertising category, district, AS number and AS name by using IP address.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |