Nginx and GeoIP -
- https://docs.nginx.com/nginx/admin-guide/security-controls/controlling-access-by-geoip/
- https://www.howtoforge.com/nginx-how-to-block-visitors-by-country-with-the-geoip-module-debian-ubuntu
- https://dev.iachieved.it/iachievedit/geoip2-and-nginx/
- http://www.treselle.com/blog/nginx-with-geoip2-maxmind-database-to-fetch-user-geo-location-data/
However, this requires rebuilding Nginx. To avoid this hassle, use GeoLite2 data converted into GeoLite1:
https://www.miyuru.lk/geoiplegacy
Use the converted data and GeoIP1 works fine.