Noindex, nofollow and robots.txt do three different jobs: noindex keeps a page out of search results, robots.txt controls which addresses crawlers may fetch, and nofollow labels a link you do not vouch for. Pick by the result you want. To hide a page from search, use noindex and let it be crawled. To save crawling on a section, use robots.txt. To label a paid or untrusted link, use a rel value on that link.
Which one should you use? #
| You want to | Use |
|---|---|
| Keep a page out of search results | noindex (meta tag or X-Robots-Tag header), and let it be crawled |
| Stop crawlers fetching a section | robots.txt Disallow |
| Label a paid or untrusted link | rel=”sponsored”, “ugc” or “nofollow” on that link |
| Remove a page that is gone for good | A 404 or 410 status. Read 404 and 410 |
| Keep a PDF or image out of results | An X-Robots-Tag header on the file |
What does noindex do? #
Google’s robots meta tag page defines it: “Do not show this page, media, or resource in search results.” Google’s noindex guide says there are “two ways to implement noindex: as a <meta> tag and as an HTTP response header”:
<meta name="robots" content="noindex">
X-Robots-Tag: noindex
Use name="googlebot" instead of robots to aim at Google only. The page still gets crawled; it just stays out of the search engine index. Google warns that “some search engines might interpret the noindex rule differently”.
What does robots.txt do? #
Google’s introduction to robots.txt says it is “used mainly to avoid overloading your site with requests”. It is “not a mechanism for keeping a web page out of Google.” A blocked page’s URL “can still appear in search results, but the search result won’t have a description.” Google adds that a disallowed page “can still be indexed if linked to from other sites.” The standard, RFC 9309, says the rules “are not a form of access authorization.” It is a request to polite crawlers, not a lock.
What does nofollow do? #
It works at two levels. On one link, Google’s outbound links guide lists three values. Use sponsored for adverts and paid placements. Use ugc for comments and forum posts. Use nofollow “when other values don’t apply”. Google says links marked this way “will generally not be followed”. In a robots meta tag, nofollow means “Do not follow the links on this page”, every link at once. Read nofollow and sponsored and UGC links.
Why does the order matter? #
Because robots.txt is read first. Google says if robots.txt blocks a page, “the crawler will never see the noindex rule, and the page can still appear in search results.” Google’s meta tag page says the same of headers: robots meta tags and X-Robots-Tag “are discovered when a URL is crawled.” So never block a page you want to noindex. In Google Search Console this mix-up shows as indexed, though blocked by robots.txt.
Why does it matter for search? #
Mixing them up is a common way to hide a page you wanted found, or keep showing one you wanted gone. A stray noindex can take a money page out of results overnight. A wide Disallow can stop Google reading your new pages, or the scripts and styles it needs. Google says not to block resources a crawler needs to understand the page. Wasted crawling on filter and search pages eats crawl budget. Read technical SEO.
Why does it matter for AI answers? #
AI crawlers read robots.txt too, each under its own name, such as GPTBot or ClaudeBot. Robots.txt is how most AI opt-outs work, including Google-Extended. Google’s page on AI features and your website says that to be a supporting link in an AI Overview or AI Mode, “a page must be indexed and eligible to be shown in Google Search with a snippet.” So noindex takes a page out of those answers too. To limit what Search shows without leaving it, Google points to nosnippet, data-nosnippet and max-snippet. Read which AI crawlers to allow, and which to block.
What if robots.txt itself fails? #
The file’s own status code matters. Google’s robots.txt spec says its crawlers “treat all 4xx errors, except 429, as if a valid robots.txt file didn’t exist”. That means no rules at all. A server error is worse: Google stops crawling for the first 12 hours, then uses its last good copy for up to 30 days. Google usually caches the file for up to 24 hours, and reads only the first 500 KiB. Read HTTP status code.
Other robots meta rules worth knowing #
| Rule | What Google says it does |
|---|---|
none |
Equivalent to noindex, nofollow |
nosnippet |
No text snippet or video preview in results |
max-snippet:[number] |
Snippet limited to that many characters; 0 means none |
noimageindex |
Do not index images on this page |
unavailable_after:[date] |
Do not show the page after that date and time |
Google says if rules conflict, the more restrictive one applies.
Worked example: a law firm’s search pages #
A law firm finds hundreds of its internal search result addresses, such as /search?q=divorce, listed in Google. These are URL parameter pages. Its first idea is to add this to robots.txt:
User-agent: *
Disallow: /search
That stops crawling, but it does not remove what Google already knows. Google says a blocked page’s URL “can still appear in search results”, just without a description. The order that works:
- Add
<meta name="robots" content="noindex">to the search results template, and leave/searchopen in robots.txt. - Let Google recrawl the addresses and drop them. Google says “it may take months for Googlebot to revisit a page”. The URL Inspection tool shows what Googlebot received, and can request a recrawl.
- Only once they have gone, if crawling is still heavy, add the Disallow line.
Common mistakes #
- Writing
noindexinside robots.txt. Google stopped honouring it on 1 September 2019. Its spec lists only user-agent, allow, disallow and sitemap. - Blocking a page in robots.txt and adding noindex to it at the same time, so Google never reads the noindex.
- Using nofollow on internal links to hide a page. Google says the linked pages may still be found other ways; for your own pages it points to robots.txt or noindex. Read internal linking.
- Leaving a test site’s sitewide noindex in place when the site goes live.
- Putting a noindexed page in the XML sitemap, which sends Google mixed signals.
- Using noindex when the real fix is a canonical tag for duplicate content.
- Treating robots.txt as security. Private pages need a login.
How to check it #
- Read your robots.txt with our robots.txt checker, and make sure it does not block pages that carry noindex.
- Check a page’s robots meta tag with our meta tag checker, and the X-Robots-Tag header with our HTTP header checker. Read meta tag.
- Check all four at once: noindex, robots, canonical and status. Our “Can Google index this page?” checker does this, and our Canonical Tag Checker checks canonicals in detail.
- Check your sitemap lists only pages you want indexed, with our sitemap checker.
- Check the rel values on a page’s links with the link rel checker, and find dead links with our broken link checker.
- Check a removed page answers 404 or 410, not a soft 404, with our redirect checker.
- See which AI crawlers your rules let in with our AI bot checker.
- Find filter links that make endless pages with our Crawl Trap Checker.
- In Google Search Console, the URL Inspection tool shows whether Google could crawl the page and what it saw. Read crawled, currently not indexed for a different cause.
- Compare your rules with a rival’s in Compare Two Websites.
- Over time, the index coverage monitor, the crawl trap guard and the sponsored link tracker are in URSY Pro, opening in stages.
What URSY.com counts #
We count every request, so a bot that reads a noindexed page still shows up: noindex changes what search shows, not who visits. A bot reading the same page 10 times is 10 requests. Query strings are never stored, only the path, so /search?q=divorce is counted as /search. The full rules are on our methodology page.
Questions #
Can I use noindex and robots.txt on the same page? #
Not if you want the noindex to work. Google must crawl the page to see it.
How long does noindex take to work? #
Until Google recrawls the page. Google says that can take months. Request a recrawl with URL Inspection to speed it up.
Does nofollow stop a page being indexed? #
No. It is about links. A page linked with nofollow can still be found other ways and indexed.
Do other search engines follow the same rules? #
Mostly, but Google warns some may read noindex differently, and robots.txt rules “may not be supported by all search engines”.
How do I remove a page from Google fast? #
Google’s 2019 note points to the Search Console removal tool for a temporary removal, while noindex or a 404 does the permanent job.
Related words #
- Noindex
- robots.txt
- Nofollow
- X-Robots-Tag
- Indexed, though blocked by robots.txt
- Sponsored and UGC links
- Canonical tag
- Crawl budget
- URL inspection
Sources #
- Google Search Central, Introduction to robots.txt, checked 24 November 2026
- Google Search Central, Block Search indexing with noindex, checked 24 November 2026
- Google Search Central, Qualify your outbound links to Google, checked 24 November 2026
- Google Search Central, Robots meta tag, data-nosnippet and X-Robots-Tag specifications, checked 24 November 2026
- Google Search Central, How Google interprets the robots.txt specification, checked 24 November 2026
- Google Search Central, AI features and your website, checked 24 November 2026
- Google Search Central Blog, A note on unsupported rules in robots.txt (2 July 2019), checked 24 November 2026
- IETF, RFC 9309: Robots Exclusion Protocol, checked 24 November 2026
Updated 24 November 2026 by URSY.com.
Cite this page: Noindex vs nofollow vs robots.txt: which one to use. URSY. Updated 26 November 2026. https://ursy.com/wiki/noindex-nofollow-or-robots-txt/ · Section links
Tools for this
- LiveRobots.txt Checker + Generatortest any address against your rules, or write new onesRun the check →
- LiveAI Bot Checkerwhich AI bots your robots.txt lets inRun the check →
- LiveCan Google index this page? (noindex, robots, canonical, status)Run the check →
- LiveVerify an AI Botis it really GPTBot? IP, published lists and user agentRun the check →
- Livellms.txt Checker + Generatorcheck your llms.txt, or write llms.txt, llms-full.txt and llms.jsonRun the check →
- LiveAI Consistency Checkerpage, schema, llms.txt and feeds state the same facts?Run the check →
- ProBot rules managerAllow / block each bot: robots.txt + firewall rules written for youIn URSY Pro →
- Prollms.txt managerWrite, check and watch your llms.txtIn URSY Pro →
- ProAI training opt-out managerAllow or block each AI, one switch eachIn URSY Pro →