Mobile app version of vmapp.org
Login or Join
Heady270

: 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

@Heady270

Posted in: #Googlebot #Indexing

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?

10.03% popularity Vote Up Vote Down


Login to follow query

More posts by @Heady270

3 Comments

Sorted by latest first Latest Oldest Best

 

@Speyer207

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.

10% popularity Vote Up Vote Down


 

@Phylliss660

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.

10% popularity Vote Up Vote Down


 

@Nimeshi995

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme