Using GeoIP in Nginx
Set up Nginx's GeoIP module for country detection without recompiling — modern database sources, country-based routing, access control, and passing location data to PHP.
There's no place like ::1