Tutorials › How to exclude pages from Google
How to exclude pages from Google
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
- Install Yoast SEO if you haven’t already
- Click SEO
- Click Tools
- Click File editor
- Click Create robots.txt file if you haven’t already created one
- Copy the page slug you want to hide from appearing in Google and add the following to your robots.txt:
Disallow: /my-page/
- 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.