Published on March 20, 2017 by WPBeginner

Sometimes you may want to hide a page from search engines to keep away unwanted users or to protect your privacy. We understand how important this can be and we want to show you how you can hide pages from search engines on your site. In this video we will show you how to hide a WordPress page from Google without affecting your site’s SEO.

Text version of this tutorial:
www.wpbeginner.com/wp-tutorials/how-to-hide-a-wordpress-page-from-google/

If you liked this video, then please Like and consider subscribing to our channel for more WordPress videos.

Check us out on Facebook:
www.facebook.com/wpbeginner

Follow us on Twitter:
twitter.com/wpbeginner

Join our circle on Google+:
plus.google.com/+wpbeginner/

Checkout our website for more WordPress Tutorials
www.wpbeginner.com/

Summary of this tutorial:

We have two methods we would recommend for achieving this, the first being using Yoast SEO and the second being editing your robots.txt.

-Yoast SEO

For this method we would recommend installing the Yoast SEO plugin:

Yoast SEO

If you would like to view our article for how to set up the Yoast plugin you can view that here:

www.wpbeginner.com/plugins/how-to-install-and-setup-wordpress-seo-plugin-by-yoast/

With the plugin activated you will have an area at the bottom of your post or page editor specifically for the Yoast plugin.

Click on the Advanced Settings, set the dropdown to noindex and set the Meta robots follow to nofollow.

With the changes saved you will now have code added to the page you want hidden that tells search engines not to follow or index the page.

-Robots.txt

For this method you will need to edit the robots.txt file for your site.

This file is in your site’s root directory and you would either need to use FTP or your host’s file manager to edit it.

-Password protect a post or page

If you want to ensure the post or page can’t be seen by search engines you can password protect it rather than request it not be indexed.

When you edit the post or page, in the Visibility option if you click edit you will be able to change it to Password protected and set the password.

Now anyone trying to view the page including the search engines will need the password before being able to view the content.

Leave a Reply

6 Comments on "How to Hide a WordPress Page From Google"

Notify of
avatar

Seth Williams
Guest
Seth Williams
2 months 25 days ago

Wow – SUPER helpful. Wish I'd have known about this years ago.

Martin Burt
Guest
Martin Burt
3 months 3 days ago

Great video thanks

FLOODOFSINS
Guest
FLOODOFSINS
3 months 4 days ago

Can you hide a page and also hide the title so people don't even see there is a private page and can only get to the page with exact url addess?

WPBeginner - WordPress Tutorials
Guest
WPBeginner - WordPress Tutorials
3 months 3 days ago

If you set a menu without the page you want hidden in the menu then the page you want private should work like that

Ghillie The Goat
Guest
Ghillie The Goat
3 months 4 days ago

Sweet video, dropped a like and a sub 🙂

Jericho Arroyo
Guest
Jericho Arroyo
3 months 4 days ago

Thanks.

wpDiscuz