Frequently Asked Question
We've added the ability to blocking countries by their IP addresses. This is using the MaxMind GeoIP free database.
To block countries by IP address, add something like this to your .htaccess file (or open a low priority ticket to have us do it for you):
# BEGIN This example blocks both China and Brazil
Require all granted
Require not env BlockCountry
SetEnvIf MM_COUNTRY_CODE ^(CN|BR) BlockCountry
# END
# BEGIN This example allows only the US and Canada
SetEnvIf MM_COUNTRY_CODE ^(US|CA) AllowCountry
Require env MM_COUNTRY_CODE
Deny from All
Allow from env=AllowCountry
# END
Country codes can be found here:https://support.techsurgeons.com/scp/faq.php?id=81