Avoid crawling part of a page with “googleoff” and

2020-02-11 18:15发布

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?

2条回答
老娘就宠你
2楼-- · 2020-02-11 18:29

The correct googleon tag is as given below:

    <!--googleon: all>
查看更多
做个烂人
3楼-- · 2020-02-11 18:43

"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.

查看更多
登录 后发表回答