Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要向所有蜘蛛机器人隐藏我的所有网站页面,除了应该从机器人解析的主页(www.site.com)。
有谁知道我该怎么做?
添加到您不想索引标签的所有页面<meta name="robots" content="noindex" />
<meta name="robots" content="noindex" />
或者你可以robots.txt在你的文档根目录中创建并放上类似的东西:
robots.txt
User-agent: * Allow: /$ Disallow: /*