Do you want to hide WordPress Individual Pages or Post from Google Search? Sometimes your blog or website contains such pages that you do not want to index in search engines. In this article, I’m going to share how to hide a WordPress page from Google Search.
How to Hide a WordPress page from Google Search
If you want to exclude WordPress page from Google, Google allows doing this. Here we will show you two method to exclude a WordPress page from Google. By selecting any method from it, you can easily hide a WordPress page from Google. So let’s start How to Hide pages on WordPress from Google search engine.
This is the easiest and best way to Hide a WordPress page from Google. But for that, you have to install and activate Yoast SEO plugin on your site.
After installing the Yoast SEO plugin on your site, navigate to the post you want to discourage from the search engine. Scroll down to the bottom of the Yoast SEO Meta Box in Post Editor and click on the Advanced Settings button then click on the GEAR icon and select “No” from the drop-down menu of the “Allow search engines to show this Post in search results?” & Select “No” from “Should search engines follow links on this Post?”. You can see the screenshot below.
After making these changes, you can save or publish your blog post or page. Now the search engine will not follow and index this post.
Yoast SEO plugin will add this line to your blog post or page.
<Meta name = “robots” content = “noindex, nofollow” />
2. Using Robots.txt
In this method, you have to edit your robots.txt file. It found in the root folder of your site that provides instructions to search engine bots to crawl your site. So let us know How to Hide WordPress Blog page from Google using Robots.txt file.
- How to Optimize WordPress Robots.txt File for Search Engine Crawler (SEO)
- How to add Sitemap to Robots.txt File and Why is it important
To edit the Robots.txt file, you need to connect your site to the FTP client or you can edit it by visiting web hosting cPanel.
Now, you will need to add the following lines to your robots.txt file.
Disallow: / Your-page /
Do not forget to save your changes and upload your robots.txt file again on your server.
Disadvantages of using Robots.txt file to hide a blog post
The Robots.txt file is publicly accessible and anyone can access it and know which pages you are trying to hide. in addition Many search engines follow the instructions of Robots.txt file and many search engines simply ignore them. These bots are spread to spamming on the web.
You can use any method to exclude WordPress page from Google but we recommend you to use the first method because it is very easy and simple. This is best for both beginners and advances. You can comment on any questions or suggestions related to this article.
Find this article helpful? Don’t forget to share!