Skip to content

Instantly share code, notes, and snippets.

@section-io-gists
Created August 14, 2015 02:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save section-io-gists/12e0e35369e3b95ed996 to your computer and use it in GitHub Desktop.
Save section-io-gists/12e0e35369e3b95ed996 to your computer and use it in GitHub Desktop.
Block access to your site with VCL
sub vcl_recv {
if (req.http.User-Agent ~ "(?i)ima-naughty-bot") {
return (synth(403, "Forbidden"));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment