diff options
author | Markus Heiser <markus.heiser@darmarIT.de> | 2023-05-03 08:25:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-03 08:25:59 +0200 |
commit | e840c481226ba25780d4e6d17ec282495ffb33d3 (patch) | |
tree | 0e5c695ec10a8ec38be95322e61682cd171f6e41 | |
parent | e6f4765e0925ddb4a40bbccda87ee001c9da25e5 (diff) | |
parent | 823c490c84a04447a2bc0198d0b168c6b81d6ce2 (diff) | |
download | searxng-e840c481226ba25780d4e6d17ec282495ffb33d3.tar.gz searxng-e840c481226ba25780d4e6d17ec282495ffb33d3.zip |
Merge pull request #2396 from return42/block-petal
[mod] limiter: block requests from PetalBot
-rw-r--r-- | searx/plugins/limiter.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/searx/plugins/limiter.py b/searx/plugins/limiter.py index 72be33910..46c82f588 100644 --- a/searx/plugins/limiter.py +++ b/searx/plugins/limiter.py @@ -37,6 +37,7 @@ block_user_agent = re.compile( # unmaintained Farside instances + r'|' + re.escape(r'Mozilla/5.0 (compatible; Farside/0.1.0; +https://farside.link)') + + '|.*PetalBot.*' + r')' ) |