Extension:GeoIP

[http://www.maxmind.com/app/geolitecountry Compatible CSV files] can be downloaded from MaxMind.