WordPress hide page from search

New Page

Best Ways to Hide a WordPress Page from Google

Anna Fitzgerald

Anna Fitzgerald

Posted: August 03, 2022

Why hide a page in WordPress from Google or other search engines? With 61% of marketers saying that improving SEO and increasing organic presence are their top priorities, it seems counterintuitive to hide content from potential customers.

desarrollador obscuring a wordpress page from google

Sans however, there are several reasons to hide content from search results. If you have an invite-only event, for example, then you don’t want visitors to find the page with the RSVP link in a SERP. Or you may have pages with sales presentations or communications within the team that are for internal use only.

Whatever the reason, you have a few options to hide a WordPress page from Google. In this post, we will show you how.

Grow your business with HubSpot’s tools for WordPress websites

Table of contents

  • How to hide a WordPress page from Google
  • Using the Robots.txt Archive for Google WordPress Dark Pages
  • Using Yoast SEO for Google WordPress Dark Pages

  • Cambiar the visibility of WordPress pages

  • Control WordPress Content

How to hide a WordPress page from Google

There are two options to hide a WordPress page from Google. You can edit the robots.txt file in the control panneau of your hosting account. However, since making a mistake in this file can negatively affect the SEO of your site, this method is recommended for more advanced users. Beginner users who lack coding experience can use the Yoast SEO plugin to tell Google to even index certain pages on their site.

We’ll discuss each of these methods in detail below so you can choose the one that best suits your level of technical expertise.

Using the Robots.txt Archive for Google WordPress Dark Pages

To hide certain pages from Google, you can edit the robots.txt file in the control panel of your hosting account. Robots.txt is a file located in the root directory of your site that tells Google and other search engine robots which posts and pages to crawl.

To access it, log in to your hosting account’s cPanel and click on the File Manager icon in the Files section.

File Manager icon in the Files section in the hosting account's cPanel

Fuente

On the navigation menu on the left side of your screen, click on the public_html tab. Locate the robots.txt file and click Edit in the menu at the top of the screen.

Ubique el archivo robots.txt en su carpeta public_html y haga clic en Editar en el menú en la parte superior de su pantalla

Fuente

S’ouvre en un éditeur de texte comme le Notepad on Windows or TextEdit on a Mac. Delete any existing text and copy and paste the following code :

User-agent : * Disallow : /votre-page/

Note that you will need to replace the placeholder text in the Disallow field with the URL path of the page you want to hide. The path is right after your domain name.

For example, suppose the URL of the page you want to hide is http://www.yoursite.com/2020/1/pricing-page/.

Then the code snippet you add to your robots.txt file will look like this:

User-agent : * Interdire : /2020/1/pricing-page/

You can leave the User-agent field as is, because the asterisk means that all web crawlers will be advised not to index this page. If you want to hide this page from Google only, replace the asterisk with “Googlebot” in the user-agent field. This will allow other search engine crawlers to index the page.

Une fois que vous avez apporté vos modifications à l’extrait de code, enregistrez et téléchargez le fichier robots.txt dans votre dossier public_html.

téléchargez le fichier robots.txt dans votre dossier public_html dans le cPanel de votre compte d'hébergement

La source

Google search crawlers will now follow the instructions in this file and not index this page.

While this method is relatively simple for users with some coding knowledge, it may not be for beginners. That’s because any incorrect information added to a robots.txt file will harm your site’s search engine visibility. For that reason, if you don’t have coding skills, you may be better off using a plugin.

Using Yoast SEO to Hide WordPress Pages From Google

If you’d like to avoid coding altogether, you can use the Yoast SEO plugin to hide pages from Google. To start, install and activate the plugin on your WordPress site.

Once it’s been successfully installed and activated, navigate to Pages > All Pages in your WordPress dashboard to edit the page you would like to hide from Google.

Scroll down to the Yoast SEO meta box below the post editor. Along the left side of this window, click on the gear icon to open the plugin’s advanced settings.

la méta-boîte Yoast SEO se trouve sous l'éditeur de publication

Source

Here you can add meta tag robots to tell search engines like Google not to index or follow the page.

Just select Noindex from the drop-down menu under “Meta robots index.” Then click Nofollow under “Meta robots follow.”

sélectionnez Noindex dans le menu déroulant sous "Index des méta-robots" dans les paramètres du plug-in Yoast SEO

Source

You can now save or publish the post. Yoast SEO will add a line of code to the page that looks something like:

<meta name=”robots” content=”noindex,nofollow”/>

Search engines will now be instructed not to follow or index this page. If you’d like to hide this page from Google only, and not all search engines, then replace “robots” with “Googlebot.”

Changing the Visibility of WordPress Pages

While the above methods will prevent certain pages from appearing in Google search results, any visitors who have (or can guess) the link will still be able to view this content. If you’d like to hide this content from visitors, then you can set up a password to protect it.

There’s no need to install a plugin. WordPress comes with a built-in password protection feature for pages and posts. You just need to navigate to the page that you want to protect and go to the Publish meta box. Then click the link labeled “Edit” next to the Visibility option.

cliquez sur le lien intitulé "Modifier" à côté de l'option Visibilité dans la boîte de méta de publication

Select the “Password protected” option and fill in your password in the empty input box.

Sélectionnez l'option "Mot de passe protégé" et remplissez votre mot de passe dans la zone de saisie vide

Once you click the Publish button, only users who know the password will be able to view the page.

Taking Control of Your WordPress Content

Using either of the methods above will enable you to hide a WordPress page from Google search results. Controlling which pages are visible in search and which are hidden will help ensure you put the right content in front of the right people.

Utilisez les outils HubSpot sur votre site Web WordPress et connectez les deux plates-formes sans avoir à vous soucier du code. Cliquez ici pour en savoir plus.

Topics: WordPress Website

¡No olvides compartir esta publicación!

How to Hide a WordPress Page From Google

Last updated on December 22nd, 2021 by Editorial Staff | Reader DisclosureDisclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us.

Comparte 254 Cuota Pío Cuota Facebook Messenger WhatsApp Correo electrónico

Are you looking for a way to hide a WordPress page from Google?

Sometimes you may need to exclude a page from appearing in Google search results as it is not relevant to your site’s content, to protect your privacy, or to keep away unwanted users.

In this article, we will show you how to hide a WordPress page from Google without affecting your site’s overall search engine optimization (SEO).

How to hide a WordPress page from Google How to hide a WordPress page from Google

Why Hide a WordPress Post or Page from Google

Search engines like Google allow website owners to exclude content from search results.

For example, you might want to hide WordPress blog posts and pages that don’t have any relevance to the general public, such as a page you might have to create for website ownership verification.

You may also wish to exclude pages that have private or sensitive information to protect your privacy and prevent confidential information from falling into the wrong hands. For example, if you have a membership website, you can hide the profile pages of your members from appearing on search engines.

Hiding content from Google is also helpful if your website is under development and you want to share a sneak preview with your audience. That way Google won’t index an unfinished website in its search results.

In this article, we will cover different ways to hide WordPress pages from Google including using an HTML meta tag, using your robots.txt file, password protecting your pages, and placing your site in maintenance mode.

  • Method 1: Hide a WordPress page from search engines using AIOSEO (Recommended)
  • Method 2: Hide a WordPress page from search engines using robots.txt file
  • Method 3: Password protect a post or page in WordPress
  • Method 4: Hide a WordPress site until it is ready

Method 1: Hide a WordPress Page from Search Engines Using AIOSEO

You can hide a WordPress page from Google by using a WordPress plugin like All in One SEO (AIOSEO). It’s one of the most popular SEO plugins used by over 2 million websites. This method is the easiest and recommended for beginners.

First, you need to install and activate the AIOSEO plugin. For more details, see our step by step guide on how to install a WordPress plugin. The free version of AIOSEO also comes with the ability for you to hide pages from Google.

After installing and activating the plugin on your WordPress site, you need to edit the page or post that you want to hide from Google.

In the WordPress content editor, simply scroll down to the AIOSEO Settings and click on the ‘Advanced’ tab. You will now see a ‘Robots Setting’ option and a toggle that says ‘Use Default Settings’. You need to click on the toggle to switch off the robots setting.

AIOSEO settings in the WordPress editor AIOSEO settings in the WordPress editor

Once you do that, more options will appear under Robots meta. To exclude the page from appearing in Google search results, you need to check the box that says ‘No Index’.

Click the No index checkbox Click the No index checkbox

After you select that, you can save or publish your page. AIOSEO will add a line of code that tells the search engines like Google to not index this page.

The automatic code will look like this:

1

< meta name = “robots” content = “noindex” />

Aside from excluding specific pages, AIOSEO also lets you hide different sections of content from appearing on Google. To do that, go to All in One SEO » Search Appearance from your WordPress admin area.

AIOSEO Search Appearance AIOSEO Search Appearance

You will see different tabs for different content sections, including Content Types, Taxonomies, Media, and Archives.

Now click on any of these tabs and set the ‘Show in Search Results’ setting to ‘No’.

Show in search results settings Show in search results settings

If you want to hide media files from Google, then you will need AIOSEO Pro version to view the options under the ‘Media’ tab.

After that, click the ‘Save Changes’ button.

AIOSEO will add a ‘noindex’ HTML meta tag, so the search engines will not index the content, and it will not appear in the search results. It will also exclude the content from your XML sitemaps.

Method 2: Hide a WordPress page from search engines using the robots.txt file

This method requires you to edit the robots.txt file, which is

a configuration file that provides instructions to search engine robots. For more information, see our guide on how to optimize your WordPress robots.txt for SEO.

Adding incorrect instructions to this file can have a negative effect on your site’s SEO, so we don’t recommend this method for beginners.

Vous pouvez modifier le fichier robots.txt en vous connectant à votre site Web à l’aide d’un client FTP ou d’un gestionnaire de fichiers dans votre cPanel d’hébergement WordPress et en naviguant vers le répertoire racine de votre site Web.

Vous devrez ajouter ces lignes à votre fichier robots.txt :

1

2

Agent utilisateur: *

Interdire : /votre-page/

The user-agent line allows you to target specific bots. We are using an asterisk sign to include all search engines. The next line defines the part of the URL that comes after your domain name.

Now let’s assume that you want to hide a blog post with a URL like this:

http://example.com/2016/12/my-blog-post/

Here is how you will add this URL to your robots.txt file:

1

2

User-agent: *

Disallow: /2016/12/my-blog-post/

Don’t forget to save your changes and upload robots.txt file back to your server.

There are some disadvantages to using robots.txt to hide content. First, keep in mind that robots.txt file is publicly accessible. That means anyone can access it directly to see if there are any pages you are trying to hide.

Second, while most search engines follow the instructions in robots.txt file, other crawlers and bots may simply ignore it and index those pages anyway. These bots crawl the web to spread malware, target websites, and harvest information like email accounts and phone numbers.

Method 3: Password Protect a Post or Page in WordPress

This method uses a different approach. Instead of asking search engines not to index a page, you can simply password protect it, so that it is only visible to users with the password.

WordPress comes with a built-in feature to password protect posts and pages. Simply edit the post or page that you want to protect. Under the ‘Document’ setting in your WordPress editor, click on the link next to the ‘Visibility’ option.

Change visibility options Change visibility options

This will show the visibility options available in WordPress where you can make a post or page public, private, or password protected.

Private posts are only available to logged in users who have at least an editor user role on your website. Password protected posts can be seen by any visitor who has the password.

You need to click on the ‘Password Protected’ option and then enter a strong password.

Password protect WordPress page Password protect WordPress page

Once you publish or update the post or page, visitors who try to access it will be asked to enter the password to view the content.

Password protected page Password protected page

For more detailed instructions, see our guide on how to password protect posts and pages in WordPress. If you’re looking to create and sell online courses, then we recommend using a proper platform like MemberPress which comes with advanced content protection features.

Method 4: Hide a WordPress Site Until It Is Ready

You might want to hide your WordPress site from Google and the public when you build it, redesign it, or make major theme and plugin updates. The easiest way to do this is to put your website into maintenance mode using a plugin like SeedProd.

First, you need to install and activate the

SeedProd plugin. For more details, see our step-by-step guide on how to install a WordPress plugin.

Remarque : Il existe également une version gratuite de SeedProd que vous pouvez utiliser, mais pour ce didacticiel, nous montrerons la version Pro car elle a plus de fonctionnalités.

Lors de l’activation, rendez-vous sur la page SeedProd »Paramètres pour saisir votre clé de licence. Vous pouvez trouver ces informations sous votre compte sur le site Web de SeedProd.

Enter your SeedProd license key Enter your SeedProd license key

Next, you need to navigate to SeedProd » Pages. Here you should look for the ‘Maintenance Mode’ page and switch the toggle from ‘Inactive’ to ‘Active’.

Switch the maintenance mode toggle to Active Switch the maintenance mode toggle to Active

After that, you’ll need to click on the ‘Set up a Maintenance Mode Page’ button. This lets you create a temporary page that your visitors can see while your website is hidden.

First, you need to choose a template for the page. When you hover your mouse over a template you’ll see two icons. You can preview the template by clicking the magnifying glass icon, and select it by clicking the red tick icon.

Choose a maintenance mode template Choose a maintenance mode model

After selecting a template you’ll be taken to the SeedProd drag and drop page builder to customize your maintenance mode page. Here you can edit the text and upload a custom background image to match your branding.

Use SeedProd's arrastrar and soltar page builder to customize the modo de mantenimiento page Use SeedProd's drag and drop page builder to customize the maintenance mode page

Vous pouvez également ajouter de nouveaux blocs à partir de la colonne de gauche. Par exemple, vous pouvez ajouter une minuterie qui compte à rebours jusqu’au lancement de votre site Web.

Una vez que esté satisfecho con el diseño de la página, debe publicarla. Simplement haga click in el botón del menú desplegable junto a ‘Guardar’ and luego haga click in ‘Publicar’.

Click the dropdown button next to Save and click Publish Click the drop-down menu button next to Save and click Publish

You will be shown a message that your page has been published. Your website is now hidden from Google and the public and only the maintenance page is visible.

Your page has sido publicada Your page has been published

You can click the ‘View Live Page’ button to view your maintenance page. This is what it looks like on our demo website.

Overview of the SeedProd management mode page Overview of the SeedProd maintenance mode page

Once you’re ready to show your website to the world, simply visit SeedProd » Pages again and change the Maintenance Mode from ‘Active’ to ‘Inactive’.

Hope that this tutorial is the haya ayudado a learn how to hide a WordPress page from Google. Also, you can check out a new help on installing Google Analytics on WordPress to see user statuses and comparison of best assembly and resolution page builders for WordPress.

If you’re invited to this article, subscribe to a new YouTube channel for WordPress video tutorials. Also puede encontrarnos on Twitter and Facebook .

Share 254 Share Tweet Share Facebook Messenger WhatsApp Email

Google Google translator

Google Google Translate


Video WordPress hide page from search

Related Posts

Free chat room code for my website

Contents1 How to set up a free chat room on the website.2 3 comentarios2.1 Trackbacks/Pingbacks2.2 Submit a Comment Cancel reply3 How to Create a Chat Room Website…

Background image full screen css

Contents1 Cómo – Full Page Image1.1 Example1.2 Example2 CSS background image tamaño tutorial: how to codify a complete page background image3 Perfect Full Page Background Image3.1 Méthode CSS géniale,…

WordPress leverage browser caching

Contents1 Aproveche el almacenamiento in hidden del navegador1.1 Will it works for my website?1.2 Where are plugin options1.3 Some JavaScript files still display under Leverage Browser Caching1.4…

WordPress post to facebook page

Contents1 How to Automatically Post to Facebook from WordPress1.1 Download Now: How to Launch a WordPress Website [Free Guide + Checklist]1.2 1. Create an IFTTT account.1.3 2….

Download images from wordpress media library

Contents1 How to export your WordPress media library1.1 Download maintenant : How to launch a WordPress website [Free Guide + Checklist]1.2 How to export your WordPress media…

WordPress single post template

Contents1 How to Create Custom Unique Post Templates in WordPress2 Post Template Files2.1 author.php2.2 Fecha.php3 Handbook navigation4 How to Create Custom Single Post Templates in WordPress5 Video…