diff options
| author | Robert Günzler <r@gnzler.io> | 2025-09-07 17:32:13 +0200 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2025-09-25 12:56:47 +0200 |
| commit | 0bb17cd2f34918add1ddaedeb0a66531dea561a3 (patch) | |
| tree | f1d3a825273c8a2ab3e804876328bd3f1a939f68 /bundles/go-away/files/config/snippets/bot-yandexbot.yml | |
| parent | 332d333fa24c8b1943799aadb017f61e642008e1 (diff) | |
go-away: use config.yml and vendor all configuration files
Signed-off-by: Robert Günzler <r@gnzler.io>
Diffstat (limited to 'bundles/go-away/files/config/snippets/bot-yandexbot.yml')
| -rw-r--r-- | bundles/go-away/files/config/snippets/bot-yandexbot.yml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/bundles/go-away/files/config/snippets/bot-yandexbot.yml b/bundles/go-away/files/config/snippets/bot-yandexbot.yml new file mode 100644 index 0000000..981ee42 --- /dev/null +++ b/bundles/go-away/files/config/snippets/bot-yandexbot.yml @@ -0,0 +1,24 @@ +networks: + yandexbot: + # todo: detected as bot + # - url: https://yandex.com/ips + # regex: "<span>(?P<prefix>(([0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+)|([0-9a-f:]+::))/[0-9]+)[ \\\\t]*</span><br/>" + - prefixes: + - "5.45.192.0/18" + - "5.255.192.0/18" + - "37.9.64.0/18" + - "37.140.128.0/18" + - "77.88.0.0/18" + - "84.252.160.0/19" + - "87.250.224.0/19" + - "90.156.176.0/22" + - "93.158.128.0/18" + - "95.108.128.0/17" + - "141.8.128.0/18" + - "178.154.128.0/18" + - "185.32.187.0/24" + - "2a02:6b8::/29" + +conditions: + is-bot-yandexbot: + - &is-bot-yandexbot 'userAgent.contains("+http://yandex.com/bots") && remoteAddress.network("yandexbot")' \ No newline at end of file |