tag for Google

后端 未结 4 1750
时光取名叫无心
时光取名叫无心 2020-12-30 00:13

I would like to tell Google not to index certain parts of the page. In Yandex (russian SE) there\'s a very useful tag called . How can it be done

4条回答
  •  攒了一身酷
    2020-12-30 00:50

    You can prevent Google from seeing portions of the page by putting those portions in iframes that are blocked by robots.txt.

    robots.txt

    Disallow: /iframes/
    

    index.html

    This text is crawlable, but now you'll see 
    text that search engines can't see: