1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-13 00:10:09 +01:00
searxng/searx/botdetection
Markus Heiser 3294e7cfe4 [fix] reduce error logs related to X-Forwarded-For & X-Real-IP headers
To test start a `make run` instance and query multiple times for `ip` (the
answerer), you should see only once the error message(s):

    ERROR   searx.botdetection            : X-Forwarded-For header is not set!
    ERROR   searx.botdetection            : X-Real-IP header is not set!

[1] https://github.com/searxng/searxng-docker/discussions/174
[2] https://github.com/searxng/searxng-docker/pull/162#issuecomment-1692834457

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2023-08-28 08:05:17 +02:00
..
__init__.py [fix] limiter: replace real_ip by IPv4/v6 network 2023-06-01 15:51:14 +02:00
_helpers.py [fix] reduce error logs related to X-Forwarded-For & X-Real-IP headers 2023-08-28 08:05:17 +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_accept.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