Skip to content

Instantly share code, notes, and snippets.

@OrderAndCh4oS
Last active May 27, 2018 08:47
Show Gist options
  • Save OrderAndCh4oS/944765a24716ee0e4bd30a3095f0ca19 to your computer and use it in GitHub Desktop.
Save OrderAndCh4oS/944765a24716ee0e4bd30a3095f0ca19 to your computer and use it in GitHub Desktop.
GDPR Solved
MaxMindDBEnable On
MaxMindDBFile DB /opt/GeoIP/GeoLite2-Country.mmdb
MaxMindDBEnv MM_COUNTRY_CODE DB/country/iso_code
SetEnvIf MM_COUNTRY_CODE ^(AT|BE|BG|HR|CY|CZ|DK|EE|FI|FR|DE|GR|HU|IE|IT|LV|LT|LU|MT|NL|PL|PT|RO|SK|SI|ES|SE|GB|GI|AX|PM|GL|BL|SX|AW|CW|WF|PF|NC|TF|AI|BM|IO|VG|KY|FK|MS|PN|SH|GS|TC|IS|LI|NO|EU) BlockCountry
Deny from env=BlockCountry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment