mirror of
https://github.com/searxng/searxng.git
synced 2025-07-22 12:49:22 +02:00
[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>
This commit is contained in:
parent
c82b9c68d2
commit
f79b0fce06
4 changed files with 140 additions and 0 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue