{"id":751,"date":"2019-11-14T04:17:19","date_gmt":"2019-11-14T04:17:19","guid":{"rendered":"http:\/\/blog.hostinger.io\/hostinger-tutorials\/uncategorized\/prevent-search-egnines-from-indexing-wordpress\/"},"modified":"2026-03-10T09:36:56","modified_gmt":"2026-03-10T09:36:56","slug":"prevent-search-engines-from-indexing-wordpress","status":"publish","type":"post","link":"\/ph\/tutorials\/prevent-search-engines-from-indexing-wordpress","title":{"rendered":"How to discourage search engines from indexing this site in WordPress"},"content":{"rendered":"<p>WordPress site owners will do anything to get their websites indexed. However, you might not want search engines to crawl through your website if it&rsquo;s still in development. In a case like this, it&rsquo;s recommended to discourage search engines from indexing your site. Stick with us if you want to learn more about this topic!<\/p><p class=\"has-text-align-center\"><a href=\"https:\/\/assets.hostinger.com\/content\/tutorials\/pdf\/Mega-WordPress-Cheat-EN.pdf\" target=\"_blank\" rel=\"noopener\">Download all in one WordPress cheat sheet<\/a><\/p><p>\n\n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-why-would-you-want-to-stop-search-engines-from-indexing-your-site\">Why Would You Want to Stop Search Engines From Indexing Your Site?<\/h2><p>There are some cases where people want to discourage search engines from indexing their sites:<\/p><ul class=\"wp-block-list\">\n<li><strong>Unfinished websites<\/strong> &mdash; at this stage of errors and trials, it&rsquo;s best not to have your website available to the public eyes. We recommend using a <a href=\"\/ph\/tutorials\/wordpress-staging-environment\/\">WordPress staging environment<\/a> when performing tests on your site.<\/li>\n\n\n\n<li><strong>Restricted websites <\/strong>&mdash; if you plan to have an invite-only website, you do not want it to get listed on SERPs.<\/li>\n\n\n\n<li><strong>Test accounts <\/strong>&mdash; web owners create a site duplicate for testing and trial purposes. Since these sites are not designed for the public, don&rsquo;t let it get indexed by search engines.<\/li>\n<\/ul><p>So how do you block search engines from indexing your site? Well, take a look at several options below and try it yourself.<\/p><h2 class=\"wp-block-heading\" id=\"h-1-discouraging-search-engines-from-indexing-wordpress-sites\">1. Discouraging Search Engines From Indexing WordPress Sites<\/h2><p>The simplest way to stop search engines from indexing your website is by preventing them from <a href=\"https:\/\/www.google.com\/search\/howsearchworks\/crawling-indexing\/\" target=\"_blank\" rel=\"noopener\">crawling it<\/a>. To do it, you need to edit your <a href=\"\/ph\/tutorials\/wordpress-robots-txt\/\">WordPress website&rsquo;s <strong>robots.txt<\/strong> file<\/a>. Here are a few ways to achieve that:<\/p><h3 class=\"wp-block-heading\" id=\"h-using-the-wordpress-built-in-feature\">Using the WordPress Built-In Feature<\/h3><p>Editing WordPress robots.txt is quite easy as you only need to use a WordPress built-in feature. Here&rsquo;s how:<\/p><ol class=\"wp-block-list\">\n<li>Login to the WordPress admin area and go to <strong>Settings<\/strong> <strong>&rarr;<\/strong> <strong>Reading<\/strong>.<\/li>\n\n\n\n<li>Scroll down and locate<strong> the Search Engine Visibility <\/strong>option.<\/li>\n\n\n\n<li>Check the option that says <strong>Discourage search engines from indexing this site.<\/strong><img decoding=\"async\" width=\"784\" height=\"246\" class=\"aligncenter wp-image-22133 size-full\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2017\/01\/search-engine-visibility-option-on-wordpress.png\" alt=\"This image shows you how to enable the Discourage search engine from indexing this site option in WordPress\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2017\/01\/search-engine-visibility-option-on-wordpress.png 784w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2017\/01\/search-engine-visibility-option-on-wordpress-150x47.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2017\/01\/search-engine-visibility-option-on-wordpress-300x94.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2017\/01\/search-engine-visibility-option-on-wordpress-768x241.png 768w\" sizes=\"(max-width: 784px) 100vw, 784px\" \/><\/li>\n\n\n\n<li><strong>Save Changes, <\/strong>and that&rsquo;s it! WordPress will automatically edit its <strong>robots.txt<\/strong> file for you.<\/li>\n<\/ol><h3 class=\"wp-block-heading\" id=\"h-editing-robots-txt-file-manually\">Editing robots.txt File Manually<\/h3><p>If you prefer the manual option, you can use <strong>File Manager <\/strong>or an <a href=\"\/ph\/tutorials\/what-is-ftp\/\">FTP client<\/a> to edit the <strong>robots.txt<\/strong> file.<\/p><p>In this article, we&rsquo;ll show you how to do it through the hPanel&rsquo;s File Manager:<\/p><ol class=\"wp-block-list\">\n<li>Login to hPanel and locate <strong>File Manager <\/strong>in your dashboard.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"1024\" height=\"627\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/04\/hpanel-dashboard-filemanager-highlighted.png\/w=1024,h=1024,fit=scale-down\" alt=\"hPanel dashboard, File manager highlighted\" class=\"wp-image-83743\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2023\/04\/hpanel-dashboard-filemanager-highlighted.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2023\/04\/hpanel-dashboard-filemanager-highlighted-300x184.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2023\/04\/hpanel-dashboard-filemanager-highlighted-150x92.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2023\/04\/hpanel-dashboard-filemanager-highlighted-768x470.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div><ol class=\"wp-block-list\">\n<li>Go to your WordPress root directory folder (in most cases, <strong>it&rsquo;s public_html)<\/strong> and find the <strong>robots.txt<\/strong> file. If you can&rsquo;t find it, create a new blank file.<\/li>\n\n\n\n<li>Right-click on the file and select <strong>Edit<\/strong>.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/filemanager-publichtml-robotstxt-edit.png\"><img decoding=\"async\" width=\"1024\" height=\"730\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/filemanager-publichtml-robotstxt-edit.png\/w=1024,h=1024,fit=scale-down\" alt=\"Robots.txt file in the public.html in File Manager\" class=\"wp-image-79482\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2023\/03\/filemanager-publichtml-robotstxt-edit.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2023\/03\/filemanager-publichtml-robotstxt-edit-300x214.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2023\/03\/filemanager-publichtml-robotstxt-edit-150x107.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2023\/03\/filemanager-publichtml-robotstxt-edit-768x548.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>Enter the following syntax:\n<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">User-agent:     *\nDisallow: \/<\/pre><p>The code above will prevent search engines from indexing <strong>your whole site<\/strong>. If you want to <a href=\"\/ph\/tutorials\/website\/how-to-block-search-engines-using-robotstxt\/\">apply the disallow rule to a specific page<\/a>, write the page&rsquo;s subdirectory and slug. For example: <strong>Disallow \/blog\/food-review-2019.<\/strong><\/p><p>        <div class=\"protip\">\n            <div class=\"protip__heading\">\n                <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                    <path d=\"M1.49234 23.5024C1.23229 23.5024 0.972242 23.4024 0.782206 23.2123C0.562165 22.9923 0.452144 22.6822 0.502153 22.3722C0.562165 21.9221 1.14227 17.9113 3.00262 16.351C3.63274 15.8209 4.43289 15.5509 5.26305 15.5609C6.09321 15.5909 6.87335 15.9109 7.47347 16.4911C8.6937 17.6913 8.76371 19.6717 7.6435 20.9919C6.0832 22.8523 2.08245 23.4324 1.63237 23.4924C1.59236 23.4924 1.54235 23.4924 1.50234 23.4924L1.49234 23.5024ZM5.16303 17.5613C4.84297 17.5613 4.53291 17.6713 4.29287 17.8813C3.60274 18.4614 3.07264 19.9317 2.75258 21.242C4.06282 20.9219 5.5331 20.3918 6.11321 19.7017C6.55329 19.1716 6.54329 18.3814 6.0832 17.9213C5.85316 17.7013 5.5431 17.5713 5.20304 17.5613C5.19304 17.5613 5.17303 17.5613 5.16303 17.5613ZM11.7243 21.8821C11.4942 21.8821 11.2642 21.8021 11.0841 21.652C10.8541 21.462 10.7241 21.1819 10.7241 20.8819V15.9109L8.08358 13.2705H3.11264C2.81259 13.2705 2.53254 13.1404 2.3425 12.9104C2.15246 12.6803 2.07245 12.3803 2.12246 12.0902C2.19247 11.7102 2.84259 8.36953 4.70294 7.12929C6.33325 6.04909 8.96375 6.49918 10.244 6.80923C11.5442 4.96889 13.2546 3.4286 15.2349 2.33839C17.4553 1.11816 19.9858 0.518051 22.4963 0.498047C23.0464 0.498047 23.4865 0.948132 23.4865 1.49824C23.4865 5.0389 22.3763 9.97983 17.1753 13.7605C17.4853 15.0408 17.9354 17.6613 16.8552 19.2816C15.615 21.1419 12.2744 21.7921 11.8943 21.8621C11.8343 21.8721 11.7743 21.8821 11.7143 21.8821H11.7243ZM12.7245 16.181V19.6016C13.7146 19.2916 14.7948 18.7915 15.2049 18.1814C15.675 17.4812 15.605 16.091 15.385 14.9008C14.5248 15.3808 13.6346 15.8109 12.7245 16.181ZM9.66388 12.0302L11.9643 14.3307C13.1845 13.8306 14.3648 13.2204 15.485 12.5103C19.9358 9.51974 21.2361 5.60901 21.4561 2.53843C19.6157 2.67846 17.8254 3.20856 16.2051 4.09872C14.2847 5.14892 12.6544 6.68921 11.4942 8.54956C10.7841 9.65977 10.174 10.82 9.66388 12.0302ZM4.39289 11.2701H7.81353C8.1936 10.3599 8.63368 9.46974 9.11377 8.60957C7.92355 8.38953 6.51329 8.31952 5.81315 8.78961C5.19304 9.19968 4.70294 10.3099 4.39289 11.2701Z\" fill=\"#673DE6\"\/>\n                <\/svg>\n                <p class=\"protip__title\">\n                    Pro Tip                <\/p>\n            <\/div>\n            <p class=\"protip__content\"> The syntaxes in <strong>robots.txt<\/strong> files are case sensitive, so be careful when editing.<\/p>\n                    <\/div>\n        \n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-2-password-protecting-your-wordpress-website\">2. Password Protecting Your WordPress Website<\/h2><p>Search engines and web crawlers don&rsquo;t have access to password-protected files. Here are a few methods to password protect your WordPress site:<\/p><h3 class=\"wp-block-heading\" id=\"h-using-hosting-control-panel\">Using Hosting Control Panel<\/h3><p>If you are a Hostinger client, you can password protect your website using hPanel&rsquo;s <strong>Password Protect Directories<\/strong> tool:<\/p><ol class=\"wp-block-list\">\n<li>Access hPanel and navigate to <strong>Password Protect Directories<\/strong>.<\/li>\n\n\n\n<li>Enter your root directory into the first field.<\/li>\n\n\n\n<li>Once the directory is selected, enter your username and password and click <strong>Protect<\/strong>.<a href=\"\/ph\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/11\/password-protect-directories.png\"><img decoding=\"async\" class=\"size-full wp-image-39205 aligncenter\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/11\/password-protect-directories.png\" alt=\"Password Protect Directories on hPanel.\" width=\"861\" height=\"341\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2019\/11\/password-protect-directories.png 861w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2019\/11\/password-protect-directories-300x119.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2019\/11\/password-protect-directories-150x59.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2019\/11\/password-protect-directories-768x304.png 768w\" sizes=\"(max-width: 861px) 100vw, 861px\" \/><\/a><\/li>\n<\/ol><p>        <div class=\"protip\">\n            <div class=\"protip__heading\">\n                <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                    <path d=\"M1.49234 23.5024C1.23229 23.5024 0.972242 23.4024 0.782206 23.2123C0.562165 22.9923 0.452144 22.6822 0.502153 22.3722C0.562165 21.9221 1.14227 17.9113 3.00262 16.351C3.63274 15.8209 4.43289 15.5509 5.26305 15.5609C6.09321 15.5909 6.87335 15.9109 7.47347 16.4911C8.6937 17.6913 8.76371 19.6717 7.6435 20.9919C6.0832 22.8523 2.08245 23.4324 1.63237 23.4924C1.59236 23.4924 1.54235 23.4924 1.50234 23.4924L1.49234 23.5024ZM5.16303 17.5613C4.84297 17.5613 4.53291 17.6713 4.29287 17.8813C3.60274 18.4614 3.07264 19.9317 2.75258 21.242C4.06282 20.9219 5.5331 20.3918 6.11321 19.7017C6.55329 19.1716 6.54329 18.3814 6.0832 17.9213C5.85316 17.7013 5.5431 17.5713 5.20304 17.5613C5.19304 17.5613 5.17303 17.5613 5.16303 17.5613ZM11.7243 21.8821C11.4942 21.8821 11.2642 21.8021 11.0841 21.652C10.8541 21.462 10.7241 21.1819 10.7241 20.8819V15.9109L8.08358 13.2705H3.11264C2.81259 13.2705 2.53254 13.1404 2.3425 12.9104C2.15246 12.6803 2.07245 12.3803 2.12246 12.0902C2.19247 11.7102 2.84259 8.36953 4.70294 7.12929C6.33325 6.04909 8.96375 6.49918 10.244 6.80923C11.5442 4.96889 13.2546 3.4286 15.2349 2.33839C17.4553 1.11816 19.9858 0.518051 22.4963 0.498047C23.0464 0.498047 23.4865 0.948132 23.4865 1.49824C23.4865 5.0389 22.3763 9.97983 17.1753 13.7605C17.4853 15.0408 17.9354 17.6613 16.8552 19.2816C15.615 21.1419 12.2744 21.7921 11.8943 21.8621C11.8343 21.8721 11.7743 21.8821 11.7143 21.8821H11.7243ZM12.7245 16.181V19.6016C13.7146 19.2916 14.7948 18.7915 15.2049 18.1814C15.675 17.4812 15.605 16.091 15.385 14.9008C14.5248 15.3808 13.6346 15.8109 12.7245 16.181ZM9.66388 12.0302L11.9643 14.3307C13.1845 13.8306 14.3648 13.2204 15.485 12.5103C19.9358 9.51974 21.2361 5.60901 21.4561 2.53843C19.6157 2.67846 17.8254 3.20856 16.2051 4.09872C14.2847 5.14892 12.6544 6.68921 11.4942 8.54956C10.7841 9.65977 10.174 10.82 9.66388 12.0302ZM4.39289 11.2701H7.81353C8.1936 10.3599 8.63368 9.46974 9.11377 8.60957C7.92355 8.38953 6.51329 8.31952 5.81315 8.78961C5.19304 9.19968 4.70294 10.3099 4.39289 11.2701Z\" fill=\"#673DE6\"\/>\n                <\/svg>\n                <p class=\"protip__title\">\n                    Pro Tip                <\/p>\n            <\/div>\n            <p class=\"protip__content\">If your root directory is <strong>public_html<\/strong>, leave the directory column blank.<\/p>\n                    <\/div>\n        \n\n\n\n<\/p><p>The process in cPanel is also quite similar:<\/p><ol class=\"wp-block-list\">\n<li>Log in to your cPanel account and head to <strong>Directory Privacy<\/strong>.<img decoding=\"async\" width=\"944\" height=\"297\" class=\"aligncenter wp-image-22254 size-full\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2017\/01\/directory-privacy-tool-on-cpanel.png\" alt=\"This image shows you the Directory Privacy tool in cPanel.\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2017\/01\/directory-privacy-tool-on-cpanel.png 944w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2017\/01\/directory-privacy-tool-on-cpanel-150x47.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2017\/01\/directory-privacy-tool-on-cpanel-300x94.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2017\/01\/directory-privacy-tool-on-cpanel-768x242.png 768w\" sizes=\"(max-width: 944px) 100vw, 944px\" \/><\/li>\n\n\n\n<li>Select your root directory. In our case, it&rsquo;s<strong>&nbsp;public_html<\/strong>.<\/li>\n\n\n\n<li>Check the <strong>Password protect this directory<\/strong> option, and name the protected directory. Press <strong>Save<\/strong>.<img decoding=\"async\" width=\"1348\" height=\"472\" class=\"aligncenter wp-image-22255 size-full\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2017\/01\/directory-privacys-password-protecting-feature-on-hpanel.png\" alt=\"This image shows you how to use cPanel's Directory Privacy feature\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2017\/01\/directory-privacys-password-protecting-feature-on-hpanel.png 1348w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2017\/01\/directory-privacys-password-protecting-feature-on-hpanel-150x53.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2017\/01\/directory-privacys-password-protecting-feature-on-hpanel-300x105.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2017\/01\/directory-privacys-password-protecting-feature-on-hpanel-768x269.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2017\/01\/directory-privacys-password-protecting-feature-on-hpanel-1024x359.png 1024w\" sizes=\"(max-width: 1348px) 100vw, 1348px\" \/><\/li>\n\n\n\n<li>Create a new user to log in to the protected website, and that&rsquo;s it!<\/li>\n<\/ol><h3 class=\"wp-block-heading\" id=\"h-using-wordpress-plugins\">Using WordPress Plugins<\/h3><p>There are tons of plugins that can help password protect your site. However, the <a href=\"https:\/\/wordpress.org\/plugins\/password-protected\/\" target=\"_blank\" rel=\"noopener\"><strong>Password Protected<\/strong><\/a> plugin might just be the best one out there. It&rsquo;s been tested with the new WordPress update, and it&rsquo;s pretty straightforward to use.<\/p><p>After <a href=\"\/ph\/tutorials\/wordpress\/how-to-install-wordpress-plugins\/\">installing the plugin<\/a> and activating it, head to <strong>Settings &rarr; Password Protected <\/strong>and configure the settings to match your needs.<\/p><h2 class=\"wp-block-heading\" id=\"h-3-removing-indexed-page-from-google\">3. Removing Indexed Page From Google<\/h2><p>Don&rsquo;t worry if Google has indexed your site. You can remove it from SERPs by following these steps:<\/p><ol class=\"wp-block-list\">\n<li>Set up Google Search Console for your website.<\/li>\n\n\n\n<li>Access Google Search Console of your newly added website and scroll down to <strong>Legacy tools and reports &rarr; Removals.<\/strong><\/li>\n\n\n\n<li>Click the <strong>Temporarily hide button<\/strong> and enter the URL you want to remove from Google.<\/li>\n\n\n\n<li>On a new window, choose <b>Clear URL from cache and temporarily remove from search, <\/b>then <strong>Submit Request<\/strong>.<img decoding=\"async\" width=\"727\" height=\"261\" class=\"aligncenter size-full wp-image-22258\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2017\/01\/google-search-console-submit-removal-request.png\" alt=\"This image shows you the Google Search Console Submit Removal Request\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2017\/01\/google-search-console-submit-removal-request.png 727w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2017\/01\/google-search-console-submit-removal-request-150x54.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2017\/01\/google-search-console-submit-removal-request-300x108.png 300w\" sizes=\"(max-width: 727px) 100vw, 727px\" \/><\/li>\n<\/ol><p>And that&rsquo;s it! Google will temporarily remove your site from search results. Make sure to apply the previous methods to prevent Google from indexing your site again.<\/p><h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2><p>There you have it! Quick and easy ways to discourage search engines from indexing your sites. Here&rsquo;s a quick recap of the methods we&rsquo;ve learned today:<\/p><ul class=\"wp-block-list\">\n<li>Edit the <strong>robots.txt<\/strong> file, which can be performed automatically or manually.<\/li>\n\n\n\n<li>Password protect your website by using a plugin or your hosting control panel.<\/li>\n\n\n\n<li>Remove indexed pages from Google via Google Search console.<\/li>\n<\/ul><p>If you have any other methods, or if you have any questions, please do let us know in the comments. Good luck!<\/p><p>        <div class=\"protip\">\n            <div class=\"protip__heading\">\n                <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                    <path d=\"M1.49234 23.5024C1.23229 23.5024 0.972242 23.4024 0.782206 23.2123C0.562165 22.9923 0.452144 22.6822 0.502153 22.3722C0.562165 21.9221 1.14227 17.9113 3.00262 16.351C3.63274 15.8209 4.43289 15.5509 5.26305 15.5609C6.09321 15.5909 6.87335 15.9109 7.47347 16.4911C8.6937 17.6913 8.76371 19.6717 7.6435 20.9919C6.0832 22.8523 2.08245 23.4324 1.63237 23.4924C1.59236 23.4924 1.54235 23.4924 1.50234 23.4924L1.49234 23.5024ZM5.16303 17.5613C4.84297 17.5613 4.53291 17.6713 4.29287 17.8813C3.60274 18.4614 3.07264 19.9317 2.75258 21.242C4.06282 20.9219 5.5331 20.3918 6.11321 19.7017C6.55329 19.1716 6.54329 18.3814 6.0832 17.9213C5.85316 17.7013 5.5431 17.5713 5.20304 17.5613C5.19304 17.5613 5.17303 17.5613 5.16303 17.5613ZM11.7243 21.8821C11.4942 21.8821 11.2642 21.8021 11.0841 21.652C10.8541 21.462 10.7241 21.1819 10.7241 20.8819V15.9109L8.08358 13.2705H3.11264C2.81259 13.2705 2.53254 13.1404 2.3425 12.9104C2.15246 12.6803 2.07245 12.3803 2.12246 12.0902C2.19247 11.7102 2.84259 8.36953 4.70294 7.12929C6.33325 6.04909 8.96375 6.49918 10.244 6.80923C11.5442 4.96889 13.2546 3.4286 15.2349 2.33839C17.4553 1.11816 19.9858 0.518051 22.4963 0.498047C23.0464 0.498047 23.4865 0.948132 23.4865 1.49824C23.4865 5.0389 22.3763 9.97983 17.1753 13.7605C17.4853 15.0408 17.9354 17.6613 16.8552 19.2816C15.615 21.1419 12.2744 21.7921 11.8943 21.8621C11.8343 21.8721 11.7743 21.8821 11.7143 21.8821H11.7243ZM12.7245 16.181V19.6016C13.7146 19.2916 14.7948 18.7915 15.2049 18.1814C15.675 17.4812 15.605 16.091 15.385 14.9008C14.5248 15.3808 13.6346 15.8109 12.7245 16.181ZM9.66388 12.0302L11.9643 14.3307C13.1845 13.8306 14.3648 13.2204 15.485 12.5103C19.9358 9.51974 21.2361 5.60901 21.4561 2.53843C19.6157 2.67846 17.8254 3.20856 16.2051 4.09872C14.2847 5.14892 12.6544 6.68921 11.4942 8.54956C10.7841 9.65977 10.174 10.82 9.66388 12.0302ZM4.39289 11.2701H7.81353C8.1936 10.3599 8.63368 9.46974 9.11377 8.60957C7.92355 8.38953 6.51329 8.31952 5.81315 8.78961C5.19304 9.19968 4.70294 10.3099 4.39289 11.2701Z\" fill=\"#673DE6\"\/>\n                <\/svg>\n                <p class=\"protip__title\">\n                    Learn More About WordPress SEO                <\/p>\n            <\/div>\n            <p class=\"protip__content\"> <a href=\"\/ph\/tutorials\/wordpress-seo-tips\/\">WordPress SEO Tips<\/a><br>\n<a href=\"\/ph\/tutorials\/how-to-create-wordpress-sitemap\/\">How to Create a Sitemap in WordPress<\/a><br>\n<a href=\"\/ph\/tutorials\/wordpress-schema-markup\/\">How to Add WordPress Schema Markup<\/a><br>\n<a href=\"\/ph\/tutorials\/wordpress-meta-description\/\">How to Add Meta Description and Meta Title in WordPress<\/a><br>\n<a href=\"\/ph\/tutorials\/wordpress-amp\/\">How to Setup AMP (Accelerated Mobile Pages) in WordPress<\/a><br>\n<a href=\"\/ph\/tutorials\/add-breadcrumbs-wordpress\/\">How to Add Breadcrumbs in WordPress<\/a> <\/p>\n                    <\/div>\n        \n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WordPress site owners will do anything to get their websites indexed. However, you might not want search engines to crawl through your website if it&rsquo;s still in development. In a case like this, it&rsquo;s recommended to discourage search engines from indexing your site. Stick with us if you want to learn more about this topic! [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/ph\/tutorials\/prevent-search-engines-from-indexing-wordpress\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"How to Discourage Search Engines from Indexing Your Site","rank_math_description":"In some cases, you don't want your site to appear in SERPs. Learn the different ways to discourage search engines from indexing your site.","rank_math_focus_keyword":"discourage search engines from indexing this site","footnotes":""},"categories":[22632],"tags":[],"class_list":["post-751","post","type-post","status-publish","format-standard","hentry","category-wordpress"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/tutorials\/prevent-search-engines-from-indexing-wordpress","default":0},{"locale":"pt-BR","link":"https:\/\/www.hostinger.com\/br\/tutoriais\/como-evitar-motores-de-busca-de-indexacao-blog","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/tutoriels\/desactiver-indexation-wordpress","default":0},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/tutoriales\/remover-sitio-de-google","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/tutorial\/cara-mencegah-mesin-pencari-mengindex-blog-wordpress","default":0},{"locale":"en-GB","link":"https:\/\/www.hostinger.com\/uk\/tutorials\/prevent-search-engines-from-indexing-wordpress","default":0},{"locale":"en-MY","link":"https:\/\/www.hostinger.com\/my\/tutorials\/prevent-search-engines-from-indexing-wordpress","default":0},{"locale":"en-PH","link":"https:\/\/www.hostinger.com\/ph\/tutorials\/prevent-search-engines-from-indexing-wordpress","default":0},{"locale":"es-MX","link":"https:\/\/www.hostinger.com\/mx\/tutoriales\/remover-sitio-de-google","default":0},{"locale":"es-CO","link":"https:\/\/www.hostinger.com\/co\/tutoriales\/remover-sitio-de-google","default":0},{"locale":"es-AR","link":"https:\/\/www.hostinger.com\/ar\/tutoriales\/remover-sitio-de-google","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/pt\/tutoriais\/como-evitar-motores-de-busca-de-indexacao-blog","default":0},{"locale":"en-IN","link":"https:\/\/www.hostinger.com\/in\/tutorials\/prevent-search-engines-from-indexing-wordpress","default":0},{"locale":"en-CA","link":"https:\/\/www.hostinger.com\/ca\/tutorials\/prevent-search-engines-from-indexing-wordpress","default":0},{"locale":"en-AU","link":"https:\/\/www.hostinger.com\/au\/tutorials\/prevent-search-engines-from-indexing-wordpress","default":0},{"locale":"en-NG","link":"https:\/\/www.hostinger.com\/ng\/tutorials\/prevent-search-engines-from-indexing-wordpress","default":0}],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-json\/wp\/v2\/posts\/751","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-json\/wp\/v2\/comments?post=751"}],"version-history":[{"count":24,"href":"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-json\/wp\/v2\/posts\/751\/revisions"}],"predecessor-version":[{"id":127748,"href":"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-json\/wp\/v2\/posts\/751\/revisions\/127748"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-json\/wp\/v2\/media?parent=751"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-json\/wp\/v2\/categories?post=751"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-json\/wp\/v2\/tags?post=751"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}