Robots.txt and XML Sitemap for Small Business: A Plain-English Guide
SEO

Robots.txt and XML Sitemap for Small Business: A Plain-English Guide

robots.txt tells crawlers which URLs they may visit; an XML sitemap lists the ones you want found. What Google documents, and how to check both.

What is robots.txt? It's a short text file at the root of your site that tells crawlers which URLs they may visit. An XML sitemap does a different job: it lists the URLs you want found. Neither one guarantees indexing. To keep a page out of Google, use noindex and leave the page crawlable.

We checked Google's Search Central documentation, Search Console Help and RFC 9309 on November 30, 2026. Google's sitemap pages were last updated on November 27, 2026, and its robots.txt specification on October 23, 2026, so wording and labels can shift. This guide stays at the level of the two files. For the rest of the site, see our broader technical SEO checklist.

What robots.txt and an XML sitemap do, and what neither does

Our framing: for these two files, three steps matter. Discovery is when Google learns a URL exists, for example from a link or a sitemap. Crawling is when Googlebot fetches the page. Indexing is when Google stores what it found and decides whether the page can appear in results. Each file works at a different step, and a lot of the confusion around them comes from expecting a file that acts at one step to control what happens at another.

Start with robots.txt vs sitemap. Google's introduction to robots.txt says the file is used "mainly to avoid overloading your site with requests" and that it is "not a mechanism for keeping a web page out of Google." Block a page there and its URL can still show up in results, only without a description. A disallowed page can even be indexed if other sites link to it.

A sitemap points the other way. Per Google's sitemap overview, it's a file that describes your pages, videos and other files, plus how they connect to each other. It helps discovery and orders nothing.

Then there's noindex, the job many people expect robots.txt to do; the graphic below shows where it acts. One exception runs the other way: for image, video and audio files, Google says robots.txt can keep them out of Search results. Its content-control page gives the reason for images and video: Google only indexes the ones its crawler is allowed to fetch.

Where each file acts

Discovery, Crawling, Indexing: Where Each File Acts

Google finds a URL, fetches it, then decides whether to index it. Each control works at one of those stages, and only one of them speaks to indexing.

Stage 1

Discovery

XML sitemap

Lists the URLs you want Google to find. Google: a sitemap "helps search engines discover URLs on your site."

What it can't do

Promise a crawl or an index. Google says it doesn't guarantee that all items "will be crawled and indexed."

Stage 2

Crawling

robots.txt

Acts as the gate. Google: it tells crawlers "which URLs the crawler can access on your site."

What it can't do

Keep a page out of Google. A blocked URL can still show in results, just without a description.

Stage 3

Indexing

noindex

A meta tag in the page or an HTTP header. When Google crawls the page and reads it, the page is dropped from results.

What it needs

A page Google can crawl. The rule sits inside the page, so Google has to fetch the page to see it.

The clash to avoid: robots.txt block plus noindex

If robots.txt blocks the page, Google says the crawler "will never see the noindex rule," and the page can still appear in results. To keep a page out, let Google crawl it and use noindex.

Our reading

None of the three guarantees indexing

A sitemap is a hint, robots.txt controls access, and noindex only removes. Google's own requirements page adds that even a page meeting the basics isn't guaranteed a place in the index.

Sources: Google Search Central, Learn about sitemaps (last updated 2026-11-27) • Introduction to robots.txt (2025-12-10) • Block Search indexing with noindex (2025-12-10) • Google Search technical requirements (2025-12-18) • checked November 30, 2026
Created by Arfadia • arfadia.com/blog

Table 1. robots.txt vs XML sitemap vs noindex

robots.txtXML sitemapnoindex
What it tells GoogleWhich URLs crawlers may accessWhich URLs you want foundThat a page should not be indexed
Where it livesRoot of each hostAnywhere, but it only covers URLs in its folder and below; root recommendedIn the page or its HTTP header
Keeps a page out of Search?No (URL can still appear)NoYes, if Google can crawl the page
Guarantees crawling or indexing?NoNoNot applicable
Required for every site?No (none is fine)No (small, well-linked sites may not need one)Only for pages you want out

What Google's documentation says about robots.txt

Google's crawling documentation spreads the rules across several pages. Here's what they say, minus the parts written for very large sites.

Name, location and format

Name it robots.txt, exactly, and keep one per host at that host's root. Google's guide to writing the file is specific: for www.example.com it lives at www.example.com/robots.txt, and a copy in a subfolder such as /pages/robots.txt doesn't count.

Scope trips people up. A robots.txt file covers only the protocol, host and port where it's posted. Rules at https://example.com/robots.txt don't reach http://example.com or a subdomain like shop.example.com.

Save it as plain UTF-8 text. Google warns against word processors, which can slip in curly quotes and other stray characters that confuse crawlers. If your site runs on a hosted platform, you may not be able to edit the file at all. In that case, look in the platform's own help pages for a search visibility or search engine setting instead.

The four rules Google reads

Google's robots.txt specification lists four fields it supports: user-agent, allow, disallow and sitemap. That's the whole list. Crawl-delay isn't on it, and Google states plainly that the field isn't supported.

  • user-agent names the crawler a group of rules applies to. Google's guide to writing the file adds that an asterisk matches every crawler except its AdsBot crawlers, which have to be named.
  • disallow gives a path the crawler should not fetch.
  • allow gives a path it may fetch, mainly to override a disallow for a page or subfolder.
  • sitemap gives the full URL of a sitemap. It isn't tied to any user-agent and you can list several. Per Google's sitemap guide, the line can go anywhere in the file.

A rule with no path is ignored. And with no rules at all, everything is open, because crawling has no restrictions by default. When an allow and a disallow both match a URL, Google uses the most specific rule, based on path length. When rules still conflict, including rules with wildcards, Google uses the least restrictive one.

Here's a detail that's easy to miss. While building groups, the parser ignores every line except user-agent, allow and disallow. So a User-agent line followed only by a Sitemap line gets folded into the next group, and that group's rules apply to it too. In the spec's own example, a disallow-everything rule ends up applying to two crawlers instead of one, a mistake that's hard to spot by eye.

Two more points. Respectable crawlers follow the rules; other crawlers might not. And don't block the CSS, JavaScript or images Google needs to understand a page. Google won't render JavaScript from blocked files, and its troubleshooting page says to block only non-critical resources. Media is the exception covered above, and our notes on image SEO go into how pictures get found.

What happens if the file is missing or broken

Google decides how to treat robots.txt from the HTTP status code it gets back. Here's how the specification lays it out:

Table 2. How Google treats your robots.txt response

What Google gets when it requests robots.txtWhat Google doesWhat it means for your site
2xx (success)Processes the file as servedYour rules apply as written
3xx (redirect)Follows at least five redirect hops, then treats the file as a 404A long redirect chain can leave you with no rules in effect
4xx (except 429)Acts as if no valid robots.txt existsNo crawl restrictions. A missing file is not an error
5xx (server error)Stops crawling for the first 12 hours; for the next 30 days uses the last good copy, or assumes no restrictions if it has none; after 30 days, depends on whether the site is generally availableA broken server can pause crawling of the whole site
DNS or network failureTreated as a server errorSame handling as the 5xx row

So a missing file is fine, while a file that throws server errors is worse than no file. Google generally caches robots.txt for up to 24 hours, sometimes longer when it can't refresh, and it reads only the first 500 KiB. Anything past that limit is ignored.

What Google's documentation says about XML sitemaps

Do I need a sitemap? Google's small-site test

Google's own answer is fairly relaxed. If your pages are properly linked, it says, Google can usually find most of them on its own, because it reaches new pages by following internal links from pages it already knows. Then it gives a rough test.

Signs you can probably skip one:

  • Your site is "small," which Google puts at about 500 pages or fewer. Only pages you want in search results count.
  • Every important page can be reached by following links from your home page.
  • You don't have many videos, images or news pages you want shown in results.

Signs one would help:

  • Your site is large, so some pages may not be linked from anywhere else on it.
  • Your site is new and few other sites link to it yet.
  • You publish a lot of video or images, or your pages appear in Google News.

The same page also says, just before that test: "in most cases, your site will benefit from having a sitemap." Both statements stand. If you use a website platform, Google says it has likely made a sitemap available already, with nothing for you to do.

Format is your call. Per Google's guide to building a sitemap, it accepts XML, RSS or Atom feeds, and plain text lists, with no preference. An HTML sitemap page helps visitors but can't be submitted in Search Console.

Also worth knowing, from Google's sitemap overview: dropping a URL from the sitemap won't keep Google from crawling or indexing it when links lead there.

What goes in and what stays out

Google's rule of thumb is short: include the URLs you want to see in search results. Use full, absolute addresses, and when the same content lives at several URLs, list only the one you prefer, the canonical version.

Table 3. What to put in your sitemap

URL typePut it in the sitemap?Basis
Preferred page you want in search resultsYesGoogle documentation
Duplicate version of the same contentNo, list the preferred URLGoogle documentation
URL that redirectsNo, list the destinationGoogle documentation (URLs not followed)
Deleted page (404)NoOur reading of Google's documentation (Google indexes pages served with HTTP 200)
Page with noindexNoGoogle documentation (include URLs you want in search; error spikes)
Page blocked by robots.txtNoGoogle documentation (error spikes; blocked-content error)
Login-only pageNoGoogle documentation (error spikes)

Why the last three rows matter: Google's Page indexing help lists one cause of sudden error spikes as a sitemap that includes URLs blocked by robots.txt, marked noindex, or hidden behind a login. You're asking Google to look at pages you've also told it to skip.

lastmod, priority and changefreq

Skip two of the three tags. Priority and changefreq values are ignored by Google, full stop. The lastmod tag is different. Google uses it when it's consistently and verifiably accurate, for example when it matches the page's real last change.

Accurate means significant changes only. Edits to the main text, structured data or links count. A new copyright year doesn't, and a 2023 Search Central blog post adds that small edits to sidebar or footer text don't either. If your system can't tell when a page really changed, such as a category page that just lists other pages, it's fine to leave lastmod out for that page. That same post announced that the sitemap "ping" endpoint would stop working within six months, and the page now carries a note that the deprecation is complete, so there's nothing to set up there.

Size limits most small sites never hit

One sitemap can hold up to 50,000 URLs or 50MB uncompressed, whichever comes first. Past that, you split it into several files and can list them in a sitemap index. Our reading: a site in Google's "small" range of about 500 pages sits far below either limit.

Google recommends the site root as the location, because unless you submit it in Search Console, a sitemap covers only the folder it sits in and the folders below. It also requires UTF-8 encoding and leaves the file name up to you. URL order inside the file doesn't matter to Google.

How to check and fix robots.txt and your sitemap: 8 steps

Keep your site open in another tab. Steps 1 to 5 are read-only.

1. Pick the exact site version you're checking

Write down the version people actually reach: https or http, with or without www, and any subdomain such as shop. Robots.txt rules apply per protocol and host, so if you check http://example.com while customers land on https://www.example.com, you are reading a file that may not govern the pages they actually see.

2. Open yoursite/robots.txt in a private window

Type your domain followed by /robots.txt, using a private browsing window so you see the public version. If you get a 404, that's allowed; Google treats it as no restrictions. If you see a page of rules, move to step 3.

3. Read it for rules that block what you want found

Look for a disallow under User-agent: * that covers pages you want in search, and for blocked folders holding the CSS, scripts or images your pages depend on. Remember the tie-breaker: the most specific rule, by path length, wins, and when rules still conflict, the least restrictive one applies.

A simple, safe-looking file follows the pattern in Google's own example. Treat it as a sketch, not a template:

# Illustration only. Replace www.example.com with your own domain.
User-agent: *
Allow: /

Sitemap: https://www.example.com/sitemap.xml

Before copying anything like it, read these four points:

  • Disallow: / under User-agent: * tells compliant crawlers not to crawl any page on the site. Google notes the asterisk doesn't cover its AdsBot crawlers.
  • Disallow: with nothing after it is ignored, so it allows everything. The two lines differ by one character.
  • Having no robots.txt at all is also fine, according to Google.
  • A User-agent line followed only by a Sitemap line can be merged with the next group. Our rule: don't put the Sitemap: line directly under a User-agent line that has no rules of its own.

Read the slash

One Character Can Block Your Whole Site

Three robots.txt groups that look almost the same. The first disallows crawling of the entire site. The other two allow all of it.

Illustration only

User-agent: * Disallow: /

Blocks crawling of the whole site

Google lists this as the rule to disallow crawling of the entire site. URLs can still end up indexed without being crawled. Google also notes it doesn't match its AdsBot crawlers, which must be named.

Illustration only

User-agent: * Disallow:

Empty, so ignored

Crawlers ignore a rule with no path. Google calls this "functionally equivalent to having no robots.txt file at all."

Illustration only

User-agent: * Allow: /

Allows everything

Same result as the empty Disallow. Google's own sample file uses this pattern for all other crawlers.

Sitemap line: full URL, anywhere in the file

Sitemap: https://www.example.com/sitemap.xml

Write the complete address, protocol included. You can list more than one sitemap, and the line isn't tied to any crawler.

One catch in Google's spec

A User-agent line followed only by a Sitemap line is read as part of the next group, so that group's rules apply to it too. Our rule: don't put a Sitemap line directly under a User-agent line that has no rules of its own.

No robots.txt file: fine, per Google

You don't need one. Google's robots.txt report puts it plainly: "Not having a robots.txt file is fine."

What Google does

When the file returns a 404, Google treats it as if no robots.txt exists and assumes there are no crawl restrictions.

Read the line after User-agent: * first

Disallow: / and Disallow: differ by a single slash. One disallows crawling of the entire site, the other allows all of it.

Examples are illustrations, not a template from Google. www.example.com is a placeholder. • Sources: Google Crawling Infrastructure, How Google interprets the robots.txt specification (last updated 2026-10-23), Useful robots.txt rules (2026-06-12), How to write and submit a robots.txt file (2025-11-21) • Google Search Central, Build and submit a sitemap (2026-11-27) • Search Console Help, robots.txt report (no last-updated date shown) • checked November 30, 2026
Created by Arfadia • arfadia.com/blog

4. Find your sitemap

Check three places. The Sitemap line in your robots.txt, if there is one. Your website platform's settings or help pages. And the Sitemaps report in Search Console, which lists any sitemap someone already submitted through the report or the API. Don't assume it's called sitemap.xml, since Google lets you name the file anything.

5. Open the sitemap and check what it lists

Scan for the URL types in Table 3: redirects, deleted pages, noindex pages, login pages, http versions on an https site. Every address should be absolute. A minimal sitemap looks like this:

Illustration only. The URLs and date are placeholders.

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://www.example.com/</loc>
  </url>
  <url>
    <loc>https://www.example.com/services/</loc>
    <lastmod>2026-11-02</lastmod>
  </url>
</urlset>

Each loc is a full URL. As for lastmod, it's optional and only worth having if the date is right. There's no priority or changefreq here, because Google ignores both.

6. Make changes through your platform settings or a developer

You may never need to touch these files by hand. Google suggests writing a sitemap manually only when it has fewer than a few dozen URLs, and letting your website system generate anything bigger. If you do edit robots.txt yourself, the process is download, edit as UTF-8 text, and upload to the root. When a developer handles it, give them a short checklist:

  • Correct host and subdomain for each robots.txt file
  • No rule that blocks the whole site by accident
  • CSS, JavaScript and images needed to read the page are not blocked
  • Sitemap lists canonical, absolute URLs only
  • No redirects or 404 pages in the sitemap
  • lastmod dates match real content changes, or are left out
  • Both files rechecked after the release goes live

7. Add the Sitemap line and submit the sitemap in Search Console

Here's how to add a sitemap to robots.txt: add one line, Sitemap: followed by the full URL, placed as step 3 describes. You don't need to submit robots.txt itself. Google finds and uses it on its own.

For the sitemap, Search Console is the second route. Submitting only tells Google where the file is; you can't upload it. You'll need owner permission on the property, and without it, the robots.txt line does the job. Before submitting, run a live test of the sitemap URL in URL Inspection and confirm Page fetch shows "Successful." Then paste it into Add a new sitemap. Google also accepts sitemaps through the Search Console API, a route meant for programmatic submission.

8. Recheck the reports after the change

Wait, then look. The robots.txt report has a Request a recrawl option for urgent fixes, and the timings Google gives for each process, without promises, are listed in the next section.

How to read the results in Search Console

Four places in Search Console cover these files. New to the tool? Start with our notes on reading Search Console, then come back here.

The robots.txt report works only for Domain properties or URL-prefix properties without a path, so a property set up for a single folder, such as example.com/blog/, won't offer it at all. In a Domain property, it shows robots.txt files for the top 20 hosts and checks both the http and https version of each. An error stops that rule from being used. A warning doesn't.

The Sitemaps report lists only sitemaps submitted through the report or the API. A sitemap that Google found through your robots.txt line won't appear there, even though Google can use it. You usually only need to resubmit after big changes, or after fixing a sitemap Google couldn't fetch. Also know that removing a sitemap from the report doesn't make Google forget it.

URL Inspection shows whether a page can be crawled, and its Sitemaps field lists sitemaps from the report or your robots.txt that point to that URL. Page indexing has a sitemap filter. "All submitted pages" covers sitemaps from both the report and robots.txt.

Table 4. Reading the Search Console results

Report or fieldWhat you might seeWhat it meansWhat to check next
robots.txt reportNot Fetched - Not found (404)No file at that URL; Google can crawl all URLsFine if intended. If you posted a file, inspect the URL for availability problems
robots.txt reportNot Fetched - Any other reasonSome other problem occurred while requesting the fileOpen the file in a browser; see Table 2 for server and network errors
robots.txt reportFetched, with errors or warningsFile found; an error stops that rule from being used, a warning does notOpen the fetched version and fix the flagged lines
Sitemaps reportSuccessFetched and processed without errorsNot an indexing result. Filter Page indexing by this sitemap
Sitemaps reportHas errors (or Sitemap had X errors)Fetched, but some entries have errorsClick the sitemap row for the error list
Sitemaps reportCouldn't fetchGoogle couldn't retrieve the filerobots.txt block, wrong URL (404), server unavailable, an unresolved manual action, or low crawl demand
Sitemaps reportDiscovered pagesURLs read from the sitemapNot a count of indexed pages
URL InspectionCrawl allowed? = NoA robots.txt rule blocks the pageRemove the rule if you want the page crawled
URL InspectionIndexing allowed? = Yes while crawl is blockedGoogle can't see a noindex on a blocked pageUnblock first if you rely on noindex
Page indexingIndexed, though blocked by robots.txtIndexed from information on other pages, without a crawlTo keep it out, remove the block and add noindex

Watch the "Indexing allowed?" row. Google's help page says it "will always be "Yes"" on a page blocked by robots.txt. That yes is not a green light.

Sitemap error labels a small site may meet include "URLs not followed" (swap redirecting URLs for their destinations), "URL not allowed", "Path mismatch" (a www difference), "Invalid date", "Invalid URL", "Parsing error" (often an unescaped character such as &) and "Sitemap contains urls which are blocked by robots.txt".

Don't chase 100% coverage, either. Page indexing help sets the goal as getting the canonical URL of each important page into the index, and nothing more. As for timing, Google gives these figures without guarantees:

  • robots.txt: generally cached for up to 24 hours
  • A submitted sitemap: "should be fetched immediately"; crawling its URLs "can take some time"
  • A requested crawl: "Crawling can take anywhere from a few days to a few weeks." Index requests also have a daily limit
  • Validating a fix in Page indexing: "typically takes up to about two weeks, but in some cases can take much longer"
  • After adding noindex: "it may take months for Googlebot to revisit a page"

Keeping a page out of Google: use noindex, not robots.txt

If the goal is "don't show this page in Google," robots.txt is the wrong tool. Use noindex. Writing noindex inside robots.txt doesn't work either, by our reading of the spec, since it isn't one of the four fields Google reads. On a web page it goes in a robots meta tag, and for PDFs, video and image files you can use an X-Robots-Tag HTTP header instead.

Order is the catch. According to Google's noindex documentation, the rule only works if the page isn't blocked by robots.txt. Block it, and the crawler never sees the noindex, so the page can stay in results. The fix for a page that's blocked and still showing:

  1. Remove the robots.txt rule that blocks it.
  2. Add noindex to the page or its header.
  3. Let Google crawl it. A revisit can take months for some pages; you can request a crawl in URL Inspection.

For anything confidential, neither file is enough. Google's advice is to remove the content or protect it with a password. RFC 9309 says the robots rules "are not a form of access authorization," and listing private paths in robots.txt makes them public, since anyone can read the file.

robots.txt and sitemap myths, checked against Google's documentation

Each claim below is checked against the Google page that covers it, with that page's last-updated date.

Table 5. Common claims vs Google's documentation

ClaimWhat Google's documentation saysSource (last updated)
robots.txt hides a page from GoogleNot a mechanism for keeping a page out; the URL can still appear in resultsIntroduction to robots.txt (2025-12-10)
robots.txt keeps private content safeUse proper authentication; the file can be read by anyoneUseful robots.txt rules (2026-06-12)
A missing robots.txt hurts your SEO"Not having a robots.txt file is fine"Search Console Help, robots.txt report (no date shown)
Crawl-delay slows Googlebot downNot supportedRobots.txt specification (2026-10-23)
A sitemap guarantees indexingNo guarantee that all items in it are crawled and indexedLearn about sitemaps (2026-11-27)
A sitemap improves rankingsDoes not guarantee indexing or increase rankingCrawling and indexing FAQ (2025-12-10)
priority and changefreq control crawlingIgnoredBuild and submit a sitemap (2026-11-27)
Updating lastmod every day gets faster crawlslastmod has to match reality, or Google stops trusting itSearch Central blog on sitemaps (published 2023-06-26)
Removing a URL from the sitemap removes it from GoogleGoogle can still crawl and index it through linksLearn about sitemaps (2026-11-27)
You need llms.txt for Google's AI featuresGoogle Search doesn't use itAI optimization guide (2026-07-10)

Our reading: several of these come from treating a crawl file as a visibility switch, when robots.txt only manages access and a sitemap only offers hints that Google may or may not act on. Neither file is a switch.

AI features, llms.txt and robots.txt: what Google documents

Short version: nothing new to install. Google's page on AI features and your website says there are "no additional requirements" for showing up in AI Overviews or AI Mode. The bar is ordinary indexing: a page must be in the index and allowed to show a snippet before it can appear there as a supporting link. Special files written for machines, AI text files and new markup aren't needed.

llms.txt falls in that group. Google Search doesn't use it, and keeping one will neither help nor harm your visibility in Google Search. For Search, robots.txt rules for Googlebot remain the crawl control. A separate Search generative AI control in Search Console, rolled out to all sites as of August 31, 2026 and set to include by default (or to the parent property's setting, where there is one), decides whether your content appears in those features; it doesn't affect AI training. Google-Extended, set in robots.txt, is not a ranking signal and doesn't affect inclusion in Search. Add nosnippet to a page and its text won't serve as "a direct input for AI Overviews and AI Mode."

One related change for anyone adding FAQ markup: Google's documentation changelog says the FAQ rich result stopped appearing in Google Search starting May 7, 2026. This page keeps its FAQ markup only so the structured data matches the questions you can see.

When this advice does not apply

  • Very large or fast-changing sites. Google's crawl budget guide is intended mainly for sites with 1 million or more unique pages that change about weekly, 10,000 or more that change daily, or many URLs marked "Discovered - currently not indexed." Google calls those numbers a rough estimate, not exact thresholds.
  • Hosted platforms with no file access. Use the platform's search visibility settings and help pages instead.
  • Other search engines and crawlers. They may read rules differently or ignore them.
  • Subdomains and staging sites. Each host needs its own file, and a staging robots.txt with Disallow: / that gets copied to the live site will block it.
  • Confidential content. Use passwords or removal, not robots.txt.

If several of these apply, a full SEO audit is the better next step.


Frequently Asked Questions


Is robots.txt good for SEO?

It helps only in a narrow way. Site owners use robots.txt mainly to manage crawler traffic, Google says, and one of its technical requirements is that Googlebot isn't blocked. A clean file, or no file at all, keeps the important pages crawlable. It is not a ranking tool, and blocking pages does not hide them from search results.


How do I add a sitemap to a robots.txt file?

Add one line with the full URL, for example Sitemap: https://www.example.com/sitemap.xml (a placeholder address). Google allows the line anywhere in the file and accepts more than one. Our rule: don't put it directly under a User-agent line that has no rules of its own, because that User-agent line can merge with the next group.


How do I find the robots.txt file for a website?

Take the site's protocol and host, then add /robots.txt, for example https://www.example.com/robots.txt. Each host has its own file, so a subdomain or the http version needs a separate check. A 404 or other 4xx error (except 429) means Google treats the site as having no robots.txt. A 5xx server error is different and can pause crawling; see Table 2.


Does robots.txt still work?

Yes. Google's crawlers still read user-agent, allow, disallow and sitemap lines, and Google's robots.txt specification page was last updated on October 23, 2026. What it never did is force crawlers to obey. Googlebot and other respectable crawlers follow the rules; other crawlers might not.


What happens if my website has no robots.txt file?

Nothing bad. Google's robots.txt report calls a missing file fine. When the request returns a 404 or another 4xx error except 429, Google acts as if no valid file exists and assumes there are no crawl restrictions.


Does submitting a sitemap guarantee indexing or better rankings?

No. Google calls a submitted sitemap a hint, and its crawling FAQ says a sitemap does not guarantee indexing or increase ranking. The Discovered pages number in the Sitemaps report counts URLs read from the file, not pages that were indexed.


Why doesn't my sitemap show up in the Sitemaps report?

Usually for one of two reasons. The report lists only sitemaps submitted through the report or the API, not ones Google found through your robots.txt line. Or you are looking at a different property. A sitemap submitted in one property won't show in another, so check that you haven't mixed up http and https, or www and non-www.


Can robots.txt keep a page private?

No. Anyone can open your robots.txt file, and listing private folders there points people straight to them. RFC 9309 says the rules "are not a form of access authorization." For confidential content, Google advises removing it or protecting it with a password.


Should pages with noindex be in my sitemap?

No. Google tells you to include the URLs you want to see in search results, and a noindex page is one you don't. Its Page indexing help also lists sitemaps with noindex, blocked or login-only URLs as one cause of sudden error spikes.

Sources & References (all pages checked November 30, 2026):

  • Google Search Central, Introduction to robots.txt (last updated 2025-12-10): purpose of robots.txt, URLs that still appear, media files, resource files, crawlers that may not comply. developers.google.com
  • Google Crawling Infrastructure, How to write and submit a robots.txt file (last updated 2025-11-21): file name, one file per host, root location, protocol and host scope, UTF-8, private-window test, automatic discovery. developers.google.com
  • Google Crawling Infrastructure, How Google interprets the robots.txt specification (last updated 2026-10-23): supported fields, crawl-delay unsupported, rules without a path, precedence, sitemap field, group merging, status code handling, 24-hour caching, 500 KiB limit. developers.google.com
  • Google Crawling Infrastructure, Useful robots.txt rules (last updated 2026-06-12): disallow and allow-all patterns, empty Disallow, authentication for private content. developers.google.com
  • Google Crawling Infrastructure, Update your robots.txt file (last updated 2025-11-21): download, edit, upload, Request a recrawl. developers.google.com
  • Google Search Central, Learn about sitemaps (last updated 2026-11-27): definition, about 500 pages or fewer, when a sitemap helps, no indexing guarantee, removing URLs. developers.google.com
  • Google Search Central, Build and submit a sitemap (last updated 2026-11-27): formats, HTML sitemaps, 50MB or 50,000 URLs, absolute and canonical URLs, priority, changefreq and lastmod, manual vs generated, URL order, submission methods. developers.google.com
  • Google Search Central, Manage your sitemaps with a sitemap index file (last updated 2026-11-27): splitting large sitemaps. developers.google.com
  • Google Search Central, Block Search indexing with noindex (last updated 2025-12-10): meta tag and X-Robots-Tag, conflict with robots.txt, revisit timing. developers.google.com
  • Google Search Central, Control what you share with Google Search (last updated 2026-10-21): removal, password protection, robots.txt for images and video. developers.google.com
  • Google Search Central, Ask Google to recrawl your URLs (last updated 2025-12-10): crawl timing, request quota. developers.google.com
  • Google Search Central, Google Search technical requirements (last updated 2025-12-18): Googlebot isn't blocked, HTTP 200, indexing not guaranteed. developers.google.com
  • Google Search Central Blog, Sitemaps ping endpoint is going away (published 2023-06-26): ping retired, lastmod accuracy, sidebar and footer edits. developers.google.com
  • Google Search Central, Google Search crawling and indexing FAQ (last updated 2025-12-10): sitemaps do not guarantee indexing or increase ranking. developers.google.com
  • Google Search Central, Robots meta tag, data-nosnippet, and X-Robots-Tag specifications (last updated 2026-03-24): blocked pages and indexing rules, nosnippet and AI features. developers.google.com
  • Google Search Central, Understand the JavaScript SEO basics (last updated 2026-03-04): JavaScript in blocked files is not rendered. developers.google.com
  • Google Search Central, Troubleshoot Google Search crawling errors (last updated 2026-11-27): block only non-critical resources. developers.google.com
  • Google Crawling Infrastructure, Optimize your crawl budget (last updated 2026-07-22): who the guide is for, rough size estimates. developers.google.com
  • Google Search Central, AI features and your website (last updated 2025-12-10): no additional requirements, no special files, robots.txt for Googlebot. developers.google.com
  • Google Search Central, Optimizing your website for generative AI features on Google (last updated 2026-07-10): llms.txt not used by Google Search. developers.google.com
  • Google Search Central, Control how your content is used for generative AI at Google (last updated 2026-11-24): Google-Extended. developers.google.com
  • Google Search Central, documentation updates changelog (last updated 2026-11-27; entry of May 8, 2026): FAQ rich result no longer appears starting May 7, 2026. developers.google.com
  • Search Console Help, robots.txt report (no last-updated date shown): eligible properties, top 20 hosts, fetch statuses, errors vs warnings, recrawl. support.google.com
  • Search Console Help, Sitemaps report (no last-updated date shown): submission, owner permission, statuses, Discovered pages, sitemaps from robots.txt not listed, fetch and parsing errors. support.google.com
  • Search Console Help, URL Inspection tool (no last-updated date shown): Crawl allowed?, Indexing allowed?, Sitemaps field, daily request limit. support.google.com
  • Search Console Help, Page indexing report (no last-updated date shown): status labels, sitemap filter, error spikes, validation timing. support.google.com
  • Search Console Help, Search generative AI control (no last-updated date shown): rollout as of August 31, 2026, default setting, no effect on training. support.google.com
  • IETF, RFC 9309 Robots Exclusion Protocol (September 2022): rules are not access authorization; listed paths become public. www.rfc-editor.org
0 Comments 0 Comments
0 Comments 0 Comments