Skip to content

Instantly share code, notes, and snippets.

@ilokano
Last active August 29, 2015 14:21
Show Gist options
  • Save ilokano/83c2122e864a72aac6a9 to your computer and use it in GitHub Desktop.
Save ilokano/83c2122e864a72aac6a9 to your computer and use it in GitHub Desktop.
# Block by country
# The countries blocked below are Brazil, China, South Korea, Russia, Kazachstan, Ukraine
# Add to server{) block
if ($geoip_country_code ~ (BR|CN|KP|KR|RU|KZ|UA) ) {
return 444;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment