This plugin enables users to display the proxy information, such as country, region, city, proxy type, and security threat derived from the IP addresses.
-
Install Geo::IP2Proxy libraries from CPAN.
cpan > install Geo::IP2Proxy -
Upload ip2proxy.pm to
/usr/share/awstats/plugins. -
Download the free IP2Proxy PX9 LITE database or commercial IP2Proxy PX9 database.
-
Decompress the package and upload the BIN file to
/usr/share/ip2proxydirectory. -
Open
/etc/awstats/awstats.confand insert following line:LoadPlugin="ip2proxy /usr/share/ip2proxy/IP2PROXY-LITE-PX9.BIN"**Note: ** Make sure the path to IP2Proxy database file is correct.
-
Disable any Maxmind GeoIP plugin or IP2Location Geolocation plugin as AWStats hook can only access by one plugin per time.
-
View the information by accessing "Countries" or "Hosts" from the left menu.
It's recommended to use IP2Proxy PX9 which includes country, region, city, proxy type, and security threat information.
- IP2Proxy LITE (Free): https://lite.ip2location.com
- IP2Proxy Commercial (Comprehensive): https://www.ip2location.com
Use the IPv4 BIN file if you just need to query IPv4 addresses.
Use the IPv6 BIN file if you need to query BOTH IPv4 and IPv6 addresses.