summaryrefslogtreecommitdiff
path: root/searx/botdetection/ip_limit.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/botdetection/ip_limit.py')
-rw-r--r--searx/botdetection/ip_limit.py3
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)