mirror of
https://gitlab.com/tildes/tildes.git
synced 2026-04-17 23:08:32 +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:
|
def is_bot(request: Request) -> bool:
|
||||||
"""Return whether the request is by a known bot (e.g. search engine crawlers)."""
|
"""Return whether the request is by a known bot (e.g. search engine crawlers)."""
|
||||||
bot_user_agent_substrings = (
|
bot_user_agent_substrings = (
|
||||||
|
"Amazonbot",
|
||||||
"bingbot",
|
"bingbot",
|
||||||
"Googlebot",
|
"Googlebot",
|
||||||
"heritrix",
|
"heritrix",
|
||||||
|
|||||||
Reference in New Issue
Block a user