fix mail server and lint removal
This commit is contained in:
@@ -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) }
|
||||
|
||||
@@ -64,7 +64,7 @@ Rails.application.configure do
|
||||
config.action_mailer.smtp_settings = {
|
||||
user_name: Rails.application.credentials.dig(:mail, :username),
|
||||
password: Rails.application.credentials.dig(:mail, :password),
|
||||
address: Rails.application.credentials.dig(:mail, :smtp_server),
|
||||
address: Rails.application.credentials.dig(:mail, :server),
|
||||
port: 587,
|
||||
authentication: :plain
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user