Geolocation

Guides· DeploySmith ·

Nginx GeoIP: MMDB Country Blocking and Routing

Intermediate · 13 min read

Nginx 1.31.7 moved the open-source geoip modules from the retired GeoLite .dat format to native MaxMind DB (MMDB) support. Here is the 2026 way to geo-block and geo-route by country on stock nginx: geoip_country + GeoLite2-Country.mmdb, map and if for the block, geo-aware rate limiting, and the http and stream modules side by side.…

Read more →