robots-meta-conflict
它能做什么
这个技能比较 robots.txt 规则与 noindex 标签,找出两者相互冲突的页面。它面向那些即使尝试删除页面,页面仍出现在搜索中的网站所有者。
适用场景
- ✓你请智能体找出既被禁止抓取、又标记为 noindex 的页面的时候。
- ✓你希望删除的页面仍然出现在搜索结果中的时候。
- ✓网站改版后,你在清理索引设置的时候。
技能链接
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/robots-meta-conflict/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我想从 Google 中删除的一些页面仍然出现在搜索中。请帮我检查 robots.txt 是否屏蔽了 noindex 标签吗?”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会比较 robots.txt 中的 disallow 路径与带有 noindex meta 标签的页面。它会标出同时被屏蔽又标记为 noindex 的页面,因为抓取工具无法读取被屏蔽页面上的标签。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Robots Meta Conflict
Pages that appear in search results despite your intention to deindex them are usually blocked in robots.txt — Google cannot read the noindex directive it cannot fetch.
Quick Reference
- If a page is blocked in robots.txt, crawlers never fetch it and therefore never read its
noindexmeta tag - To properly deindex a page, use
<meta name="robots" content="noindex">without blocking it in robots.txt - If you block a URL in robots.txt, Google may still show it in results using anchor text from backlinks
- Audit pages that need to be deindexed by confirming they are crawlable but carry
noindex
Check
Cross-reference the site's robots.txt disallow paths against pages carrying <meta name="robots" content="noindex">. Flag any page where the URL matches a Disallow rule AND has a noindex tag — the noindex will never be seen by crawlers.
Fix
For pages that must be deindexed: remove the robots.txt Disallow rule for that URL and keep the noindex meta tag. For pages that must simply be uncrawled without appearing: keep the Disallow rule and remove the noindex tag (understanding Google may still show the URL).
Explain
Explain why a page blocked by robots.txt can still appear in Google search results, why the noindex meta tag inside a blocked page is never processed, and how to correctly deindex a page.
Code Review
Review metadata generation, rendered HTML, structured data, and response headers related to Robots Meta Conflict. Flag exact routes or templates where search-facing output violates the rule, and describe how to verify the final page output.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/seo/robots-meta-conflict
常见问题
被屏蔽的页面为什么还会出现在搜索中?
这个技能说,即使 Google 无法读取页面,它仍可能根据链接的锚文本显示被屏蔽的网址。
如何正确地把页面从搜索中移除?
这个技能说,应允许抓取,并在页面上保留 noindex 的 meta 标签。
如果我只想阻止抓取呢?
这个技能说,应保留 disallow 规则并移除 noindex 标签,同时要理解该网址仍可能出现。
详情
作者的原始描述
Use when applies to sites that use both robots.txt disallow rules and meta robots noindex tags. Use when investigating why deindexed pages still appear in search results.
热度
- GitHub 星标
- 75k
- 排名
- #3003
- 许可证
- MIT
- 更新时间
- 2026/10/31
评论
- …
同一仓库的更多技能
frontendchecklist
75k使用命令行工具,依据 380 多条关于无障碍、速度、SEO 和安全的规则,检查前端代码和线上页面。
frontend-checklist-global
75k依据全部 386 条 Front-End Checklist 规则审查前端项目,并为发现的每个问题给出具体修复方法。
404-page
75k检查你的页面缺失提示是否提供有用的链接,并返回真正的 404 状态,帮助迷路的访客找到方向。
about-page
75k审查你的网站是否有清晰的关于页面,说明由谁运营,以建立访客和搜索引擎的信任。