我想阻止谷歌索引<div>我页面上的内容.当然我可以创建一个图像,但在我的情况下这不是一个选项,因为数据非常动态.
所以,我想出了以下解决方案:
假设我有一个字符串:
The quick brown fox jumps over the lazy dog.
.god yzal eht revo spmuj xof nworb kciuq ehTunicode-bidi:bidi-override; direction: rtl;码:
<div style="unicode-bidi:bidi-override; direction: rtl;">
.god yzal eht revo spmuj xof nworb kciuq ehT
</div>
Run Code Online (Sandbox Code Playgroud)
问题:这会对我的搜索引擎优化排名产生负面影响,因为Google的抓取工具会显示:
.god yzal eht revo spmuj xof nworb kciuq ehT
..这是英文的垃圾
我想阻止谷歌索引我页面上的内容
然后我认为你不应该把这些内容放在页面上,期间.
根据本文,您可以尝试使用googleon/googleoff标记:
<!--googleoff: index-->
don't index this content
<!--googleon: index>
Run Code Online (Sandbox Code Playgroud)
然后,我再次发现这篇文章指出它是不可能的:
http://productforums.google.com/forum/#!topic/webmasters/qrBI_v-N4N0
如何告诉谷歌不要?=============
你没有!
如果它是内容,如果它是该页面的一部分,那么它将被抓取,并且可以被索引和排名
您不能使用元标记或HTML标记来告知Google忽略,折扣,不使用,引用或触摸部分内容.