使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
控制与 Google 分享的内容
Google 让网站所有者可通过多种方式控制在 Google 搜索结果中显示的内容。虽然大多数人想要的是将网页编入索引,但有时也可能需要采取与之相反的措施:阻止内容显示在 Google 搜索结果中。您可能会出于多种原因而希望阻止 Google 访问您的某些内容:
-
限制数据:您可能希望将自己网站上托管的数据仅呈现给已进入您网站的用户。您可以阻止 Google 抓取此类数据,使其不会显示在搜索结果中。
另请注意,您网站上发布的某些文件可能包含可在 Google 搜索中显示的元数据。
详细了解如何让隐去的信息不显示在 Google 搜索中。
-
避免向受众群体显示价值不大的内容:您的网站可能包含质量低劣的内容,这类内容不应显示在 Google 搜索中。例如,如果您的网站允许用户创建内容,则其中部分内容可能质量低劣,甚至是垃圾内容。
如果允许将此类内容编入索引,便可能会对您的网站在 Google 搜索结果中的排名产生负面影响。
-
让 Google 专注于您的重要内容:如果您的网站非常庞大(包含超过数十万个网址),且具有内容不太重要的网页,或者有大量重复内容,则可能需要阻止 Google 抓取重复或重要性较低的网页,从而使其专注于更重要的内容。
如何屏蔽内容
以下是阻止内容显示在 Google 中的主要方式:
方法 |
从您的网站中移除内容
|
适用对象:所有类型的内容
要想避免让内容出现在 Google 搜索中或互联网上的任何其他位置,最可靠的方法是将其从网站中移除。
|
通过密码保护文件
|
适用对象:所有类型的内容
如果您的网站上有机密或非公开的内容,则需要使用密码对其加以保护,以确保只有授权用户才能访问这些内容。这种方式还能阻止相应内容显示在 Google 搜索中。如果该内容已经显示在我们的搜索结果中,密码保护措施最终也会将其从搜索结果中移除。
|
noindex 规则 |
适用对象:所有类型的内容
noindex robots meta 标记是一项规则,它能告知 Google 不要将您的内容编入索引,也不要让其显示在 Google 搜索结果中。用户仍然可以通过其他网页链接到并访问您的内容,或直接输入链接来访问您的内容,但您的内容不会显示在 Google 搜索结果中。
|
|
适用对象:图片和视频
Google 只会将 Googlebot 可抓取的图片和视频编入索引。如要阻止 Googlebot 访问您的媒体文件,请使用 robots.txt 规则屏蔽相应文件。
|
停用特定的 Google 产品和服务
|
适用对象:网页
您可以告知 Google 不要将您网站上的内容包含在特定的 Google 产品和服务中,例如 Google 购物、Google 酒店和民宿。
|
从 Google 中移除现有内容
如果您网站上托管的内容已经显示在 Google 中,您可以要求移除相应搜索结果。不妨了解一下如何从 Google 中移除托管在您网站上的网页。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-04。
[null,null,["最后更新时间 (UTC):2025-08-04。"],[[["\u003cp\u003eControl the visibility of your website's content in Google Search results to manage data privacy, prioritize valuable content, and improve search ranking.\u003c/p\u003e\n"],["\u003cp\u003eBlock content from Google Search using methods like password protection, robots.txt, and the noindex rule, depending on the content type.\u003c/p\u003e\n"],["\u003cp\u003eRemove existing content from Google Search through removal requests to maintain an accurate and up-to-date online presence.\u003c/p\u003e\n"],["\u003cp\u003eGoogle offers tools and options for website owners to manage how their content is indexed and displayed across various Google properties.\u003c/p\u003e\n"]]],["Site owners can control Google's search results by preventing specific content from appearing. Reasons include restricting data, hiding low-value content, and focusing Google on important content. Methods to block content include removing it from the site, password-protecting files, using the `noindex` rule, disallowing crawling via `robots.txt`, or opting out of specific Google properties. For content already indexed, site owners can request its removal from Google's search results. Site owners can opt-out of the page annotation feature.\n"],null,["# Control the Content You Share on Search | Google Search Central\n\nControl what you share with Google\n==================================\n\n\nGoogle supports a variety of ways that allows site owners control what shows up in Google's\nsearch results. While most people focus on getting their pages indexed, sometimes it's\nimportant to do the opposite: prevent content from appearing in Search. There are a few\nreasons you might want to hide content from Google:\n\n- **To restrict data** : You might have data hosted on your site that you want to show only to users who are already on your site. You can block Google from crawling such data so it doesn't show up in search results. \n Also keep in mind that certain files published on your site may have metadata that can show up in Search. [Learn more about keeping redacted information out of Search](/search/docs/crawling-indexing/keep-redacted-information-out).\n- **To hide content of less value to your audience** : Your website might have low quality content that shouldn't show up in Search. For example, if your website allows users to create content, some of that content might be [low quality or even spam](/search/docs/essentials/spam-policies#user-generated-spam). Allowing indexing of such content may have a negative effect on your site's ranking in Google's search results.\n- **To have Google focus on your important content**: If you have a very large site (over hundreds of thousands of URLs) and pages with less important content, or if you have a lot of duplicate content, you might want to prevent Google from crawling the duplicate or less important pages in order to focus on your more important content.\n\nHow to block content\n--------------------\n\nHere are the main ways to block content from appearing in Google:\n\n| Methods ||\n|-------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ### Remove the content from your site | **Applicable: all content types** Removing content from your site is the best way to ensure that it won't appear in Google Search and anywhere else on the Internet. |\n| ### Password-protect your files | **Applicable: all content types** If you have confidential or private content on your site, you need to password protect it to ensure only authorized users can access it. This will also prevent that content from appearing in Google Search, or if it already appears, it will eventually remove that content from our search results. |\n| [`noindex` rule](/search/docs/crawling-indexing/block-indexing) | **Applicable: all content types** The `noindex` robots `meta` tag is a rule that tells Google not to index your content or let it appear in Google search results. Your content can still be linked to and visited through other web pages, or directly visited by users with a link, but the content will not appear in Google search results. |\n| ### Disallow crawling with [robots.txt](/search/docs/crawling-indexing/prevent-images-on-your-page#for-non-emergency-image-removal) | **Applicable: images and video** Google only indexes images and videos that Googlebot is allowed to crawl. To prevent Googlebot from accessing your media files, use [robots.txt rules to block the files](/search/docs/crawling-indexing/prevent-images-on-your-page#for-non-emergency-image-removal). |\n| [Opt out of specific Google properties](https://support.google.com/webmasters/answer/3035947) | **Applicable: web pages** You can tell Google not to include content from your site in specific Google properties, such as [Google Shopping](https://www.google.com/shopping), [Google Hotels](https://www.google.com/travel/hotels), and vacation rentals. |\n\nRemove existing content from Google\n-----------------------------------\n\n\nIf the content hosted on your site is already appearing in Google, you can request the\nremoval of those search results. Learn how to\n[remove a page hosted on your site from Google](/search/docs/crawling-indexing/remove-information)."]]