searxng/searx/botdetection
Markus Heiser f3763d73ad [mod] limiter: blocklist and passlist (ip_lists)
A blocklist and a passlist can be configured in /etc/searxng/limiter.toml::

    [botdetection.ip_lists]
    pass_ip = [
      '51.15.252.168',  # IPv4 of check.searx.space
    ]

    block_ip = [
      '93.184.216.34',  # IPv4 of example.org
    ]

Closes: https://github.com/searxng/searxng/issues/2127
Closes: https://github.com/searxng/searxng/pull/2129
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2023-06-05 14:07:19 +02:00
..
__init__.py [fix] limiter: replace real_ip by IPv4/v6 network 2023-06-01 15:51:14 +02:00
_helpers.py [mod] limiter: blocklist and passlist (ip_lists) 2023-06-05 14:07:19 +02:00
http_accept.py [fix] limiter: replace real_ip by IPv4/v6 network 2023-06-01 15:51:14 +02:00
http_accept_encoding.py [fix] limiter: replace real_ip by IPv4/v6 network 2023-06-01 15:51:14 +02:00
http_accept_language.py [fix] limiter: replace real_ip by IPv4/v6 network 2023-06-01 15:51:14 +02:00
http_connection.py [fix] limiter: replace real_ip by IPv4/v6 network 2023-06-01 15:51:14 +02:00
http_user_agent.py [fix] limiter: replace real_ip by IPv4/v6 network 2023-06-01 15:51:14 +02:00
ip_limit.py [mod] limiter: blocklist and passlist (ip_lists) 2023-06-05 14:07:19 +02:00
ip_lists.py [mod] limiter: blocklist and passlist (ip_lists) 2023-06-05 14:07:19 +02:00
limiter.py [mod] limiter: blocklist and passlist (ip_lists) 2023-06-05 14:07:19 +02:00
limiter.toml [mod] limiter: blocklist and passlist (ip_lists) 2023-06-05 14:07:19 +02:00
link_token.py [mod] limiter: blocklist and passlist (ip_lists) 2023-06-05 14:07:19 +02:00