DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowHalloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run Scan×
Skip to content
World desk4 min

How robots.txt Works—and What It Can and Can’t Stop

Robots.txt can guide compliant crawlers away from paths, but it is not security and does not reliably keep URLs out of Google Search. Learn which tool fits each goal.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Robots.txt tells compliant web crawlers which parts of a site they should avoid; it does not secure those pages or guarantee they stay out of search results. Use it to guide crawler requests, use a crawlable noindex directive to keep an accessible page out of Google Search, and use server-side access controls to protect private content.

What robots.txt does

Robots.txt is a plain-text set of instructions for automated clients, commonly called crawlers or bots. It is normally published as /robots.txt at the root of the relevant site authority. The file can ask crawlers that follow the protocol to avoid specified paths, which can help manage crawl traffic. It does not make a path inaccessible.

# Preview Product Price
1 Advanced Robots.txt Generator Manual Advanced Robots.txt Generator Manual $32.46

As an Amazon Associate I earn from qualifying purchases.

The Internet Engineering Task Force’s September 2022 Standards Track specification, RFC 9309, Robots Exclusion Protocol, states: “These rules are not a form of access authorization.” The standard also notes that paths listed in robots.txt are publicly exposed and recommends valid application-layer security, such as HTTP authentication, when access must be controlled.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

How rules select crawlers and paths

A robots.txt file uses groups of directives. User-agent names the crawler group; Disallow and Allow specify paths for that group. A wildcard group, User-agent: *, applies when no more specific group is selected. RFC 9309 says crawlers use the most specific matching path rule; equivalent Allow and Disallow matches should resolve in favor of allowing access. Individual crawler implementations may differ in how they interpret or apply rules.

User-agent: ExampleBot
Disallow: /private-looking/

User-agent: *
Allow: /

In this example, the first group asks ExampleBot to avoid paths under /private-looking/; the wildcard group allows other paths. The path name is only a label. It does not make the content private, and listing a sensitive-looking path can reveal that it exists.

Rules apply only within the scope of the robots.txt file’s protocol, host, and port. As Google explains in its robots.txt introduction, a file on one host does not automatically govern a sibling subdomain, a different protocol such as HTTP instead of HTTPS, or a different port. Publish the applicable file for each authority whose crawler requests you want to guide.

Does robots.txt stop bots?

It can guide crawlers that choose to honor its rules, but it cannot force every bot to comply. Google says crawler behavior is up to the crawler, and RFC 9309 is a protocol for crawler instructions—not an access-control system. A disallowed URL may still be visited by noncompliant clients, and people can still request it unless the server restricts access.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Does robots.txt keep a page out of Google?

Not reliably. A Disallow rule can stop Googlebot from fetching a page, but Google may discover the URL through links and show the URL in Search without crawling its content. That can mean the result lacks a page-derived title or snippet; disallowing a path is not a dependable way to remove its URL from search results.

For an accessible page that should not appear in Google Search, let Googlebot fetch the page and serve a supported noindex directive. Google supports noindex in a page’s meta tag or in an X-Robots-Tag HTTP response header. A robots.txt block can prevent Google from seeing either directive. Google does not support noindex as a robots.txt rule. See Google’s guide to blocking indexing.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Choose the mechanism for the outcome you need

Goal Mechanism Key limitation
Reduce requests from compliant crawlers to selected paths Robots.txt rules Crawlers can ignore the instructions; they do not restrict human or unauthorized access. RFC 9309
Keep an accessible page out of Google Search A crawlable noindex meta tag or X-Robots-Tag header Google must be able to fetch the page to read the directive. Google Search Central
Keep private content inaccessible Server-side authentication or another valid access control Do not rely on a robots.txt rule or publish secrets in a public path. RFC 9309

What if a crawler cannot fetch robots.txt?

The protocol’s guidance and Google’s behavior are related but not identical. Under RFC 9309, a 4xx response means the file is unavailable and may allow a crawler to access resources. If server or network errors make the file unreachable, the standard requires a crawler to assume complete disallow. It recommends that cached rules generally not be used for more than 24 hours unless the file remains unreachable. These are protocol rules, not a guarantee that all crawlers handle failures the same way.

Google documents its own operational handling in its robots.txt specifications: it treats most 4xx responses other than 429 as if no crawl restrictions exist. With 5xx errors, Google initially pauses crawling and retries; it can then use a cached file for a period. Google generally caches robots.txt for up to 24 hours, but may keep a cached copy longer if it cannot refresh the file.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Protocol limits worth knowing

RFC 9309 requires crawlers to support parsing at least 500 KiB of a robots.txt file. It also recommends a cache period of no more than 24 hours unless the file is unreachable. Google separately documents a 500 KiB limit and its own caching behavior in its implementation guidance. These are technical limits and recommendations, not measures of how many sites or bots use the protocol.

Quick Recap

SaleBestseller No. 1

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.