Preventing Google from indexing the contents of a div by reversing the string

后端 未结 6 895
时光说笑
时光说笑 2021-01-07 23:47

I want to prevent that Google indexes the contents of one

on my page. Of course I can create an image but that\'s not really an option in my case si
6条回答
  •  清歌不尽
    2021-01-07 23:53

    Updating this thread. While google will still crawl and index, you can prevent it from showing up in search results with data-nosnippet attribute in the HTML. Can be used in

    , , and
    elements.

    Example:

    Harry Houdini is undoubtedly the most famous magician ever to live.

    See here

提交回复
热议问题