The free IP to Country Lite database by DB-IP is licensed under a Creative Commons Attribution 4.0 International License.
You are free to use this IP to Country Lite database in your application, provided you give attribution to DB-IP.com for the data.

In the case of a web application, you must include a link back to DB-IP.com on pages that display or use results from the database.

Source: https://github.com/sapics/ip-location-db (dbip-country-ipv4-num.csv)
