Rack::GeoIPCountry uses the geoip gem and the GeoIP database to lookup the country of a request by its IP address
Karol Hosiawa, Thomas Maurer
gem "rack-geoipcountry", "~> 1.0.1"