Is there a way to make robots ignore certain text?

后端 未结 9 1620
野的像风
野的像风 2020-12-02 23:02

I have my blog (you can see it if you want, from my profile), and it\'s fresh, as well as google robots parsing results are.

The results were alarming to me. Appare

9条回答
  •  隐瞒了意图╮
    2020-12-02 23:39

    There is a simple way to tell google to not index parts of your documents, that is using googleon and googleoff:

    This is normal (X)HTML content that will be indexed by Google.

    This (X)HTML content will NOT be indexed by Google.

    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 Google

      anchor — anchor text for any links within a “googleoff: anchor” area will not be associated with the target page

      snippet — content surrounded by “googleoff: snippet” will not be used to create snippets for search results

      all — content surrounded by “googleoff: all” are treated with all

    source

提交回复
热议问题