: Can you use googleon and googleoff comments to prevent Googlebot from indexing part of a page? I've seen code like for preventing Google from indexing part of a page: <p>This is a paragraph
I've seen code like for preventing Google from indexing part of a page:
<p>This is a paragraph that will be indexed by Google.</p>
<!--googleoff: index-->
<p>This is a paragraph that will NOT be indexed by Google.</p>
<!--googleon: index>
Does this work?
More posts by @Heady270
3 Comments
Sorted by latest first Latest Oldest Best
I think the best thing to do is to use the tag at the head section of the page so that Google will not index the page. Another thing would be blocking the page in the robots.txt.
It is only supported by Google Search Appliance and is not officially documented by Google to be used for Google indexing so most likely will not work on Google.
However, Quora seems to use Googleon/Googleoff on their site for the purpose you want to use it for.
A similar question was asked on Stack Overflow back in January.
John Mueller was kind enough to respond with the following:
"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.
As far as I know there is no such way of telling Google not to index a element of the page.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.