Merge pull request #2396 from return42/block-petal

[mod] limiter: block requests from PetalBot
This commit is contained in:
Markus Heiser 2023-05-03 08:25:59 +02:00 committed by GitHub
commit e840c48122
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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')'
)