跳到正文
Skillpedia
SEO75k · #2952

nofollow-internal

它能做什么

这个技能检查网站内部链接是否带有 nofollow 属性,并在不需要时将其移除。它面向管理自身链接结构的网站所有者和重视搜索优化的开发者。

适用场景

  • ✓你请智能体审查自己网站页面之间的链接的时候。
  • ✓你发现指向自己页面的链接上有 nofollow 标签,却不确定它是否有用的时候。
  • ✓你在清理模板或插件遗留的旧链接标记的时候。

技能链接

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/nofollow-internal/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

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

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

repo: thedaviddias/Front-End-Checklist

热度

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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能