【问题标题】:How to make a particular div non crawl able on a html page如何在 html 页面上使特定的 div 不可抓取
【发布时间】:2016-05-02 17:57:03
【问题描述】:

我试图阻止特定的 div,以便 Google 无法抓取它。我对此进行了很多搜索并得到了一些解决方案。但在一些博客中,这些方法对 SEO 的观点并不好。

  1. 在 css 中使用 display:none
  2. 可见性:隐藏
  3. 使用 Z 索引

感谢此链接Methos to hide text

请帮我找出一些替代方法来使特定的 div 不可抓取。

【问题讨论】:

标签: javascript html angularjs


【解决方案1】:

放置 googleon/googleoff 标签来告诉 Google 何时开始和停止索引网络文档的各个部分:

<p>This is normal (X)HTML content that will be indexed by Google.</p>
<!--googleoff: index-->
<p>This (X)HTML content will NOT be indexed by Google.</p>
<!--googleon: index>

【讨论】:

  • googleon/googleoff 标签不起作用,它们已经过时了,我在某处读过
  • @Kanika 你检查过我链接的官方谷歌文档吗?
  • @sc3w 是的,我做到了,但我的 SEO 经理告诉我不要使用 googleon/googleoff 会出现问题,这是临时解决方案
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2021-05-31
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-05-08
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多