Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 823c490c authored by Markus Heiser's avatar Markus Heiser
Browse files

[mod] limiter: block requests from PetalBot

Block requests from PetalBlock.  Normally robots.txt is enough to stop
PetalBlock from making requests [1].  However, if SearXNG is offered below a
path (example.org/search), then the robots.txt is not available in the root
paths of the domain / subdomain.

[1] https://webmaster.petalsearch.com/site/petalbot



Signed-off-by: default avatarMarkus Heiser <markus.heiser@darmarit.de>
parent 9967fbb7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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')'
)