diff options
author | Alexandre Flament <alex@al-f.net> | 2021-12-19 11:01:50 +0100 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2022-02-02 09:15:59 +0100 |
commit | f79b0fce06936878d334a3927e2075f940a9ac46 (patch) | |
tree | 2fce19103233d25a9cd71136fdd66ddcf609b8e1 /searx/settings_defaults.py | |
parent | c82b9c68d282a2f674632ce0e0720da85c64a1c4 (diff) | |
download | searxng-f79b0fce06936878d334a3927e2075f940a9ac46.tar.gz searxng-f79b0fce06936878d334a3927e2075f940a9ac46.zip |
[enh] limiter plugin
can replace filtron:
* rate limite the number of request per IP and per (IP, User-Agent)
* block some bots
use Redis
data stored in Redis never contains the IP addresses, only HMAC using the secret_key
Co-authored-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/settings_defaults.py')
-rw-r--r-- | searx/settings_defaults.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/searx/settings_defaults.py b/searx/settings_defaults.py index ff556e3bb..15b4524c6 100644 --- a/searx/settings_defaults.py +++ b/searx/settings_defaults.py @@ -163,6 +163,7 @@ SCHEMA = { 'server': { 'port': SettingsValue((int, str), 8888, 'SEARXNG_PORT'), 'bind_address': SettingsValue(str, '127.0.0.1', 'SEARXNG_BIND_ADDRESS'), + 'limiter': SettingsValue(bool, False), 'secret_key': SettingsValue(str, environ_name='SEARXNG_SECRET'), 'base_url': SettingsValue((False, str), False), 'image_proxy': SettingsValue(bool, False), |