How to display country code information from Apache log - IP2Location.com: Download the DB1.LITE using the below command

PHOTO EMBED

Fri Jan 14 2022 03:50:36 GMT+0000 (Coordinated Universal Time)

Saved by @nexalbrown

wget http://download.ip2location.com/lite/IP2LOCATION-LITE-DB1.BIN.ZIP
content_copyCOPY

Download the IP2Location DB1 data file. I will recommend you to use the commercial IP2Location DB1 package as it provides you high data accuracy. However, for this tutorial, I will going to use the IP2Location DB1.LITE for the tutorial in case you have no access to the commercial version.

https://blog.ip2location.com/knowledge-base/how-to-display-the-country-code-information-from-apache-log/