https://github.com/ip2location/ip2location_awstats
Display visitors geolocation information by using IP2Location plugin for AwStats.
https://github.com/ip2location/ip2location_awstats
awstats geolocation geolocation-database ip-address ip-database ip-geolocation ip-lookup ip2location
Last synced: about 1 year ago
JSON representation
Display visitors geolocation information by using IP2Location plugin for AwStats.
- Host: GitHub
- URL: https://github.com/ip2location/ip2location_awstats
- Owner: ip2location
- Created: 2014-12-12T06:47:31.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2020-09-02T07:48:49.000Z (over 5 years ago)
- Last Synced: 2025-04-18T21:16:51.128Z (about 1 year ago)
- Topics: awstats, geolocation, geolocation-database, ip-address, ip-database, ip-geolocation, ip-lookup, ip2location
- Language: Perl
- Homepage: http://www.ip2location.com
- Size: 311 KB
- Stars: 10
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This plugin enables users to display the geolocation information, such as country, region, city, ZIP code and time zone derived from the IP addresses.
Instructions
============
1. Install **Geo::IP2Location** libraries from CPAN.
2. Upload **ip2location.pm** to `/usr/share/awstats/plugins`.
3. Open `/etc/awstats/awstats.conf` and insert following line:
LoadPlugin="ip2location /usr/share/IP2Location/IP2LOCATION-LITE-DB1.BIN"
**Note: ** Make sure the path to IP2Location database file is correct.
4. Disable any Maxmind GeoIP plugin as AWStats hook can only access by one plugin per time.
5. View the information by accessing "Countries" or "Hosts" from the left menu.
Dependencies
============
It's recommended to use IP2Location DB11 which includes country, region, city, ZIP code and time zone information.
* IP2Location LITE (Free): https://lite.ip2location.com
* IP2Location Commercial (Comprehensive): https://www.ip2location.com
IPv4 BIN vs IPv6 BIN
====================
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.