# nginx: block AI bots by user-agent # Generated by AI Bots DB (https://github.com/ai-bots-db/ai-bots-db) # Blocked purposes: all # 1. Put this map in the http {} block. # 2. In each server {} block add: if ($ai_bot) { return 403; } map $http_user_agent $ai_bot { default 0; "~*AddSearchBot" 1; "~*AgentDataBot" 1; "~*AgentTimes" 1; "~*AGI\sAgent" 1; "~*AI2Bot-DeepResearchEval" 1; "~*Ai2Bot-Dolma" 1; "~*AI2Bot" 1; "~*aiHitBot" 1; "~*AIWebIndex" 1; "~*amazon-kendra" 1; "~*amazon-QBusiness" 1; "~*Amazonbot" 1; "~*AmazonBuyForMe" 1; "~*Amzn-SearchBot" 1; "~*Amzn-User" 1; "~*Andibot" 1; "~*Anomura" 1; "~*anthropic-ai" 1; "~*ApifyBot" 1; "~*ApifyWebsiteContentCrawler" 1; "~*Applebot" 1; "~*Aranet-SearchBot" 1; "~*atlassian-bot" 1; "~*Awario" 1; "~*AzureAI-SearchBot" 1; "~*bedrockbot" 1; "~*bigsur\.ai" 1; "~*BixelBot" 1; "~*Bravebot" 1; "~*Brightbot" 1; "~*BuddyBot" 1; "~*Bytespider" 1; "~*CartAI\sAgentic\sCommerce" 1; "~*CCBot" 1; "~*Channel3Bot" 1; "~*ChatGLM-Spider" 1; "~*ChatGPT-User" 1; "~*Claude-Agent" 1; "~*Claude-Code" 1; "~*Claude-SearchBot" 1; "~*Claude-User" 1; "~*Claude-Web" 1; "~*ClaudeBot" 1; "~*CledaraBot" 1; "~*Cloudflare-AutoRAG" 1; "~*CloudflareBrowserRenderingCrawler" 1; "~*cohere-ai" 1; "~*cohere-training-data-crawler" 1; "~*Cotoyogi" 1; "~*CragCrawler" 1; "~*Crawlspace" 1; "~*Datenbank\sCrawler" 1; "~*DeepSeekBot" 1; "~*Diffbot-User" 1; "~*Diffbot" 1; "~*DoubaoBot" 1; "~*DuckAssistBot" 1; "~*EchoboxBot" 1; "~*ElevenlabsBot" 1; "~*ElevenlabsCrawler" 1; "~*ERNIEBot" 1; "~*ExaBot" 1; "~*ExaSearchBot" 1; "~*ExaUser" 1; "~*Factset_spyderbot" 1; "~*FirecrawlAgent" 1; "~*FriendlyCrawler" 1; "~*GeistHaus-PageFetcher" 1; "~*Gemini-Deep-Research" 1; "~*GeneralRetrievalBot" 1; "~*Google-Agent" 1; "~*Google-CloudVertexBot" 1; "~*Google-Firebase" 1; "~*Google-Gemini-CLI" 1; "~*Google-GeminiNotebook" 1; "~*Google-NotebookLM" 1; "~*GoogleAgent-Mariner" 1; "~*GoogleAgent-URLContext" 1; "~*GoogleOther-Image" 1; "~*GoogleOther-Video" 1; "~*GoogleOther" 1; "~*GPTBot" 1; "~*GrokAppAndroid" 1; "~*GrokBot" 1; "~*Haiku-SearchBot" 1; "~*HarkBot" 1; "~*HatchFeed" 1; "~*HenkBot" 1; "~*Hunyuan" 1; "~*iAskBot" 1; "~*iaskspider" 1; "~*ICC-Crawler" 1; "~*ImagesiftBot" 1; "~*imageSpider" 1; "~*img2dataset" 1; "~*ISSCyberRiskCrawler" 1; "~*kagi-fetcher" 1; "~*Kangaroo\sBot" 1; "~*KeenableBot" 1; "~*Kimi-Agent" 1; "~*Kimi-SearchBot" 1; "~*Kimi-User" 1; "~*KimiBot" 1; "~*KlaviyoAIBot" 1; "~*KunatoCrawler" 1; "~*laion-huggingface-processor" 1; "~*LAIONDownloader" 1; "~*Liner-User" 1; "~*LinerBot" 1; "~*Linguee\sBot" 1; "~*LinkupBot" 1; "~*Manus-User" 1; "~*Meta-ExternalAgent" 1; "~*Meta-ExternalFetcher" 1; "~*Meta-WebIndexer" 1; "~*MiniMaxAgent" 1; "~*MistralAI-Index" 1; "~*MistralAI-Training" 1; "~*MistralAI-User" 1; "~*MoonshotBot" 1; "~*Mozilla-Tabstack" 1; "~*MyCentralAIScraperBot" 1; "~*NagetBot" 1; "~*netEstate\sImprint\sCrawler" 1; "~*newsai" 1; "~*NotebookLM" 1; "~*NovaAct" 1; "~*OAI-AdsBot" 1; "~*OAI-SearchBot" 1; "~*omgili" 1; "~*PanguBot" 1; "~*Panscient" 1; "~*Payhawk\sInvoice\sFetching\sAgent" 1; "~*Perplexity-User" 1; "~*PerplexityBot" 1; "~*PetalBot" 1; "~*PhindBot" 1; "~*Poggio-Citations" 1; "~*Poseidon\sResearch\sCrawler" 1; "~*qodercli" 1; "~*QualifiedBot" 1; "~*Querit-SearchBot" 1; "~*QueritBot" 1; "~*QuillBot" 1; "~*QwenBot" 1; "~*Reflectionbot" 1; "~*SBIntuitionsBot" 1; "~*ScryBot" 1; "~*SemrushBot-OCOB" 1; "~*SemrushBot-SWA" 1; "~*Shap-User" 1; "~*ShapBot" 1; "~*Sidetrade\sindexer\sbot" 1; "~*TavilyBot" 1; "~*TerraCotta" 1; "~*Thinkbot" 1; "~*TikTokSpider" 1; "~*Timpibot" 1; "~*TongyiBot" 1; "~*TwinAgent" 1; "~*VelenPublicWebCrawler" 1; "~*WARDBot" 1; "~*wpbot" 1; "~*WRTNBot" 1; "~*xAI-Grok" 1; "~*YandexAdditionalBot" 1; "~*YiBot" 1; "~*YiyanBot" 1; "~*YouBot" 1; "~*ZanistaBot" 1; }