Skip to main content

Aloak Jawali

Noindex vs Disallow vs Canonical: Which to Use (7 Rules)

Summarize with: ChatGPT Claude AI Google AI Grok Perplexity
Share:
Noindex vs disallow vs canonical banner showing crawl, index and consolidate

Noindex vs disallow is one of the most misunderstood choices in technical SEO, and adding canonical tags to the mix makes it harder. All three seem to “hide” pages, but each one controls a different stage: crawling, indexing, or consolidating duplicates. That distinction matters for Google and for AI crawlers alike, as our breakdown of search engine bots vs LLM bots explains. If you pick the wrong one, blocked pages can still show up in search, or duplicate pages can split your rankings. This guide settles the noindex vs disallow question, shows where canonicals fit, and gives you seven rules for choosing the right one.

Quick Answer

  • Disallow (robots.txt) stops crawling. It does not reliably stop indexing.
  • Noindex (meta tag or X-Robots-Tag header) stops indexing. The page has to stay crawlable for noindex to work.
  • Canonical (rel=”canonical”) tells Google which duplicate URL to show. Google treats it as a strong hint, not a command.
  • Never put disallow and noindex on the same URL. Google can’t read a noindex on a page it isn’t allowed to crawl.

Noindex vs Disallow vs Canonical at a Glance

Use this table as your noindex vs disallow cheat sheet.

Disallow Noindex Canonical
What it controls Crawling Indexing Which duplicate represents the group
Where it lives robots.txt at the site root Meta robots tag or X-Robots-Tag HTTP header <link> element, HTTP header, or sitemap
Can Google crawl the page? No Yes, and it has to Yes
Can the URL still appear in Google? Yes, sometimes without a description No, once Google recrawls it The canonical appears; duplicates usually don’t
Consolidates signals to another URL? No No Yes
How binding is it? Directive for compliant bots Directive Strong hint
Best for Crawl load, endless URL spaces, media files Pages that shouldn’t appear in search Duplicate and near-duplicate pages
Works on PDFs and images? Yes (path-based) Yes, via X-Robots-Tag Yes, via HTTP header

What Disallow Actually Does

A robots.txt Disallow rule tells crawlers which URLs they may not request.

User-agent: *
Disallow: /search/
Disallow: /cart/

Google says a robots.txt file mainly exists to stop crawlers from overloading your site, and that it isn’t a way to keep a page out of Google. The catch is that a disallowed page can still get indexed when other sites link to it, and the result then appears with no description. That’s why Search Console sometimes reports URLs as “Indexed, though blocked by robots.txt.” Also note that Googlebot and other reputable crawlers follow robots.txt, but some crawlers don’t.

The key point in the noindex vs disallow debate is that disallow controls access, not search results.

What Noindex Actually Does

Noindex tells search engines not to add the page to their index. You can set it in HTML:

<meta name="robots" content="noindex">

Or you can send it as an HTTP response header:

X-Robots-Tag: noindex

After Googlebot crawls the page and reads the rule, Google removes the page from its search results completely, even if other sites link to it. The header version also works for non-HTML files such as PDFs, images, and videos.

There are two important conditions. First, the URL must not be blocked by robots.txt and must otherwise be reachable by the crawler. Second, Google doesn’t support a noindex rule placed inside robots.txt. So noindex vs disallow isn’t a choice you can hedge by using both: noindex only works if crawling is allowed.

Google’s guide to blocking indexing with noindex covers the full syntax.

What Canonical Actually Does

A canonical tag points duplicate or very similar pages to your preferred version:

<link rel="canonical" href="https://example.com/dresses/green-dress/">

Google describes rel=”canonical” link annotations as a strong signal that the specified URL should become the canonical. If you skip it, Google picks the version it judges best to show users.

Canonicals sit outside the noindex vs disallow choice, and Google warns against swapping them:

  • Don’t use robots.txt for canonicalization, because Google may still index disallowed URLs without their content.
  • Google advises against using noindex to steer canonical selection within one site, since noindex removes the page from Search entirely. It recommends rel=”canonical” instead.
  • Don’t declare different canonical URLs for the same page through different methods, such as one URL in your sitemap and another in rel=”canonical”.

Noindex vs Disallow vs Canonical: 7 Rules for Choosing

Rule 1: To keep a page out of Google, use noindex, not disallow

Thank-you pages, internal search results, thin tag archives, and login screens all belong here. Google’s own advice for keeping a page out of its results is to use noindex or password protection. If you only remember one noindex vs disallow rule, make it this one.

Rule 2: To save crawl resources on endless URLs, use disallow

Faceted navigation is the classic case. Picture a hypermarket’s online store where every color, size, brand, and price filter creates a new URL. Disallowing those parameter patterns keeps crawlers focused on real category and product pages.

If those URLs are already indexed, add noindex first. Wait until they drop out of the index, then add the disallow. Choosing noindex vs disallow in the wrong order leaves the URLs stuck in the index.

Rule 3: To merge duplicates, use canonical

Use a canonical tag for:

  • a product listed under several category paths
  • URLs with UTM tracking parameters
  • printer-friendly versions
  • syndicated copies of your articles

Point each duplicate to the main URL, add a self-referencing canonical on the main URL, and link internally to the canonical version only.

Rule 4: Never stack disallow and noindex on the same URL

This is the most common noindex vs disallow mistake. Google notes that when robots.txt blocks a URL, its crawlers can’t see the noindex tag, so the page can keep appearing. Pick one control based on your goal.

Rule 5: Don’t put noindex and a cross-page canonical on the same page

A noindex says “drop this page.” A canonical pointing elsewhere says “this page is a duplicate of that one.” Together they send mixed signals. For duplicates, use canonical alone. For pages that shouldn’t appear at all, use noindex alone.

Rule 6: For PDFs, images, and video, use headers or robots.txt

For files, the noindex vs disallow decision works a little differently. Google only indexes images and videos that Googlebot is allowed to crawl, so blocking media files in robots.txt keeps them out. For PDFs, send X-Robots-Tag: noindex. If the PDF duplicates an HTML page, a rel=”canonical” HTTP header can tell Googlebot which URL is canonical for the non-HTML file.

Rule 7: Protect truly private content with a password, not a directive

Staging sites, client portals, and internal documents need authentication. Anyone can read robots.txt, so listing secret folders there actually advertises them. To reliably keep a URL out of Google’s results, Google lists password protection, a noindex tag or header, or deleting the page.

Noindex vs disallow decision flowchart for choosing password protection, canonical, robots.txt disallow or noindex

Noindex vs Disallow in AI Search

AI answers add another layer to the noindex vs disallow decision. Google says that to keep a page completely out of Google Search, including AI Overviews and AI Mode, you use the noindex rule. Robots.txt doesn’t solve AI concerns on its own either. Google’s Gary Illyes explained that robots.txt, as RFC 9309 defines it, controls which URLs a crawler may request, not how the content is used once it has been crawled.

Each AI goal has its own control:

Your goal The control to use
Remove a page from Google Search, including AI Overviews Noindex
Stay in Google Search but leave AI Overviews and AI Mode Search Console’s generative AI setting
Stay in Search but limit Gemini training and grounding Disallow Google-Extended in robots.txt
Limit how much of your text AI answers can use nosnippet, max-snippet, or data-nosnippet
Appear in ChatGPT search but opt out of model training Allow OAI-SearchBot, disallow GPTBot

A few details are worth knowing:

  • Google-Extended has no effect on whether your site is included in Google Search and isn’t a ranking signal.
  • Robots meta rules such as nosnippet and max-snippet can stop your content from being used as direct input for AI Overviews and AI Mode.
  • On the OpenAI side, sites that block OAI-SearchBot won’t appear in ChatGPT search answers, and that crawler is controlled separately from GPTBot, which is used for training.

If you’re building AI visibility rather than blocking it, read our guides on AEO vs SEO and AEO vs GEO. Both depend on getting these controls right first.

Common Noindex vs Disallow Mistakes

Most of these errors come from treating noindex vs disallow as interchangeable:

  • “Indexed, though blocked by robots.txt.” Remove the disallow, add noindex, and request a recrawl. Re-add the disallow later only if crawl load is a real problem.
  • Blocking CSS and JavaScript. Google warns against blocking resources if losing them makes your pages harder for its crawler to understand.
  • Canonicals pointing to broken targets. A canonical should point to a live, indexable 200 page, never to a noindexed, redirected, or 404 URL.
  • Staging settings pushed to production. A sitewide noindex or Disallow: / copied from staging can wipe out your traffic. Check robots settings after every launch.
  • Assuming every engine behaves like Google. Google acknowledges that other search engines may interpret noindex differently, so a page could still show up in their results.

How to Check Which Directive Is Working

  • URL Inspection tool: shows whether Google can crawl the page, whether it found a noindex, and which canonical Google chose compared with the one you declared.
  • Page Indexing report: Search Console’s Page Indexing report lets you track the pages where Googlebot found a noindex rule.
  • robots.txt report: confirms the robots.txt file Google fetched most recently.
  • Rank Math: open the post’s Advanced tab to set the robots meta and canonical URL for that page. Set them per page, never sitewide by accident.

Keep in mind that changes take time. Google may take months to revisit a less important page after you add noindex, though you can ask for a recrawl through the URL Inspection tool.

Frequently Asked Questions

Noindex vs disallow: which is better for SEO?

Neither is better in general. They do different jobs. Use noindex to keep a page out of search results. Use disallow to stop bots from crawling URLs you don’t need crawled. Use canonical to combine duplicates into one URL.

Can I use noindex and disallow together?

Not on the same URL. If robots.txt blocks the page, Google never sees the noindex, so the URL can stay indexed. If you need both outcomes, apply noindex first and add the disallow only after the page has dropped out.

Does a canonical tag stop a page from being indexed?

Not directly. It asks Google to show the canonical URL instead of the duplicate. Google usually follows it, but because it’s a hint, Google can pick a different canonical if your other signals disagree.

Does disallow remove a page from AI Overviews?

Not reliably. In the noindex vs disallow comparison for AI search, noindex is what removes a page from Google Search, including AI Overviews. To stay in Search but leave Google’s AI features, use the generative AI setting in Search Console.

How long does noindex take to work?

The page drops out after Google recrawls it and finds the tag. For important pages that can happen within days. For rarely crawled pages it can take much longer. Request a recrawl to speed it up.

Conclusion: Match the Tool to the Job

The noindex vs disallow choice comes down to one question: are you trying to control crawling, indexing, or duplicates? Use disallow for crawling, noindex for indexing, and canonical for duplicates. Never combine them on the same URL in ways that cancel each other out. Before you change anything, run your site through our free AEO audit tool to catch blocked, noindexed, or mis-canonicalized pages that may be costing you visibility in Google and in AI answers.