Noindex vs Disallow: Which One to Use, and in What Order
Noindex controls what shows in search results. Disallow controls what crawlers fetch. Use the wrong one and pages stay in Google for months. Here's the decision table and the safe order for using both.
Noindex keeps a page out of search results. Disallow keeps crawlers from fetching it. They do different jobs, and they clash on the same URL: if robots.txt blocks a page, Google can't see its noindex tag. Use noindex to remove pages from search. Use disallow to save crawling. To do both, noindex first.
This is the most common technical SEO mix-up I see on startup sites. Someone wants a page out of Google, so they add a disallow rule. Months later, the page is still in results, now with no description.
This guide explains what each one does, gives a decision table by goal, shows the safe order for using both, and works through a filter URL cleanup with real-feeling numbers.
Key takeaways
- Noindex controls results. It tells search engines not to show a page.
- Disallow controls crawling. It tells crawlers not to fetch a URL. The URL can still show up.
- They cancel each other out. A disallowed page's noindex tag is never read.
- Order matters. Noindex first, wait for the drop, then disallow if you need to save crawling.
- Secrets need a password. Neither rule keeps private pages private.
What does noindex do?
A noindex rule tells search engines not to show a page in results. Google's noindex docs give two ways to set it.
- A meta tag in the page head:
<meta name="robots" content="noindex"> - An HTTP header:
X-Robots-Tag: noindex
The header is the one to use for files that have no HTML head, like PDFs. Google says that when it reads either one, it will drop the page from results, even if other sites link to it.
The catch is in the same doc. Google has to crawl the page to read the rule. If robots.txt blocks the URL, "the crawler will never see the noindex rule." Google also warns it "may take months" to revisit some pages.
What does disallow do?
A disallow rule lives in your robots.txt file. It tells crawlers not to fetch certain paths.
User-agent: *
Disallow: /search
Disallow: /*?filter=
Google's introduction to robots.txt says the file "is used primarily to manage crawler traffic to your site." It also says, in plain words, that robots.txt "is not a mechanism for keeping a web page out of Google." A blocked URL can still show up in results if other pages link to it. It just shows with no description.
So disallow saves crawling. It doesn't hide anything. The robots.txt guide covers the file itself: syntax, wildcards, testing and AI crawlers. To draft a clean file, try the free robots.txt generator.
Noindex vs disallow: what's the difference?
Here's the side by side.


| Noindex | Disallow | |
|---|---|---|
| Where it lives | Meta tag or HTTP header on the page | Robots.txt at the site root |
| What it controls | Indexing: what shows in results | Crawling: what gets fetched |
| Does Google fetch the page? | Yes, it must, to read the tag | No |
| Can the URL still show in results? | No, once Google reads the tag | Yes, if other pages link to it |
| Saves crawl time? | No | Yes |
| Works on PDFs and images? | Yes, with the header | Yes |
| Keeps content private? | No | No |
The one-line version: noindex is about what people see in Google. Disallow is about what bots spend time on.
Which one should you use?
Start from the goal, not the tool.
| Your goal | Use | Not this |
|---|---|---|
| Keep a live page out of results | Noindex, crawling allowed | Disallow |
| Stop bots wasting time on endless URLs | Disallow | Noindex alone |
| Remove pages that are already indexed and wasteful | Noindex first, then disallow | Disallow first |
| Point duplicates to one main page | Canonical tag or redirect | Noindex or disallow |
| Keep a staging site or private files out | Password protection | Either rule alone |
| Hide a URL from results today | Removals tool, plus a lasting fix | Waiting |
A few notes on the rows.
Thank-you pages, internal search and paid landing pages usually want noindex. They need to load for people. They don't need to rank.
Duplicates usually want a canonical, not noindex. The canonical tags guide and the guide to duplicate content cover when each one fits.
Staging sites want a password. Google's robots.txt intro suggests password protection or noindex for pages you need out of search. On staging, a password is the only one you can trust. The site migration guide covers what happens when a staging rule ships to the live site.
How do you use noindex and disallow together?
Sometimes you need both. The classic case is a pile of low-value URLs that are already indexed and also eat crawl time. Filter pages, sort orders and old tag archives are common.
Here's the safe order.
- Remove any disallow rule on those URLs. Google can't read a noindex it can't fetch.
- Add noindex. Use the meta tag on pages and the header on files.
- Ask for a recrawl. Request it in Search Console with URL Inspection for the most important URLs. Keep them in the sitemap for now so Google comes back.
- Watch the Page indexing report. Google's noindex doc says this report lists pages where Google found a noindex rule. The Search Console guide shows where to find it.
- Once they've dropped, add the disallow rule. Then take them out of the sitemap.
Step 5 is optional. Do it only if crawl waste is a real problem. Google's crawl budget guide is written for large sites, roughly 1 million or more unique pages, or 10,000 or more pages that change daily. If your site is smaller, noindex alone is often fine.
For that large-site case, the same guide is blunt. It says "Don't use noindex" to manage crawling, because Google "will still request, but then drop the page." That's wasted crawl time. Use robots.txt to block pages you don't want crawled at all. The crawl budget guide covers how to tell if crawl budget is really your problem.
What if you need it gone today?
Use the Search Console Removals tool. Google's Removals tool help page says a temporary removal lasts "about six months." It hides the URL from results but doesn't stop crawling. So it buys time. It isn't the fix. Pair it with noindex, a password or deletion. The same page also says not to use robots.txt as a way to block a page from results.
Worked example: cleaning up filter URLs
This is a worked example with assumed numbers. Swap in yours.


Say a B2B marketplace has 9,000 real product and category pages. Its filters make URLs like ?color=red&size=large. Search Console shows 40,000 filter URLs in Google, most with thin, near-copy content.
The server logs show Googlebot fetches about 20,000 URLs a day. About 12,000 of them, or 60%, are filter URLs. Only 8,000, or 40%, are real pages. New product pages wait days to get crawled.
The team's first idea is to disallow /*? in robots.txt. That would stop the crawling. But the 40,000 filter URLs are already indexed. Blocked, they'd stay in Google with no description, maybe for a long time.
So they follow the order instead. They add noindex to every filter URL and leave crawling open. Over the next few weeks, the Page indexing report shows filter URLs moving into the noindex group. Once most are gone, they add the disallow rule.
How do you check which rule a page has?
Before you change anything, find out what each URL is doing today. It takes five minutes per pattern.
- Read the robots.txt file. Open
/robots.txton your domain and look for a disallow line that matches the path. - Check the page head. View the source and search for
noindex. Some plugins add it without telling you. - Check the header. Run a header request from the command line to see if the server sends a noindex header.
- Ask Google. URL Inspection in Search Console shows whether Google can crawl the URL and whether it's in the index.
curl -sI https://example.com/guide.pdf | grep -i x-robots-tag
Write the answer down for each pattern: crawl allowed or blocked, noindex yes or no. Most of the problems in this guide show up as soon as you see the two side by side. A blocked URL that's also noindexed has a tag Google never reads. A blocked URL that still ranks is the mix-up this guide is about.
What are the common mistakes?
Disallow to deindex. The big one. The page stays in results, the tag goes unread and nothing changes.
Noindex in robots.txt. Google's noindex doc lists two ways to set the rule: the meta tag and the header. A noindex line in robots.txt is not one of them.
Noindex on pages you link everywhere. If your nav links to a noindexed page, you're sending visitors and crawlers to a page you told Google to drop. That's fine for a login page. It's odd for a product page.
Noindex and canonical on the same page. One says "drop me." The other says "treat me as a copy of that page." Pick one.
Forgetting the sitemap. A sitemap lists pages you want in search. Pull noindexed and disallowed URLs out once the cleanup is done.
Trusting either rule for privacy. Both are public. Anyone can read your robots.txt and see the paths you're hiding.
If you want a second pair of eyes on your rules, my SEO and AEO service audits robots.txt, noindex and canonicals together, because they only make sense as a set.
My take: noindex is for people, disallow is for bots
I'd keep the two rules in separate drawers. Noindex answers one question: should a person ever find this in Google? Disallow answers another: should a bot ever spend time here?
Most small sites only need noindex. Disallow earns its place on big sites with endless URLs, and it should come second, after the index is clean.
If you remember one thing, make it the order. Noindex first. Disallow later. Password for anything secret.
FAQ
What is the difference between noindex and disallow?
Noindex is a tag or header on a page that tells search engines not to show it in results. Disallow is a rule in robots.txt that tells crawlers not to fetch a URL at all. Noindex controls the index. Disallow controls the crawl. A page can be blocked from crawling and still show up in results.
Can I use noindex and disallow on the same page?
Not at the same time if you want the page out of Google. If robots.txt blocks the URL, Google can't fetch the page, so it never sees the noindex tag. Use noindex first and keep crawling allowed. Once the page has dropped out of results, you can add a disallow rule if crawl waste matters.
Does disallow remove a page from Google?
No. Google's docs say robots.txt is not a way to keep a page out of Google. A blocked URL can still be indexed if other pages link to it, and it may show with no description. To remove a page, allow crawling and add noindex, put it behind a password, or delete it.
How long does noindex take to work?
It works the next time Google crawls the page. Google says that can take months for some pages. You can speed it up by requesting a recrawl with the URL Inspection tool in Search Console. For an urgent case, the Removals tool hides a URL for about six months while the noindex takes hold.
Should I noindex or disallow faceted filter URLs?
If the filter pages are already in Google, start with noindex so they drop out. Once they're gone, disallow the filter patterns in robots.txt so crawlers stop spending time on them. On a new site with no indexed filter pages, a disallow rule from day one is usually enough.
Should I use noindex or a canonical tag for duplicate pages?
Use a canonical tag when the duplicate is a version of another page, like a sorted list or a URL with tracking tags. It points Google to the main version and can pool signals. Use noindex when the page should never appear in search at all, like a thank-you page or an internal search result.