More crawlers

main
Bob Mottram 2024-05-06 22:32:11 +01:00
parent b89f0e658f
commit 9057c542f1
1 changed files with 2 additions and 1 deletions

View File

@ -128,7 +128,8 @@ def blocked_user_agent(calling_domain: str, agent_str: str,
# unless this is a news instance or if it is in the allowed list
bot_strings = ('bot/', 'bot-', '/bot', '/robot', 'gptbot',
'-ai/', ' ai/', '-ai ', ' ai ', 'spider/',
'externalhit/', 'chatgpt')
'externalhit/', 'chatgpt', 'google',
'anthropic')
contains_bot_string = False
for bot_str in bot_strings:
if bot_str in agent_str_lower: