.oO SearXNG Developer Documentation Oo.
Loading...
Searching...
No Matches
__init__.py
Go to the documentation of this file.
1# SPDX-License-Identifier: AGPL-3.0-or-later
2""".. _botdetection src:
3
4Implementations used for bot detection.
5
6"""
7
8from ._helpers import dump_request
9from ._helpers import get_real_ip
10from ._helpers import get_network
11from ._helpers import too_many_requests
12
13__all__ = ['dump_request', 'get_network', 'get_real_ip', 'too_many_requests']
14
15redis_client = None
16cfg = None
17
18
19def init(_cfg, _redis_client):
20 global redis_client, cfg # pylint: disable=global-statement
21 redis_client = _redis_client
22 cfg = _cfg
init(_cfg, _redis_client)
Definition __init__.py:19