Disallow vs. Noindex: Understand Differences and When to Use
Lucas Pelisari
Lucas Pelisari has been an expert in SEO and content at WebSyd for over 6 years, working on creating ...
See full profileSummary (TL;DR)
Understanding the difference between disallow and noindex is essential to managing your site's presence in search engines. Disallow prevents the tracking of specific pages, while noindex prevents them from being indexed and appearing in search results. To ensure that your website does not appear on Google, use it onindex. If your site is already indexed, use the Google Search Console removal tool to effectively deindex it. And to know more about how to appear on Google, check out our complete guide.
Short answer: disallow (in robots.txt) prevents tracking; noindex (meta tag or HTTP header) prevents the page from appearing in the results. To take a page from Google, use noindex and leave the page released for tracking, because Google only obeys the noindex if you can read the page (Google Search Central).
To control how Google tracks and indexes the site, the two main guidelines are disallow and noindex.
We will explore your differences, when using them and how to implement them effectively to optimise website accessibility and ensure the privacy and security of our content.
What's Disallow?
Disallow is a directive used in the site's robot.txt file to instruct search engines not to track (crawlem) certain pages or directories.
In other words, disallow prevents search engine trackers such as Googlebot from accessing specific parts of our website.
How Does Disallow Work?
To use the disk, we need to create or edit the robot.txt file, which should be located in the root directory of our website.
Within this file, we can specify which areas of the site we want to block for trackers.
Example:
User-agent: *
Disallow: /admin/
Disallow: /privado/
In this example, we're telling search engines not to track directories /admin/ and /privado/.
This may be useful to protect sensitive areas or areas that are not relevant to the indexation.
What is Noindex?
Noindex is a directive used to instruct search engines not to index a page, even if it is tracked.
This means that the page will not appear in the search results.
How the Noindex?
To use noindex, we can add a meta tag to the HTML header of the page or set an HTTP header.
This approach allows search engines to track the page, but prevents it from being included in the search index.
Example (meta tag):
<meta name="robots" content="noindex">
By including this meta tag in the HTML of our page, we are instructing search engines not to index this specific page.
Main differences between Disallow and Noindex
Although both guidelines control the interaction of search engines with our website, disallow and noindex They have different purposes.
Disallow: It prevents the tracking of specific pages or directories. Pages can still be indexed if found by other means (such as external links).Noindex: Allows tracking, but prevents indexing. The page will not appear in the search results, even if it is tracked.
Practical Examples of Use
Let's explore some scenarios where disallow and noindex can be used effectively.
Scenario 1: Site Administration Area
We at WebSyd have a site with an administration area (/admin/) that we do not want to be tracked or indexed.
In that case, we can use disallow to stop the tracking.
User-agent: *
Disallow: /admin/
This prevents trackers from spending time in the administration area. The real protection comes from login: the robots.txt can be read by anyone.
Scene 2: Private Content Pages
If we have pages of private content that should not appear in the search results, we use noindex.
Example (meta tag):
<meta name="robots" content="noindex">
By adding this meta tag to the private pages, we ensure that they are not indexed by search engines, while maintaining content privacy.
Scenario 3: Why not combine disallow and noindex?
A common error is to combine disallow and noindex on the same page thinking it gives double protection. In practice, disallow prevents Google from reading the page and therefore seeing noindex. The example below shows the configuration that no must be used:
User-agent: *
Disallow: /confidencial/
Example (meta tag on page):
<!-- Na página /confidencial/ -->
<meta name="robots" content="noindex">
With this configuration, the page /confidencial/ you can keep appearing on Google (no description) if other sites point to it. The right thing is to choose: noindex with tracking released, to remove the index page, or password, for content really confidential.
When to Use Disallow and Noindex?
The choice depends on the goal: save tracking or take out the results page.
When to Use Disallow:
- To block trackers: When we want to prevent search engines from accessing certain areas of the site.
- For areas with no search value: like the board of administration. Attention: the robots.txt is public and does not protect anything. According to Google, it serves to avoid tracking overload, and sensitive content needs password.
- To control website accessibility: Preventing tracking of parts of the site that are not relevant to search engines, avoiding an overload in Crawl Budget on your website.
When to Use Noindex:
- To prevent indexing: When we want a page not to appear in the search results, but it can still be traced.
- To manage page visibility: Controlling which pages should be found by users in the search results.
- To delete duplicate content: Preventing similar pages from cannibalizing search results.
Which one to use to prevent your site from appearing on Google?
If you want to ensure that your website does not appear on Google, the ideal is to use the tagnoindex.
That's because:
- If you just use
disallowGoogle will not track the page, but it may still appear in search results if other sites have links to it. - If you use that much
disallowhow muchnoindexGoogle will not track the page and therefore will not see the tagnoindex. . So, the use ofnoindexIt won't work.
How to Unindex a Site Already Indexed on Google?
If your site already appears in the search results and you want to remove it, we recommend using the Google Search Console removal tool.
Search Console removal is quick but temporary: it's worth about six months (Search Console Help). For the page to come out for good, apply also the noindex (or remove the page with 404 or 410) status before the deadline is up.
For more details on how to remove or unindex a Google URL, see the specific article about how to remove a Google URL.
Common Errors to Avoid
Using disallow and noindex, some common errors may compromise the effectiveness of these guidelines:
- Block the entire site with
disallow: IncludeDisallow: /filerobots.txtprevents the entire site from being tracked, which is generally not desirable. - Forget to remove
noindex: If we put it on.noindexon pages that we want indexed in the future, we need to remember to remove the meta tag. - Do not test settings: It is important to test our settings of
robots.txtandnoindexto make sure they're working as expected. Tools like Google Search Console can help with that.
Additional Tools and Resources
To help implement and monitor disallow and noindex, we can use various tools and resources:
- Google Search Console: The robot.txt report shows whether Google could read the file, and URL Inspection shows if a page is blocked or with noindex. In addition, we can use the Google Search Console removal tool to unindex Google-specific URLs. See also how remove a Google URL.
- Screaming Frog SEO Spider: A tool that tracks our site and helps us identify blocked pages or with
noindex. - Yoast SEO ( WordPress plugin): A plugin that facilitates the addition of directives
noindexand editing of the filerobots.txt.
Why doesn't my website google?
There are several reasons why your site may not appear on Google, from incorrect disallow settings and noindex to content quality issues. If your site is not appearing in the search results, check these SEO guidelines and other practices to identify possible problems. Check out our article on Why doesn't my website google? for more information.
How long does it take for the site to be indexed?
There is no fixed deadline: it depends on how many links lead to the site, the quality of content and the sitemap has been sent in Search Console. On new sites, it usually takes a few days to a few weeks. To speed up the process, follow our tips on How long it takes for the site to be indexed on Google.
SEO Consulting
We at WebSyd understand that managing indexing and tracking of a website can be complex.
We offer SEO consulting to help you implement the best SEO techniques to index your website Google and optimise your online presence.
Disallow or noindex: which one to choose?
Use disallow to save tracking in areas with no search value, noindex to take pages from the results and password for what is confidential. Never use a disallow on a page that needs to be unindexed.
Remember, disallow Stops tracking while noindex prevents indexing. If you need help setting WebSyd indexing, WebSyd consults SEO.
Need help indexing your website?
FREQUENTLY ASKED QUESTIONS
What's disallow and what's it for?
Disallow is a directive used in the robot.txt file to prevent search engines from tracking certain pages or directories of your site. It is useful to protect sensitive or irrelevant areas of tracking.
What is in index and when should I use it?
Noindex is a meta tag that instructs search engines not to include a page in the search results, even if it is tracked. Use inindex when you do not want a specific page to appear in Google search results.
Can I use disallow and noindex together?
Not on the same page. If disallow blocks tracking, Google does not read the page and does not see the noindex, and it can still appear in the results if other sites point to it. To unindex, use noindex only and leave the page released on robots.txt.
How can I remove my website from Google search results?
Use the Google Search Console removal tool for a quick but temporary effect (about six months). For the removal to be valid, apply the index on the page or remove the content (status 404 or 410) before the deadline is over.
