{"id":8057,"date":"2026-05-08T14:07:27","date_gmt":"2026-05-08T12:07:27","guid":{"rendered":"https:\/\/mybox.com\/help\/?post_type=manual_kb&#038;p=8057"},"modified":"2026-06-08T09:55:50","modified_gmt":"2026-06-08T07:55:50","slug":"cum-sa-blocati-un-site-wordpress-de-la-indexare","status":"publish","type":"manual_kb","link":"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-block-a-wordpress-site-from-indexing\/","title":{"rendered":"Cum s\u0103 bloca\u021bi un site WordPress de la indexare"},"content":{"rendered":"<div class=\"translation-block translation-block-merged\">\n<p class=\"wp-block-paragraph\">There are many situations where you might want to prevent search engines like Google from showing your website in search results\u2014for example, when you are still developing your <strong>mybox-hosted<\/strong> site, creating a private staging area, or setting up a landing page for a specific group of people.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_86 ez-toc-wrap-left counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-block-a-wordpress-site-from-indexing\/#Method_1_The_Built-in_WordPress_Setting_Easiest\" >Method 1: The Built-in WordPress Setting (Easiest)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-block-a-wordpress-site-from-indexing\/#Method_2_Using_the_robotstxt_File\" >Method 2: Using the robots.txt File<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-block-a-wordpress-site-from-indexing\/#Method_3_Password_Protection_Most_Secure\" >Method 3: Password Protection (Most Secure)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-block-a-wordpress-site-from-indexing\/#Method_4_Using_an_SEO_Plugin_Granular_Control\" >Method 4: Using an SEO Plugin (Granular Control)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-block-a-wordpress-site-from-indexing\/#Important_What_to_do_when_you_go_Live\" >Important: What to do when you go Live<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-block-a-wordpress-site-from-indexing\/#Summary\" >Summary<\/a><\/li><\/ul><\/nav><\/div>\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Method_1_The_Built-in_WordPress_Setting_Easiest\"><\/span>Method 1: The Built-in WordPress Setting (Easiest)<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">WordPress has a native &#8220;one-click&#8221; option that requests search engines not to index the site.<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>Log in to your WordPress dashboard.<\/li>\n\n\n\n<li>Navigate to <strong>Settings &gt; Reading<\/strong>.<\/li>\n\n\n\n<li>Scroll to the bottom and find the <strong>&#8220;Search Engine Visibility&#8221;<\/strong> section.<\/li>\n\n\n\n<li>Check the box: <strong>&#8220;Discourage search engines from indexing this site&#8221;<\/strong>.<\/li>\n\n\n\n<li>Click <strong>Save Changes<\/strong>.<\/li>\n<\/ol>\n\n\n\n<\/div>\n\n<div id=\"mybox-82751439\" class=\"mybox-content mybox-entity-placement\"><div class=\"early-access-banner-inpost\">\r\n  <div class=\"banner-left-inpost\">\r\n    <div class=\"icon-box-inpost\">\r\n      <img decoding=\"async\" src=\"https:\/\/mybox.com\/help\/wp-content\/uploads\/2026\/02\/square-info-icon.svg\" alt=\"Info\">\r\n    <\/div>\r\n    <div class=\"text-box-inpost\">\r\n      <span class=\"label-inpost\"><span class=\"translation-block translation-block-banner-text\">Acces timpuriu<\/span><\/span>\r\n      <h4><span class=\"translation-block translation-block-banner-text\">Mai ave\u021bi nevoie de ajutor?<\/span><\/h4>\r\n      <p><span class=\"translation-block translation-block-banner-text\">Contacta\u021bi echipa noastr\u0103 de servicii pentru clien\u021bi.<\/span><\/p>\r\n    <\/div>\r\n  <\/div>\r\n\r\n  <div class=\"banner-right-inpost\">\r\n    <a href=\"https:\/\/panel.mybox.com\/helpdesk2\/v\/list\/\" class=\"banner-button-inpost\"><span class=\"translation-block translation-block-banner-text\">Trimite mesaj<\/span><\/a>\r\n  <\/div>\r\n<\/div><\/div>\n\n<div class=\"translation-block translation-block-merged\"><p class=\"wp-block-paragraph\"><strong>Note:<\/strong> This adds a <code>noindex<\/code> tag to your site&#8217;s header. While most reputable search engines honor this request, it is technically a &#8220;request&#8221; rather than a hard lock.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Method_2_Using_the_robotstxt_File\"><\/span>Method 2: Using the robots.txt File<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">You can manually tell search engine &#8220;crawlers&#8221; which parts of your <strong>mybox-hosted<\/strong> site are off-limits.<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>Access your files via FTP.<\/li>\n\n\n\n<li>In the root directory (usually <code>public_html<\/code>), look for a file named <code>robots.txt<\/code>. If it doesn&#8217;t exist, create it.<\/li>\n\n\n\n<li>Add the following lines to block the entire site:Plaintext<code>User-agent: * Disallow: \/<\/code><\/li>\n\n\n\n<li>If you only want to block a specific folder (like <code>\/private\/<\/code>), use:Plaintext<code>User-agent: * Disallow: \/private\/<\/code><\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Method_3_Password_Protection_Most_Secure\"><\/span>Method 3: Password Protection (Most Secure)<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If you need a 100% guarantee that no one (including bots and unauthorized users) can see your content, password protection is the best approach.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Via the mybox Panel:<\/h4>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>Log in to your <strong>mybox panel<\/strong>.<\/li>\n\n\n\n<li>Navigate to the <strong>Websites<\/strong> or <strong>Security<\/strong> section.<\/li>\n\n\n\n<li>Look for <strong>&#8220;Password Protected Directories&#8221;<\/strong>.<\/li>\n\n\n\n<li>Select your site&#8217;s directory and create a username and password. <em>This prevents any crawler from accessing the code of your site because they cannot bypass the login prompt.<\/em><\/li>\n<\/ol>\n\n\n\n<h4 class=\"wp-block-heading\">Via Plugin:<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Alternatively, you can use a plugin like <strong>&#8220;Password Protected&#8221;<\/strong> to lock the entire front end of your site while allowing you to stay logged in as an admin.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Method_4_Using_an_SEO_Plugin_Granular_Control\"><\/span>Method 4: Using an SEO Plugin (Granular Control)<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If you use a plugin like <strong>Yoast SEO<\/strong> or <strong>Rank Math<\/strong>, you can block specific pages or posts instead of the whole site.<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>Open the editor for a specific post or page.<\/li>\n\n\n\n<li>Scroll down to the SEO plugin settings box.<\/li>\n\n\n\n<li>Under the &#8220;Advanced&#8221; tab, find the &#8220;Robot meta&#8221; settings.<\/li>\n\n\n\n<li>Select <strong>&#8220;No&#8221;<\/strong> for the option &#8220;Allow search engines to show this Page in search results?&#8221;.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Important_What_to_do_when_you_go_Live\"><\/span>Important: What to do when you go Live<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The most common mistake developers make is forgetting to turn these settings off. When you are ready for the world to see your <strong>mybox-hosted<\/strong> site:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Uncheck<\/strong> the box in Settings &gt; Reading.<\/li>\n\n\n\n<li><strong>Remove<\/strong> the <code>Disallow: \/<\/code> line from your <code>robots.txt<\/code>.<\/li>\n\n\n\n<li><strong>Disable<\/strong> directory password protection in your <strong>mybox panel<\/strong>.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Summary\"><\/span>Summary<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Blocking your site from indexing is a mechanical necessity during the construction phase of your project. Whether you use the simple WordPress toggle for a quick fix or the <strong>mybox panel<\/strong> for a secure password lock, ensuring your site stays hidden until it&#8217;s perfect is a key part of professional site management.<\/p>\n<\/div>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"template":"","format":"standard","manualknowledgebasecat":[58],"manual_kb_tag":[283,589,1790,3723,3724,3728,4793,5888,8343,8603,8604,8605,8606],"class_list":["post-8057","manual_kb","type-manual_kb","status-publish","format-standard","hentry","manualknowledgebasecat-web-applications-cms","manual_kb_tag-mybox-panel","manual_kb_tag-landing-page","manual_kb_tag-password-protection","manual_kb_tag-robots-txt","manual_kb_tag-noindex-tag","manual_kb_tag-wordpress-settings","manual_kb_tag-disallow-directive","manual_kb_tag-search-engine-visibility","manual_kb_tag-mybox-hosted","manual_kb_tag-robots-txt-file","manual_kb_tag-password-protected-directories","manual_kb_tag-staging-site","manual_kb_tag-private-staging"],"_links":{"self":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb\/8057","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":2,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb\/8057\/revisions"}],"predecessor-version":[{"id":8058,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb\/8057\/revisions\/8058"}],"wp:attachment":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/media?parent=8057"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manualknowledgebasecat?post=8057"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb_tag?post=8057"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}