Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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?

share|improve this question
+1 for me. I'd also like to know if there are any other codes. –  Mathew Foscarini Nov 2 '13 at 17:34
after searching for where I learned this. I can only find references in the appliance manual. –  Mathew Foscarini Nov 2 '13 at 17:43

1 Answer 1

up vote 8 down vote accepted

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, Google wants to take everything into consideration as there may be undiserables on the page. Hiding visible content from Google is know as Cloaking.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.