October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run ScanOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk3 min

Robots.txt: What It Controls, What It Doesn’t, and What to Use Instead

Robots.txt manages crawler access to URL paths. It is not a privacy control and cannot guarantee that a blocked URL stays out of Google Search.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

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

robots.txt tells web crawlers which URL paths they may request. It can help manage crawling, but it cannot make a page private or guarantee that a URL stays out of Google Search. For search exclusion, let Google crawl the page and read a noindex directive; for privacy, require authentication or another access-control measure.

What robots.txt does

The Robots Exclusion Protocol lets a site communicate crawler access preferences for URL paths. The Internet Engineering Task Force standardized the protocol in RFC 9309, published in September 2022. The standard is explicit: “These rules are not a form of access authorization.”

As an Amazon Associate I earn from qualifying purchases.

A crawler that successfully retrieves a site’s robots.txt is expected to follow its parseable rules under the RFC. These rules govern crawler requests, not what a person can access in a browser or what a search engine may list.

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

What robots.txt cannot do

Guarantee that a URL is absent from Google

A Disallow rule can prevent Google from crawling a path, but it does not guarantee that the URL will be excluded from search results. Google explains that it may index a blocked URL if it discovers the address through links or other means. Because Google cannot fetch the blocked page, it cannot read its contents and may show no snippet. See Google’s robots.txt introduction.

Keep content private

The robots.txt file is publicly accessible. Listing a path there does not prevent visitors or other crawlers from requesting it, and can draw attention to a URL. For sensitive content, use an appropriate access-control measure, such as HTTP authentication, as RFC 9309 advises.

Communicate noindex to a page Google cannot crawl

Google can act on a robots meta tag or an X-Robots-Tag HTTP header only when it can crawl the page or resource and see that instruction. If a robots.txt rule blocks the URL, Google cannot read its noindex directive. Google’s documentation covers both forms in its robots meta tag and X-Robots-Tag guide.

Choose the mechanism for your goal

Goal Use Important limit
Manage crawler requests to URL paths robots.txt Allow and Disallow rules Does not secure the content or guarantee removal of a URL from search.
Keep a crawlable page out of Google Search A robots meta noindex directive or an X-Robots-Tag: noindex header Google must be able to crawl the page or resource to read the directive.
Restrict access to sensitive content Authentication or another server- or application-level access-control measure A public robots.txt file is not access control.

These mechanisms solve different problems; using one as a substitute for another can produce the opposite of the intended result.

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

Where robots.txt belongs and how it is formatted

RFC 9309 specifies a file named /robots.txt at the top level of a service—for example, https://example.com/robots.txt. It specifies UTF-8 encoding and the text/plain media type. A file placed in a subdirectory does not serve as the service’s root robots.txt under this standard.

The file groups rules by crawler user-agent and uses directives such as Allow and Disallow to describe paths. Matching is case-sensitive, starts at the first octet of the path, and uses the most specific matching rule. If equally specific Allow and Disallow rules conflict, the RFC says the Allow rule should be used. Implementations can vary, so a rule should be checked against the crawler whose behavior matters.

Use robots.txt to point crawlers to a sitemap

Google supports a Sitemap: field containing a fully qualified sitemap URL. Google says the sitemap can be hosted on another host and that a robots.txt file may contain multiple sitemap fields. See Google’s explanation of how it interprets the robots.txt specification. A sitemap entry helps discovery; it does not override access rules or make a URL private.

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

How crawlers handle robots.txt failures

RFC 9309 distinguishes an unavailable file from an unreachable one. For an unavailable response such as an HTTP 4xx, the RFC says a crawler may access resources. When server or network errors make the file unreachable, the RFC says crawlers must assume complete disallow, subject to allowances for prolonged failures and cached copies. These are standards-based directions, not a guarantee that every crawler behaves identically.

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

The RFC also says crawlers should not use cached robots.txt content for more than 24 hours unless the file is unreachable. If a site’s rules appear not to take effect, check that the root file is reachable and returns the intended content; then account for crawler-specific behavior and caching.

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.