Apache2::Geo::IP

Look up country by IP address
Download

Apache2::Geo::IP Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Randy Kobes
  • Publisher web site:
  • http://search.cpan.org/~rkobes/

Apache2::Geo::IP Tags


Apache2::Geo::IP Description

Look up country by IP address Apache2::Geo::IP is a Perl module to lookup country by IP address.SYNOPSIS # in httpd.conf # PerlModule Apache2::HelloIP #< Location /ip > # SetHandler perl-script # PerlResponseHandler Apache2::HelloIP # PerlSetVar GeoIPDBFile "/usr/local/share/GeoIP/GeoIP.dat" # PerlSetVar GeoIPFlag Standard # PerlSetVar GeoIPXForwardedFor 1 #< /Location > # file Apache2::HelloIP use Apache2::Geo::IP; use strict; use Apache2::Const -compile => 'OK'; sub handler { my $r = Apache2::Geo::IP->new(shift); $r->content_type('text/plain'); my $country = uc($r->country_code_by_addr()); $r->print($country); return Apache2::OK; } 1; Requirements: · Perl


Apache2::Geo::IP Related Software