如何禁止搜索引擎收录某一类型的内容?

huah's picture

例如,想禁止搜索引擎收录 story类型。
要禁止某一类型被收录,是要改robot.txt?如何使其自动完成更改,以禁止某一内容类型的内容被收录。

Comments

User-agent: * Disallow: /

robbin.zhao's picture

User-agent: *
Disallow: /


个人Drupal博客Drupal与高性能网站架构

No. That will block all

joetsuihk's picture

No. That will block all search engines to all pages.
Robot.Txt only work with url
You can use path auto and define story content type url like /story/node/nid

and robot.txt:

disallow: /story/*

Thanks.

huah's picture

Thanks.

Bei Jing (China)

Group organizers

Group events

Add to calendar

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week