Avoid crawling part of a page with “googleoff” and “googleon”

我们两清 提交于 2019-12-18 05:43:42

问题


I am trying to tell Google and other search engines not to crawl some parts of my web page.

What I do is:

<!--googleoff: all-->

<select name="ddlCountry" id="ddlCountry">
<option value="All">All</option>
<option value="bahrain">Bahrain</option>
<option value="china">China</option>
</select>

<!--googleon: all-->

After I uploaded the page, I noticed that search engines are stilling rendering elements within the googleoff markup.

Am I doing something wrong?


回答1:


"googleon" and "googleoff" are only supported by the Google Search Appliance (when you host your own search results, usually for your own internal website).

They are not supported by Google's web-search at all.




回答2:


The correct googleon tag is as given below:

    <!--googleon: all>


来源:https://stackoverflow.com/questions/14314111/avoid-crawling-part-of-a-page-with-googleoff-and-googleon

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!