使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
向 Google 说明您的出站链接的用意
对于您网站上的某些链接,您可能需要向 Google 说明您的网站与链接页之间的关系。为此,请在 <a>
标记中使用下列 rel
属性值之一。
对于您希望 Google 无任何限定条件便直接提取和解析的常规链接,您无需添加 rel
属性。例如:
<p>My favorite horse is the <a href="https://horses.example.com/Palomino">palomino</a>.</p>
对于其他链接,请使用以下一个或多个值:
rel 值 |
|
请使用 sponsored 值标记广告链接或付费展示位置链接(通常称为“付费链接”)。详细了解 Google 对付费链接的态度。
<a rel="sponsored" href="https://cheese.example.com/Appenzeller_cheese">Appenzeller</a>
|
rel="ugc"
|
建议您使用 ugc 值标记用户生成的内容(例如评论和论坛帖子)的链接。
<a rel="ugc" href="https://cheese.example.com/Appenzeller_cheese">Appenzeller</a>
如果您想对值得信赖的贡献者(始终如一地做出高质量贡献的成员或用户)表示认可和奖励,则可从他们发布的链接中移除此属性。 详细了解如何防止网站和平台存在用户生成的垃圾内容。
|
rel="nofollow"
|
如果其他值不适用,并且您希望 Google 不跟踪您网站上的出站链接,或不从您的网站上抓取链接页,请使用 nofollow 值。对于您网站中的链接,请使用 robots.txt disallow 规则。
<a rel="nofollow" href="https://cheese.example.com/Appenzeller_cheese">Appenzeller</a>
|
多个值 |
您可以使用以空格或英文逗号分隔的列表,指定多个 rel 值。示例:
<p>I love <a rel="ugc nofollow" href="https://cheese.example.com/Appenzeller_cheese">Appenzeller</a> cheese.</p>
<p>I hate <a rel="ugc,nofollow" href="https://cheese.example.com/blue_cheese">Blue</a> cheese.</p>
|
Google 通常不会跟踪标有这些 rel
属性的链接。请注意,链接页也可能经由其他途径找到(例如站点地图或其他网站的出站链接),因此仍有可能被抓取。这些 rel
属性仅能在 Google 可抓取的 <a>
元素中使用,但 nofollow
除外,该属性还可用作漫游器 meta
标记。
如果您不想让 Google 提取指向您的站内网页的链接,请使用 robots.txt disallow
规则。
如果您不想让 Google 将某个网页编入索引,请允许抓取并使用 noindex
robots 规则。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-09-02。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"没有我需要的信息"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"太复杂/步骤太多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"内容需要更新"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/代码问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]
{"lastModified": "\u6700\u540e\u66f4\u65b0\u65f6\u95f4 (UTC)\uff1a2024-09-02\u3002"}
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2024-09-02。"]]