diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2023-10-02 18:29:58 +0200 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarIT.de> | 2023-11-01 06:44:56 +0100 |
commit | d13a8f64534b2ba7883cabdae1d08ea68b7899c8 (patch) | |
tree | fa9148bf302c9b0af9352c7813ff19c9cb09b026 /searx/botdetection | |
parent | fd814aac863673047c46a9d80682415dae180969 (diff) | |
download | searxng-d13a8f64534b2ba7883cabdae1d08ea68b7899c8.tar.gz searxng-d13a8f64534b2ba7883cabdae1d08ea68b7899c8.zip |
[mod] document server:public_instance & remove it out of the botdetection
- the option server:public_instance lacks some documentation
- the processing of this option belongs in the limiter and not
in botdetection module
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/botdetection')
-rw-r--r-- | searx/botdetection/ip_limit.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/searx/botdetection/ip_limit.py b/searx/botdetection/ip_limit.py index 071978a33..387e580ee 100644 --- a/searx/botdetection/ip_limit.py +++ b/searx/botdetection/ip_limit.py @@ -45,7 +45,6 @@ from ipaddress import ( import flask import werkzeug -from searx import settings from searx import redisdb from searx.redislib import incr_sliding_window, drop_counter @@ -109,7 +108,7 @@ def filter_request( if c > API_MAX: return too_many_requests(network, "too many request in API_WINDOW") - if settings['server']['public_instance'] or cfg['botdetection.ip_limit.link_token']: + if cfg['botdetection.ip_limit.link_token']: suspicious = link_token.is_suspicious(network, request, True) |