Control what you share with Google

Control what information Google sees on your site and what is shown in search results.

Why block content from Google?

There are a few reasons you might want to hide content from Google:

To keep data private

You might have private data hosted on your site that you want to keep other users from accessing. You can block Google from crawling such data so it doesn't show up in search results.

To hide content of less value to your audience

Your website might have the same content in different places, which could negatively affect your page rankings in Google Search. A good example of where duplicate content can arise is a site-wide search function to help users navigate site content. Some search functions generate and display custom search results pages every time any user enters a query. Google can crawl all the custom search results pages individually if they are not blocked. As a result, Google sees a site with many similar pages and might categorize the duplicate content as spam, which could undermine page rankings in Google Search.

Your website might share information generated by other third-party sources, which is available in other places on the web. Google sees less value in including your pages that include large amounts of duplicate content in Google Search results. You can block the copied content to improve what Google sees and boost your page rankings in Google Search.

To have Google focus on your important content

If you have a very large site (many 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.

How to block content

Here are the main ways to block content from appearing in Google:

Content type Method Description
All types Remove the content Removing content from your site is the best way to ensure that it won't appear in Google Search, or anywhere. If the information is already appearing in Google, you might need to take additional steps.
All types Password-protect your files

If you have confidential or private content that you don't want to appear in Google search results, the simplest and most effective way to block private URLs from appearing is to store them in a password-protected directory on your site server. Googlebot and all other web crawlers are unable to access content in password-protected directories.

Advanced users: If you're using Apache Web Server, you can edit your .htaccess file to password-protect the directory on your server. There are a lot of tools on the web that can help you do this.

Images robots.txt and/or emergency image removal request Use robots.txt rules to block images.
Web pages noindex directive

noindex is a technique that tells Google not to read your page or let it appear in Google search results. Your pages can still be linked to and visited through other web pages, or directly visited by users with a link, but the pages will not appear in Google search results. This method requires technical savvy, and may not be available if you use a content management system to host your site.

Web pages Opt out of specific Google properties You can tell Google not to include content from your site in specific Google properties, rather than all Google properties.
Search result snippets nosnippet meta tag Add the <meta name="robots" content="nosnippet" /> tag to your page's HTML head section to prevent a snippet from appearing in Search. However, note that this can generate a confusing message in search results ("No information is available for this page").
Web pages, site sections, URL patterns URL Parameters tool Advanced users can use the URL Parameters tool to block crawling of URLs with specific parameters. We recommend using this method only if you are a very advanced user, as it can block large portions of your site's URL space in a way that isn't easy to debug if you get it wrong.

Remove existing content from Google

If the content already exists on Google, and you want to remove it, you might need to take additional steps.