Forum Moderators: phranque
<IfModule mod_maxminddb.c>
MaxMindDBEnable On
MaxMindDBFile DB /usr/share/GeoIP/GeoLite2-Country.mmdb
MaxMindDBEnv MM_COUNTRY_CODE DB/country/iso_code
<directory "/srv">
SetEnvIf MM_COUNTRY_CODE ^(BY|CN|HK|ID|IR|KP|RU|SD|SY|TH) BlockCountry=$0
SetEnvIf MM_COUNTRY_CODE ^(BD|BR|NG|RO|TW|UA|VN) WatchCountry=$0
SetEnvIf MM_COUNTRY_CODE ^(GB) AllowCountry=$0
Require env BlockCountry denied
</directory>
</IfModule>
The Allow and Block versions work well but Watch never firesJust to make sure I'm understanding: the BlockCountry and AllowCountry environmental variables are set when you expect them to be, but WatchCountry never is, even when the visitor is clearly from Vietnam or Ukraine or whatnot?