From 0bb17cd2f34918add1ddaedeb0a66531dea561a3 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Sun, 7 Sep 2025 17:32:13 +0200 Subject: go-away: use config.yml and vendor all configuration files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert Günzler --- bundles/go-away/files/config/snippets/bot-bingbot.yml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 bundles/go-away/files/config/snippets/bot-bingbot.yml (limited to 'bundles/go-away/files/config/snippets/bot-bingbot.yml') diff --git a/bundles/go-away/files/config/snippets/bot-bingbot.yml b/bundles/go-away/files/config/snippets/bot-bingbot.yml new file mode 100644 index 0000000..98fb3db --- /dev/null +++ b/bundles/go-away/files/config/snippets/bot-bingbot.yml @@ -0,0 +1,8 @@ +networks: + bingbot: + - url: https://www.bing.com/toolbox/bingbot.json + jq-path: '(.prefixes[] | select(has("ipv4Prefix")) | .ipv4Prefix), (.prefixes[] | select(has("ipv6Prefix")) | .ipv6Prefix)' + +conditions: + is-bot-bingbot: + - &is-bot-bingbot 'userAgent.contains("+http://www.bing.com/bingbot.htm") && remoteAddress.network("bingbot")' \ No newline at end of file -- cgit 1.4.1