# robots.txt —— 由 nginx 直接提供(/etc/nginx/dujiao-robots.txt),不经过应用 # # 站点是 Nuxt SPA:商品页内容由前端 JS 调 /api/v1/public/* 拉取, # 必须放行,否则 Googlebot 渲染拿不到数据会判「软 404」拒绝收录。 # robots 协议中 Allow 优先级高于 Disallow,故下面的白名单能覆盖 /api/ 整段屏蔽。 ### 1) 默认规则 ### User-agent: * Content-Signal: search=yes, ai-train=no, use=reference Allow: / Allow: /api/v1/public/ # 私有区域禁止收录 Disallow: /api/ Disallow: /admin/ Disallow: /me/ Disallow: /cart Disallow: /checkout Disallow: /pay Disallow: /orders/ Disallow: /recharge-orders/ Disallow: /guest/ Disallow: /auth/ ### 2) AI 爬虫:一律禁止,仅保留搜索引擎与图片收录 ### User-agent: Ai2Bot Disallow: / User-agent: Ai2Bot-Dolma Disallow: / User-agent: Amazonbot Disallow: / User-agent: anthropic-ai Disallow: / User-agent: Applebot-Extended Disallow: / User-agent: Bytespider Disallow: / User-agent: CCBot Disallow: / User-agent: ChatGPT-User Disallow: / User-agent: ClaudeBot Disallow: / User-agent: Claude-SearchBot Disallow: / User-agent: Claude-Web Disallow: / User-agent: CloudflareBrowserRenderingCrawler Disallow: / User-agent: Cohere-ai Disallow: / User-agent: cohere-training-data-crawler Disallow: / User-agent: Diffbot Disallow: / User-agent: DuckAssistBot Disallow: / User-agent: FacebookBot Disallow: / User-agent: Fetcherr Disallow: / User-agent: FirecrawlBot Disallow: / User-agent: Google-Extended Disallow: / User-agent: GPTBot Disallow: / User-agent: magpie-crawler Disallow: / User-agent: meta-externalagent Disallow: / User-agent: Meta-ExternalFetcher Disallow: / User-agent: OAI-SearchBot Disallow: / User-agent: omgili Disallow: / User-agent: omgilibot Disallow: / User-agent: PerplexityBot Disallow: / User-agent: PetalBot Disallow: / User-agent: PiplBot Disallow: / User-agent: Scrapy Disallow: / User-agent: Tenspider Disallow: / User-agent: Timpibot Disallow: / User-agent: VelenPublicWebCrawler Disallow: / User-agent: Webzio-Extended Disallow: / User-agent: YouBot Disallow: / User-agent: YandexImages Disallow: / ### 3) Sitemap ### Sitemap: https://idpu.one/sitemap.xml