[英]How to make a particular div non crawl able on a html page
I was trying to block a particular div so that Google cannot crawl it.我试图阻止特定的 div,以便 Google 无法抓取它。 I have searched lot regarding this and got some solutions.
我对此进行了很多搜索并得到了一些解决方案。 But in some blogs these methods are not good for SEO point of view .
但在一些博客中,这些方法对于 SEO 的观点来说并不好。
Thanks to this link Methos to hide text感谢此链接隐藏文本的方法
Please help me to find out some alternative to make a particular div non crawl able.请帮我找出一些替代方法来使特定的 div 无法爬行。
You can tell to the Google bot to not index a specific part of your web page by using the following syntax: 您可以使用以下语法告诉Google漫游器不要为网页的特定部分编制索引:
<!--googleoff: index-->
<div>this is not being indexed</div>
<!--googleon: index>
Everything between the two comment will be ignord by the Google bot. 这两个评论之间的所有内容都会被Google漫游器忽略。
Reference: https://www.google.com/support/enterprise/static/gsa/docs/admin/70/gsa_doc_set/admin_crawl/preparing.html 参考: https : //www.google.com/support/enterprise/static/gsa/docs/admin/70/gsa_doc_set/admin_crawl/preparing.html
Put googleon/googleoff tags to tell Google when to start and stop indexing various parts of the web document: 放置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>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.