Geo::IPfreeGeo::IPfree is a Perl module that will look up country of IP address. | |
Download |
Geo::IPfree Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Graciliano M. P.
- Publisher web site:
- http://search.cpan.org/~gmpassos/
Geo::IPfree Tags
Geo::IPfree Description
Geo::IPfree is a Perl module that will look up country of IP address. Geo::IPfree is a Perl module that will look up country of IP address. This module make this off-line and the DB of IPs is free & small.SYNOPSIS use Geo::IPfree; my ($country,$country_name) = Geo::IPfree::LookUp("192.168.0.1") ; ... or ... use Geo::IPfree qw(LookUp) ; my ($country,$country_name) = LookUp("200.176.3.142") ; ... or ... use Geo::IPfree; my $GeoIP = Geo::IPfree->new('/GeoIPfree/ipscountry.dat') ; $GeoIP->Faster ; ## Enable the faster option. my ($country,$country_name,$ip) = $GeoIP->LookUp("www.cnn.com") ; ## Getting by Hostname. $GeoIP->LoadDB('/GeoIPfree/ips.dat') ; my ($country,$country_name,$ip) = $GeoIP->LookUp("www.sf.net") ; ## Getting by Hostname. ... or ... use Geo::IPfree; my $GeoIP = Geo::IPfree::new() ; ## Using the default DB! my ($country,$country_name) = $GeoIP->LookUp("64.236.24.28") ; Requirements: · Perl
Geo::IPfree Related Software