nofollow-internal
它能做什么
这个技能检查网站内部链接是否带有 nofollow 属性,并在不需要时将其移除。它面向管理自身链接结构的网站所有者和重视搜索优化的开发者。
适用场景
- ✓你请智能体审查自己网站页面之间的链接的时候。
- ✓你发现指向自己页面的链接上有 nofollow 标签,却不确定它是否有用的时候。
- ✓你在清理模板或插件遗留的旧链接标记的时候。
技能链接
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/nofollow-internal/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我检查网站中指向自己页面、并带有 nofollow 的链接,然后去掉它吗?”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会扫描指向同一域名的链接,列出带有 nofollow 值的链接及其来源页面和目标页面。然后它会去掉该属性;如果真正目的是控制索引或抓取,则建议使用 noindex 或 robots.txt。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Avoid nofollow on internal links
Adding rel=nofollow to internal links prevents PageRank from flowing to those pages—reducing their ability to rank—while providing no benefit over simply omitting the attribute.
Quick Reference
- rel=nofollow on internal links blocks PageRank flow to your own pages
- Internal nofollow was once used for 'PageRank sculpting' but is no longer effective
- Use nofollow only on outbound links to untrusted or sponsored content
- If you don't want a page crawled or indexed, use noindex on the target page instead
Check
Scan all internal links (<a href> tags pointing to the same domain) for the presence of rel='nofollow' or rel containing 'nofollow'. List each instance with its source page, anchor text, and target URL.
Fix
Remove rel='nofollow' from internal links. If the goal was to prevent indexing of the target page, add <meta name='robots' content='noindex'> to the target page instead. If the goal was to prevent crawling, use robots.txt Disallow for that path.
Explain
The rel=nofollow attribute was originally designed for untrusted external links. When applied to internal links, it blocks PageRank from flowing to your own pages without any benefit. Google has stated that PageRank sculpting via nofollow does not work—the PageRank that would have passed is simply lost, not redistributed.
Code Review
Query all <a href='...'> elements. For each link, check if rel contains 'nofollow'. Determine if the link is internal (same domain) or external. Flag every internal link with rel='nofollow'. Check if the flagged links are in navigation, header, footer, or body content. Look for rel='nofollow new-tab' patterns that may have been applied blanket to all links.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/seo/nofollow-internal
常见问题
内部链接上的 nofollow 能提升排名吗?
不能。这个技能说,它会阻止链接价值传递到你自己的页面,没有任何实际好处。
如果想让页面不出现在搜索中,应该用什么?
这个技能建议在页面本身设置 noindex 的 robots meta 标签,或使用 robots.txt 规则阻止抓取某个路径。
什么时候仍然适合使用 nofollow?
这个技能说,它是为指向不可信或付费推广内容的外部链接准备的。
详情
作者的原始描述
Use when auditing internal link structure or reviewing link attributes. Applies to any site using rel=nofollow on links pointing to pages within the same domain.
热度
- GitHub 星标
- 75k
- 排名
- #2952
- 许可证
- MIT
- 更新时间
- 2026/10/31
评论
- …
同一仓库的更多技能
frontendchecklist
75k使用命令行工具,依据 380 多条关于无障碍、速度、SEO 和安全的规则,检查前端代码和线上页面。
frontend-checklist-global
75k依据全部 386 条 Front-End Checklist 规则审查前端项目,并为发现的每个问题给出具体修复方法。
404-page
75k检查你的页面缺失提示是否提供有用的链接,并返回真正的 404 状态,帮助迷路的访客找到方向。
about-page
75k审查你的网站是否有清晰的关于页面,说明由谁运营,以建立访客和搜索引擎的信任。