mirror of
https://gitlab.com/tildes/tildes.git
synced 2026-04-16 06:18:34 +02:00
Add Amazonbot to list of bot user agents
This commit is contained in:
@@ -27,6 +27,7 @@ def get_redis_connection(request: Request) -> Redis:
|
||||
def is_bot(request: Request) -> bool:
|
||||
"""Return whether the request is by a known bot (e.g. search engine crawlers)."""
|
||||
bot_user_agent_substrings = (
|
||||
"Amazonbot",
|
||||
"bingbot",
|
||||
"Googlebot",
|
||||
"heritrix",
|
||||
|
||||
Reference in New Issue
Block a user