How to set geoip country code for Crimea

skwok nginx-forum at
Tue Aug 18 03:35:12 UTC 2020


I'd like to use the geoip module (v1) to block Crimea from access. The
syntax that I'm using is:
        geoip_country /usr/share/GeoIP/GeoIP.dat;
        map $geoip_country_code $allowed_country {
            default yes;
            IR no;
As there is no ISO3166 code for Crimea
(, I contacted Maxmind's
support and they have provided me with this: . Can
someone please tell me how I can make use of that?



Posted at Nginx Forum:,289125,289125#msg-289125

More information about the nginx mailing list