mod_geoip2 is an Apache 2.x module for finding the country and city that a web request originated from. It uses the GeoIP library and database to perform the lookup. It is free software, licensed under the Apache license. mod_geoip2 requires the GeoIP C Library API.