Skip to content

Instantly share code, notes, and snippets.

@kevburnsjr
Created May 28, 2013 21:44
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 kevburnsjr/5666407 to your computer and use it in GitHub Desktop.
Save kevburnsjr/5666407 to your computer and use it in GitHub Desktop.
sub vcl_fetch {
if (beresp.status >= 200 && beresp.status < 400
&& (req.request == "PUT" || req.request == "POST" || req.request == "DELETE")
&& beresp.http.x-inv) {
ban("obj.http.x-inv-by ~ " + beresp.http.x-inv);
}
}
sub vcl_deliver {
unset resp.http.x-inv-by;
unset resp.http.x-inv;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment