Are you wondering about some unnecessary web pages that are Index on the search engine? Or Do you have any personal web page that you don’t want to Index on the search engine? Do Want to hide a WordPress page from the search engine? Here is the solution for you.
There are so many webmasters that they want to hide some of their web pages from Google to protect their privacy or keep away unwanted users. In this article, we will show you how to hide a WordPress Page or Post from Google without having any problem or effect on your website.
Hiding a WordPress Page or Post From Google:
Google is the #1 Search engine platform at this moment. They provide lots of features for the webpage. By default, Google has the function and it allows the webmaster to hide or exclude any page or post from google search results. You can do this process using the robots.txt file or HTML meta tags. But this two process are pretty much advanced for the beginner.
However, there is some easy and useful method that you can apply to your website. In this post, we will show you the two easy methods and you can choose one of them easily, Which one is perfect for you.
Method 1: Hide a WordPress Page or Post from Search Engine
This method is most popular and one of the easiest way for the beginners. We highly recommended this process for the beginners. In this process, we used the most popular Yoast SEO plugin. So you have to just follow the step.
Step 1:At first, you have to install the Yoast SEO plugin into your Dashboard. Whether it already install then no need to do anything. You can follow the guideline step by step.
Step 2: In this step you have to need to select that post or page which one you want to hide from search engines and then go to the page edit options. Scroll down to the Yoast SEO section and there you will see a tab icon you have to click on the third one like the image below.
Now you are in the advanced settings section this section allows you to configure the format to hide this page or post from the search engine.
First, click on the Allow search engines section than from the drop-down items select “No” then under this drop down section you will another section that asked a question to you Should search engines follow the links on this post? then you should click on the “No” button.
If you follow the above step then the process is almost done. Now you can save your post or pages or just click on update. That it! The whole process is complete. Now your desire page is hidden from Google.
It may take sometimes if the page is an old page and already ranked on google.
Method 2: Hide a WordPress page or post from a search engine using
This process is an advanced process and this is not for the beginners. Because you have to need to access the robots.txt file for adding the required code.
However, if you made any mistake in this process then it will affect your SEO which is not good for your website.
I hope you already know how robots.txt file works. It’s a search engine bots configuration file that why it’s called robots.txt. This file allows you to hide different kind of folder, directory, pages, posts, and so many other things from the search engine.
If you are curious about robots.txt file then you may take a look at this article How to optimize your robots.txt file for WordPress SEO. We hope this guide will help you to know more about the robots.txt file.
Now it’s time to open you robots.txt file. You can open and edit this file in two ways one is using FTP server and the second one is using your hosting access cPanel.
You have to put this code into the robots.txt file:
The User-agent part allows you to target some specific bots on a different search engine. But here we are using start mark because we target all bots that mean every single search engines we target together using this sign ‘ * ‘
Then the next line comes Disallow part. In this line, you have to put the link after the domain. Which page or post you want to hide from the search engine. Just copy the text after your domain name and put there.
If you are still confused then let’s see how and which one you should take from the domain name
A general post link: http://yourdomainname.com/text-blog-post/
At the top line, you will see that we just put a general sample link. Now I want to hide this link from the search engine. I have to just put the text after the domain name into the robots.txt file like below.
If you follow the above step properly then the process is done. Hey, don’t forget to save the text which you edit the robots.txt file.
Feel free to ask us any kind of question. We will our best to reply as soon as possible. Stay with us for the new post.
1 thought on “How to Hide a WordPress Page or Post From Search Engine?”
Hi very nice article. keep up the good work. This helps to hide a specific post from the search engine that I don’t want to index for some reason.