Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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. – ThinkingMedia Nov 2 '13 at 17:34
after searching for where I learned this. I can only find references in the appliance manual. – ThinkingMedia Nov 2 '13 at 17:43
up vote 10 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

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.

share|improve this answer
I searched on Google for pages on quora.com that are currently indexed in Google. I spot checked half a dozen of them and didn't find "googleoff" or "googleon" in any of them. The article you linked does support your assertion, but it may be out of date. – Stephen Ostermiller May 7 '15 at 20:06

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.