diff options
Diffstat (limited to 'searx/plugins/limiter.py')
-rw-r--r-- | searx/plugins/limiter.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/searx/plugins/limiter.py b/searx/plugins/limiter.py index e1cd0e408..2a9e6f8f5 100644 --- a/searx/plugins/limiter.py +++ b/searx/plugins/limiter.py @@ -47,6 +47,9 @@ def is_accepted_request() -> bool: user_agent = request.headers.get('User-Agent', 'unknown') x_forwarded_for = request.headers.get('X-Forwarded-For', '') + if request.path == '/healthz': + return True + if block_user_agent.match(user_agent): logger.debug("BLOCK %s: %s --> detected User-Agent: %s" % (x_forwarded_for, request.path, user_agent)) return False |