WordPress search engine visibility

New Page

Allow Search Engine Indexing in WordPress

To help improve SEO rankings, follow these steps to ensure your WordPress site allows search engine indexing.

  1. Login to WordPress.
  2. Click Settings > Playback .
  3. Make sure Discourage search engines from indexing this site is not selected.

More information

  • Improve Google indexing.
  • If you need help with search engine indexing, our WP Premium Support Catalog can do it for you.

Advanced WordPress

August 24, 2022

Domantas G.

3 minute read

How to Discourage Search Engines from Indexing This Site in WordPress (Simple Method)

Copy link

copied!

How to Discourage Search Engines from Indexing This Site in WordPress (Simple Method) How to Discourage Search Engines from Indexing This Site in WordPress (Easy Way)

WordPress site owners will do anything to index their websites. However, you may not want search engines to crawl your website if it is still under development. In a case like this, it is recommended that you discourage search engines from indexing your site. Stay with us if you want to know more about this topic!

Download the Latest WordPress Cheat Sheet

  • Why would you want to prevent search engines from indexing your site?
  • 1. Discourage search engines from indexing WordPress sites
    • Using WordPress built-in functionality
    • Manual modification of the robots.txt file
  • 2. Password Protecting Your WordPress Website
    • Using the Hosting Control Panel
    • Using WordPress plugins
  • 3. Suppression de la page indexée de Google

Pourquoi voudriez-vous empêcher les moteurs de recherche d’indexer votre site ?

Hay algunos casos en los que la gente quiere disuadir a los motores de búsqueda de indexar sus sitios:

  • Sitios web sin terminar : en esta etapa de errores y pruebas, es mejor no tener su sitio web a la vista del público. Recomendamos utilizar un entorno de prueba de WordPress al realizar pruebas en su sitio.
  • Sitios web restringidos : si planea tener un sitio web solo por invitación, no desea que aparezca en los SERP.
  • Cuentas de prueba : los propietarios de sitios web crean un duplicado del sitio con fines de prueba y evaluación. Dado que estos sitios no están diseñados para el público, no permita que los motores de búsqueda los indexen.

Entonces, ¿cómo bloqueas los motores de búsqueda para que no indexen tu sitio? Bueno, eche un vistazo a varias opciones a continuación y pruébelo usted mismo.

1. Desalentar a los motores de búsqueda de indexar sitios de WordPress

La forma más sencilla de evitar que los motores de búsqueda indexen su sitio web es evitar que lo rastreen . Para hacerlo, debe editar el archivo robots.txt de su sitio web de WordPress . Aquí hay algunas maneras de lograrlo:

Uso de la función incorporada de WordPress

Editing WordPress robots.txt is quite easy as you only need to use a WordPress built-in feature. Here’s how:

  1. Login to the WordPress admin area and go to Settings -> Reading.
  2. Scroll down and locate the Search Engine Visibility option.
  3. Check the option that says Discourage search engines from indexing this site.This image can be used to enable the option to distract the motor from indexing this site in WordPress This image shows you how to enable the Discourage search engine from indexing this site option in WordPress
  4. Save Changes, and that’s it! WordPress will automatically edit its robots.txt file for you.

Editing robots.txt File Manually

If you prefer the manual option, you can use File Manager or an FTP client to edit the robots.txt file.

In this article, we’ll show you how to do it through the hPanel’s File Manager:

  1. Login to hPanel and locate File Manager under the Files area.

Administrator of archives in hPanel. File Manager on hPanel.

  1. Go to your WordPress root directory folder (in most cases, it’s public_html) and find the robots.txt file. If you can’t find it, create a new blank file.
  2. Right-click on the file and select Edit.Esta imagen muestra cómo editar el archive robots.txt en el Administrador de archives de hPanel This image shows you how to edit robots.txt file in hPanel's File Manager
  3. Enter the following syntax: User-agent: * Disallow: /

The code above will prevent search engines from indexing your whole site. If you want to apply the disallow rule to a specific page, write the page’s subdirectory and slug. For example: Disallow /blog/food-review-2019.

Pro Tip

The syntaxes in robots.txt files are case sensitive, so be careful when editing.

2. Password Protecting Your WordPress Website

Search engines and web crawlers don’t have access to password-protected files. Here are a few methods to password protect your WordPress site:

Using Hosting Control Panel

If you are a Hostinger client, you can password protect your website using hPanel’s Password Protect Directories tool:

  1. Access hPanel and navigate to Password Protect Directories.
  2. Enter your root directory into the first field.
  3. Once the directory is selected, enter your username and password and click Protect.Directorios protected con contraseña en hPanel. Password Protect Directories on hPanel.

Pro Tip

If your root directory is public_html, leave the directory column blank.

The process in cPanel is also quite similar:

  1. Log in to your cPanel account and head to Directory Privacy.Esta imagen le muestra la herramienta de privacidad de directorios en cPanel. This image shows you the Directory Privacy tool in cPanel.
  2. Seleccione su directorio raíz. En nuestro caso, es  public_html .
  3. Marque la opción Proteger con contraseña este directorio y asigne un nombre al directorio protegido. Presione Guardar .Esta imagen le muestra cómo usar la función de privacidad de directorio de cPanel This image shows you how to use cPanel's Directory Privacy feature
  4. Cree un nuevo usuario para iniciar sesión en el sitio web protegido, ¡y listo!

Uso de complementos de WordPress

Hay toneladas de complementos que pueden ayudar a proteger su sitio con contraseña. Sin embargo, el complemento protegido por contraseña podría ser el mejor que existe. Ha sido probado con la nueva actualización de WordPress y es bastante fácil de usar.

Después de instalar el complemento y activarlo, diríjase a Configuración -> Protegido con contraseña y configure los ajustes para satisfacer sus necesidades.

3. Eliminación de la página indexada de Google

Don’t worry if Google has indexed your site. You can remove it from the SERPs by following these steps:

  1. Configure Google Search Console for your website.
  2. Go to Google Search Console of your newly added website and scroll down to Legacy Tools & Reports -> Deletions.
  3. Click the Temporarily hide button and enter the URL you want to remove from Google.
  4. In a new window, choose Clear URL from cache and temporarily remove from search, then Submit request .This image shows Google Search Console submission removal request This image shows you the Google Search Console Submit a removal request

And that’s it! Google will temporarily remove your site from search results. Make sure to apply the above methods to prevent Google from re-indexing your site.

conclusion

Here! Quick and easy ways to discourage search engines from indexing your sites. Here is a quick overview of the methods we learned today:

  • Edit the robots.txt file , which can be done automatically or manually.
  • Password protect your website using a plugin or your hosting control panel.
  • Delete Google indexed pages via Google Search Console.

If you have other methods, or have any questions, let us know in the comments. Good luck!

Learn more about WordPress SEO

WordPress SEO Tips How to Create a WordPress Sitemap How to Add WordPress Schema Markup How to Add Meta Description and Meta Title in WordPress How to Set Up AMP (Accelerated Mobile Pages) in WordPress How to Add Breadcrumbs in WordPress

Was this tutorial helpful to you?

Yes

Nope

Author Author

The author

Domantas G.

Domantas leads content and SEO teams with fresh ideas and fresh approaches. Armed with in-depth SEO and marketing knowledge, he aims to bring Hostinger to every corner of the world. In his spare time, Domantas enjoys honing his web development skills and traveling to exotic locations.

More Domantas G.


Video WordPress search engine visibility

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…