about summary refs log tree commit diff
path: root/bundles/go-away/files/config/snippets/bot-yandexbot.yml
blob: 981ee42704e98f96ae8c730408b18146ef4ed165 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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")'