跳到正文
Skillpedia
SEO75k · #3003

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/robots-meta-conflict/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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 noindex meta 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.

repo: thedaviddias/Front-End-Checklist

热度

GitHub 星标
75k
排名
#3003
许可证
MIT
更新时间
2026/10/31

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能