fix mail server and lint removal
CI / scan_ruby (push) Successful in 16s
CI / scan_js (push) Successful in 12s
CI / lint (push) Successful in 22s
CI / test (push) Successful in 34s

This commit is contained in:
2026-01-30 08:56:12 +01:00
parent 7118f1ea45
commit 4e5c25adbf
2 changed files with 32 additions and 32 deletions
+31 -31
View File
@@ -18,37 +18,37 @@ module BotBlocker
# List of known bot user agents
bot_patterns = [
'gptbot', # OpenAI GPTBot
'chatgpt', # ChatGPT
'claude-web', # Anthropic Claude
'bingbot', # Microsoft Bing
'googlebot', # Google
'baiduspider', # Baidu
'yandexbot', # Yandex
'duckduckbot', # DuckDuckGo
'slurp', # Yahoo
'facebookexternalhit', # Facebook
'twitterbot', # Twitter
'linkedinbot', # LinkedIn
'whatsapp', # WhatsApp
'telegrambot', # Telegram
'slackbot', # Slack
'discordbot', # Discord
'applebot', # Apple
'ia_archiver', # Alexa/Internet Archive
'petalbot', # Huawei
'seznambot', # Seznam
'ahrefsbot', # Ahrefs
'semrushbot', # SEMrush
'mj12bot', # Majestic
'dotbot', # OpenSiteExplorer
'rogerbot', # Moz
'exabot', # Exalead
'facebot', # Facebook
'spider', # Generic spiders
'crawler', # Generic crawlers
'scraper', # Generic scrapers
'bot', # Generic bots (last resort)
"gptbot", # OpenAI GPTBot
"chatgpt", # ChatGPT
"claude-web", # Anthropic Claude
"bingbot", # Microsoft Bing
"googlebot", # Google
"baiduspider", # Baidu
"yandexbot", # Yandex
"duckduckbot", # DuckDuckGo
"slurp", # Yahoo
"facebookexternalhit", # Facebook
"twitterbot", # Twitter
"linkedinbot", # LinkedIn
"whatsapp", # WhatsApp
"telegrambot", # Telegram
"slackbot", # Slack
"discordbot", # Discord
"applebot", # Apple
"ia_archiver", # Alexa/Internet Archive
"petalbot", # Huawei
"seznambot", # Seznam
"ahrefsbot", # Ahrefs
"semrushbot", # SEMrush
"mj12bot", # Majestic
"dotbot", # OpenSiteExplorer
"rogerbot", # Moz
"exabot", # Exalead
"facebot", # Facebook
"spider", # Generic spiders
"crawler", # Generic crawlers
"scraper", # Generic scrapers
"bot" # Generic bots (last resort)
]
bot_patterns.any? { |pattern| user_agent.include?(pattern) }