.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
4
Implementations used for bot detection.
5
6
"""
7
8
from
._helpers
import
dump_request
9
from
._helpers
import
get_real_ip
10
from
._helpers
import
get_network
11
from
._helpers
import
too_many_requests
12
13
__all__ = [
'dump_request'
,
'get_network'
,
'get_real_ip'
,
'too_many_requests'
]
14
15
redis_client =
None
16
cfg =
None
17
18
19
def
init
(_cfg, _redis_client):
20
global
redis_client, cfg
# pylint: disable=global-statement
21
redis_client = _redis_client
22
cfg = _cfg
searx.botdetection.init
init(_cfg, _redis_client)
Definition
__init__.py:19
searxng
searx
botdetection
__init__.py
Generated on Sat Nov 16 2024 00:10:57 for .oO SearXNG Developer Documentation Oo. by
1.12.0