Skip to content

Instantly share code, notes, and snippets.

@section-io-gists
Created July 21, 2017 03:31
Show Gist options
  • Save section-io-gists/c172f2788e315999e45a181b366dcad5 to your computer and use it in GitHub Desktop.
Save section-io-gists/c172f2788e315999e45a181b366dcad5 to your computer and use it in GitHub Desktop.
sub vcl_recv {
# section.io Edge node automatically performs GEO IP (and city) lookup on every request.
# We create a request header called "section-io-geo-country" that you can leverage
if (req.http.section-io-geo-country ~ "^RU$") {
# Block Russia
error 403 "Forbidden";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment