gpt4 book ai didi

seo - Google 的 标签

转载 作者:塔克拉玛干 更新时间:2023-11-03 02:26:54 25 4
gpt4 key购买 nike

我想告诉谷歌不要索引页面的某些部分。在 Yandex(俄语 SE)中,有一个非常有用的标签,叫做 <noindex> . Google 如何做到这一点?

最佳答案

根据维基百科1一些蜘蛛遵循一些规则:

<!--googleoff: all-->
This should not be indexed by Google. Though its main spider, Googlebot,
might ignore that hint.
<!--googleon: all-->

<div class="robots-nocontent">Yahoo bots won't index this.</div>

<noindex>Yandex bots ignore this text.</noindex>
<!--noindex-->They will ignore this, too.<!--/noindex-->

不幸的是,他们似乎无法就单一标准达成一致——据我所知,没有什么可以阻止所有蜘蛛...

googleoff:评论似乎支持不同的选项,但我不确定哪里有完整的列表。至少有:

  • all:完全忽略 block
  • 索引:内容不会进入 Google 的索引
  • anchor:链接的 anchor 文本不会与目标页面相关联
  • 片段:文本不会用于为搜索结果创建片段

还要注意(至少对于 Google)这只会影响搜索索引,不会影响页面排名等。此外,Stephen Ostermiller在下面的评论中正确指出,googleongoogleoff only work with the Google search appliance and have no effect on normal Googlebot ,不幸的是。

还有一篇关于 Yahoo 部分2 的文章(以及一篇描述 Yandex 也支持 <noindex> 6 的文章)。关于googleoff:部分,另见 this answer , 以及那篇文章我拿了大部分相关资料。3


此外,Google Webmaster Tools建议使用 rel=nofollow用于特定链接的属性4(例如广告或指向机器人无法访问/无用的页面的链接,例如登录/注册)。这意味着 HTML a rel Attribute应该被谷歌机器人尊重——尽管这主要与页面排名有关,而不是与搜索索引本身有关。不幸的是,似乎没有 rel=noindex 5,7。我也不确定这个属性是否也可以用于其他元素(例如 <DIV REL="noindex"> );但除非爬虫遵守“noindex”,否则这也没有意义。


更多引用:


1 Wikipedia: Noindex
2 Which Sections of Your Web Pages Might Search Engines Ignore?
3 Tell Google to Not Index Certain Parts of Your Page
4 Use rel="nofollow" for specific links
5 Is it a good idea to use <a href=“http://name.com” rel=“noindex, nofollow”>name</a> ?
6 Using HTML tags — Yandex.Help. Webmaster
7 existing REL values

关于seo - Google 的 <noindex> 标签,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15685205/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com