Skip to content

Instantly share code, notes, and snippets.

@krasnuydyx
Created December 7, 2017 13:43
Show Gist options
  • Save krasnuydyx/4ad392b645b5b926ebb5d1ef2fc9a5bd to your computer and use it in GitHub Desktop.
Save krasnuydyx/4ad392b645b5b926ebb5d1ef2fc9a5bd to your computer and use it in GitHub Desktop.
Varnish block ip
acl forbidden {
"10.10.10.10";
}
sub vcl_recv {
if (client.ip ~ forbidden) {
error 403 "Forbidden";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment