From 4efff58bac778d8eb9570d5e1b831e07099ae80a Mon Sep 17 00:00:00 2001 From: Deimos Date: Fri, 2 Oct 2020 13:14:28 -0600 Subject: [PATCH] Add Amazonbot to list of bot user agents --- tildes/tildes/request_methods.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tildes/tildes/request_methods.py b/tildes/tildes/request_methods.py index 22e4db8..2a78444 100644 --- a/tildes/tildes/request_methods.py +++ b/tildes/tildes/request_methods.py @@ -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",