Tutorials › How to exclude pages from Google

How to exclude pages from Google

Updated 4 years ago

Overview

Steps for excluding pages from appearing in Google search results by modifying your robots.txt file.

These steps involve using the Yoast SEO plugin.

Steps

  1. Install Yoast SEO if you haven’t already
  2. Click SEO
  3. Click Tools
  4. Click File editor
  5. Click Create robots.txt file if you haven’t already created one
  6. Copy the page slug you want to hide from appearing in Google and add the following to your robots.txt:
    Disallow: /my-page/
  7. Click Save changes to robots.txt

Note: It is up to Google to respect your robots.txt indicators. This does not guarantee that Google or other search engines will not index your content publicly regardless.