From d8ed9aecf1e8dacfd5c4ca4e3bd4e97cead9d65c Mon Sep 17 00:00:00 2001 From: Oliver Ladner Date: Sun, 21 Sep 2014 16:14:58 +0200 Subject: [PATCH] added varnish ban script (rudimentary) --- varnish_ban.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 varnish_ban.sh diff --git a/varnish_ban.sh b/varnish_ban.sh new file mode 100755 index 0000000..4a82c76 --- /dev/null +++ b/varnish_ban.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +# Ban (purge) all on localhost +varnishadm -T localhost:6082 "ban req.url ~ ." -S /etc/varnish/secret