Plack::Middleware::GeoIPFind country and city of origin of a web request | |
Download |
Plack::Middleware::GeoIP Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Sherwin Daganato
- Publisher web site:
- http://search.cpan.org/~sherwin/
Plack::Middleware::GeoIP Tags
Plack::Middleware::GeoIP Description
Plack::Middleware::GeoIP is a Perl module, a loose port of the Apache module mod_geoip. It uses Geo::IP to lookup the country and city that a web request originated from.All requests are looked up and GEOIP_* variables are added to PSGI environment hash. For improved performance, you may want to only enable this middleware for specific URL's.The following PSGI environment variables are set by this middleware:GeoIP Country Edition:GEOIP_COUNTRY_CODE, GEOIP_COUNTRY_CODE3, GEOIP_COUNTRY_NAME, GEOIP_CONTINENT_CODEGeoIP City Edition:GEOIP_COUNTRY_CODE, GEOIP_COUNTRY_CODE3, GEOIP_COUNTRY_NAME, GEOIP_CONTINENT_CODE, GEOIP_LATITUDE, GEOIP_LONGITUDE, GEOIP_TIME_ZONE, GEOIP_REGION, GEOIP_REGION_NAME, GEOIP_CITY, GEOIP_POSTAL_CODE, GEOIP_METRO_CODE, GEOIP_AREA_CODESYNOPSIS # with Plack::Middleware::RealIP enable 'Plack::Middleware::RealIP', header => 'X-Forwarded-For', trusted_proxy => ; enable 'Plack::Middleware::GeoIP', GeoIPDBFile => , GeoIPEnableUTF8 => 1;Product's homepage
Plack::Middleware::GeoIP Related Software