There is a simple way to tell google to not index parts of your documents, that is using googleon
and googleoff
:
<p>This is normal (X)HTML content that will be indexed by Google.</p>
<!--googleoff: index-->
<p>This (X)HTML content will NOT be indexed by Google.</p>
<!--googleon: index-->
In this example, the second paragraph will not be indexed by Google. Notice the “index
” parameter, which may be set to any of the following:
-
index
— content surrounded by “googleoff: index
” will not be indexed
by Googleanchor
— anchor text for any links within a “googleoff: anchor
” area
will not be associated with the target pagesnippet
— content surrounded by “googleoff: snippet
” will not be used
to create snippets for search resultsall
— content surrounded by “googleoff: all
” are treated with all
source