很多网站为了挡住抓取器,顺手把AI搜索引擎也挡了;也有人发布了 /llms.txt,就等着流量上门,却没检查 /robots.txt 到底有没有放搜索爬虫进来。
![]()
更省事的做法是分工:用 /robots.txt 当抓取许可的闸门,放行 OAI-SearchBot、PerplexityBot、Claude-SearchBot 这类搜索机器人,即便同时禁掉 GPTBot、Google-Extended 这类模型训练用的标识;再配一份 /llms.txt(Content-Type: text/plain; charset=utf-8),让AI助手一次抓取就能找到产品页、定价和文档。
关键在于把两类爬虫分开看:一类负责搜索引用,一类负责模型训练。下面这份 robots.txt 拆分模板的思路就是禁训练、留搜索。
- User-agent: * 允许全站,屏蔽 /admin/ 与 /api/
- OAI-SearchBot、ChatGPT-User、PerplexityBot、Claude-SearchBot 一律 Allow: /
- GPTBot、ClaudeBot 设为 Disallow: /
- 末尾挂上 Sitemap 地址
/llms.txt 的最小蓝图也不复杂:开头写品牌名,用一句话说明你做什么、帮到谁、定价透明;再列核心页面,比如产品页(关键功能与定价)和文档页(安装指南)。
想验证效果,可以把域名丢进免费的 Onyxcine SEO & GEO Checker(无需注册),看站点是否以 UTF-8 头正常返回 /llms.txt、是否放行 OAI-SearchBot 与 PerplexityBot、以及有没有输出服务端渲染的 JSON-LD。
特别声明:以上内容(如有图片或视频亦包括在内)为自媒体平台“网易号”用户上传并发布,本平台仅提供信息存储服务。
Notice: The content above (including the pictures and videos if any) is uploaded and posted by a user of NetEase Hao, which is a social media platform and only provides information storage services.