Skip to content
Snippets Groups Projects
Commit 2dd079f9 authored by jurgenhaas's avatar jurgenhaas
Browse files

ansible-inventories/gentner#2265 Add support for URIBAN and URIMBAN

parent beafbda4
No related branches found
No related tags found
No related merge requests found
......@@ -83,6 +83,11 @@ sub vcl_recv {
# Throw a synthetic page so the request won't go to the backend.
return (synth(200, "Ban added."));
}
if (req.method == "URIMBAN") {
ban("req.http.host == " + req.http.host + " && req.url ~ " + req.url);
# Throw a synthetic page so the request won't go to the backend.
return (synth(200, "Ban added."));
}
# Only deal with "normal" types
if (req.method != "GET" &&
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment