# ============================================================ # robots.txt # 核心策略: # 1. 仅允许指定搜索引擎蜘蛛抓取网站。 # 2. 禁止其他所有未明确允许的爬虫。 # 3. 声明网站 Sitemap 地址。 # 注意: # ============================================================ # ============================================================ # 一、允许 Google 搜索引擎 # ============================================================ User-agent: Googlebot Allow: / # Google 图片搜索蜘蛛 User-agent: Googlebot-Image Allow: / # Google 移动搜索蜘蛛 User-agent: Googlebot-Mobile Allow: / # Google AdsBot User-agent: AdsBot-Google Allow: / # ============================================================ # 二、允许 Bing 搜索引擎 # ============================================================ User-agent: Bingbot Allow: / # Bing 图片搜索蜘蛛 User-agent: Bingbot-Image Allow: / # ============================================================ # 三、允许百度搜索引擎 # ============================================================ User-agent: Baiduspider Allow: / # 百度图片蜘蛛 User-agent: Baiduspider-image Allow: / # 百度移动搜索蜘蛛 User-agent: Baiduspider-mobile Allow: / # ============================================================ # 四、允许其他指定搜索引擎 # ============================================================ # 俄罗斯 Yandex 搜索引擎 User-agent: Yandex Allow: / # DuckDuckGo 搜索引擎 User-agent: DuckDuckBot Allow: / # Yahoo 搜索引擎(部分抓取依赖 Bing) User-agent: Slurp Allow: / # 搜狗搜索引擎 User-agent: Sogou Allow: / # 360 搜索引擎 User-agent: 360Spider Allow: / # 神马搜索引擎 User-agent: YisouSpider Allow: / # ============================================================ # 五、禁止 AI 爬虫及 AI 数据采集机器人 # ============================================================ # OpenAI 爬虫 User-agent: GPTBot Disallow: / # OpenAI 搜索爬虫 User-agent: OAI-SearchBot Disallow: / # OpenAI 用户触发访问爬虫 User-agent: ChatGPT-User Disallow: / # Anthropic Claude 爬虫 User-agent: ClaudeBot Disallow: / # Claude 用户触发访问 User-agent: Claude-User Disallow: / # Google AI 训练爬虫 User-agent: Google-Extended Disallow: / # Common Crawl 数据采集 User-agent: CCBot Disallow: / # Meta AI 爬虫 User-agent: Meta-ExternalAgent Disallow: / # Meta AI 用户访问爬虫 User-agent: Meta-ExternalFetcher Disallow: / # Apple AI 爬虫 User-agent: Applebot-Extended Disallow: / # Amazon AI 爬虫 User-agent: Amazonbot Disallow: / # Perplexity AI 爬虫 User-agent: PerplexityBot Disallow: / # Bytespider 字节跳动爬虫 User-agent: Bytespider Disallow: / # Diffbot 数据采集 User-agent: Diffbot Disallow: / # AI2 数据采集 User-agent: AI2Bot Disallow: / # ============================================================ # 六、禁止 SEO 工具及网站分析爬虫 # ============================================================ # Ahrefs SEO 爬虫 User-agent: AhrefsBot Disallow: / # Semrush SEO 爬虫 User-agent: SemrushBot Disallow: / # Majestic SEO 爬虫 User-agent: MJ12bot Disallow: / # Moz SEO 爬虫 User-agent: rogerbot Disallow: / # Screaming Frog User-agent: Screaming Frog SEO Spider Disallow: / # DotBot User-agent: DotBot Disallow: / # BLEXBot User-agent: BLEXBot Disallow: / # DataForSEO User-agent: DataForSeoBot Disallow: / # ============================================================ # 七、禁止其他通用爬虫、采集器及自动化机器人 # ============================================================ # 通用 HTTP 采集器 User-agent: Scrapy Disallow: / User-agent: HTTrack Disallow: / User-agent: WebZIP Disallow: / User-agent: Teleport Disallow: / User-agent: SiteSnagger Disallow: / User-agent: WebCopier Disallow: / User-agent: libwww-perl Disallow: / User-agent: Python-urllib Disallow: / User-agent: python-requests Disallow: / User-agent: Go-http-client Disallow: / User-agent: Java Disallow: / User-agent: curl Disallow: / User-agent: wget Disallow: / # ============================================================ # 八、禁止未明确授权的其他所有爬虫 # ============================================================ # 默认规则: # 没有在上面明确允许的爬虫,全部禁止访问。 # # 注意:遵守 robots.txt 的爬虫会按匹配的 User-agent # 分组执行规则。未匹配到专属规则的爬虫执行此规则。 User-agent: * Disallow: / # ============================================================ # 九、网站地图 # ============================================================ Sitemap: https://ymxic.com/sitemap.xml # ============================================================ # 文件结束 # ============================================================