Skip to content

Technical pillar / check robots-txt

robots.txt: is your crawl policy published where crawlers look for it?

We request /robots.txt on the site we audit and report whether it returned a file with something in it. A missing robots.txt blocks nothing, but it leaves crawlers without your Sitemap: line and without written rules for search and AI crawlers.

By , Founder and CEO, Own The Climb · Last updated

This is how we check it

We check that your site publishes a robots.txt file at the address crawlers look for it.

  • We look up /robots.txt once per audit, using the address your homepage lands on.
  • A file that loads with content passes. A missing or empty file is a low finding.
  • A missing file blocks nothing; what you lose is the place to list your sitemap and your crawler rules.

Our reasoning behind this

The robots.txt standard and Google both treat a missing file as permission to crawl everything, so nothing breaks. But robots.txt is where you point every crawler to your sitemap and tell them which areas to skip, such as internal search results.

How we would fix it on your site

  1. Publish a plain text file at /robots.txt that loads normally.
  2. Start with "User-agent: *", then "Allow: /", then a line "Sitemap: https://your-domain/sitemap.xml" with the full address of your sitemap.
  3. Add a Disallow line only for paths you really want crawlers to skip.

Once your change is live, run the audit again and review the new findings alongside the pages it covered.

How to make the change on your platform

What to do on each platform
PlatformWhat to do
WordPressWordPress serves a virtual robots.txt on its own. Yoast SEO (Tools, File editor) and Rank Math (General Settings, Edit robots.txt) let you edit it. Under Settings, Reading, leave "Discourage search engines from indexing this site" unchecked on the live site.
ShopifyShopify generates robots.txt for every store. To change it, add a robots.txt.liquid template to your theme; Shopify adds the Sitemap: line for you.
SquarespaceSquarespace writes robots.txt for you, with your sitemap address, and has no direct editor. Settings, Crawlers has a box to block known AI crawlers; leave it unchecked if you want to be cited by AI answer engines.
WixWix writes robots.txt with your sitemap address. To change it, open SEO & GEO in the dashboard, then Tools and settings, then Robots.txt Editor.
Next.jsAdd app/robots.ts that returns rules and a sitemap URL; Next.js serves it at /robots.txt.

What we want you to review

  • Keep robots.txt available through deploys and outages. A 500 or 503 can make Google pause crawling for up to 12 hours, then use its last good copy for up to 30 days under its documented error-handling rules.
  • Check the response crawlers receive when a CDN serves the file to browsers but challenges automated requests.
  • Use noindex on a page Google can crawl when you want the page excluded from search; robots.txt blocks do not reliably prevent indexing from links.
  • Remove a staging Disallow: / rule before publishing robots.txt on the live site.

The exact rules our audit applies

We wrote this part for your developer or your SEO specialist. It sets out the inputs, scoring rules and confidence limits we publish for this check, together with the full explanation of how we would fix a finding.

The inputs we describe for this check

One request per audit for /robots.txt on the origin where your homepage landed after redirects (a typed http://example.com that redirects to https://www.example.com is checked at https://www.example.com/robots.txt). We wait up to 8 seconds and read up to the same size cap we use for every metadata file. A 200 response with a body passes and shows its size in bytes.

A 404, 410, 403 or any other 4xx, or a 200 with an empty body, fails as missing or empty. A 5xx, a 429 or a request that fails or times out is reported as "could not be read" and is not graded. This check does not judge the rules inside the file: the AI crawler access and Bing crawl access checks read those rules for each crawler.

Our full reasoning

The Robots Exclusion Protocol (RFC 9309, September 2022) says the rules must live in a file named /robots.txt at the top-level path of the site, and that a 4xx response means the file is unavailable, so a crawler may access everything. Google documents the same: its crawlers "treat all 4xx errors, except 429, as if a valid robots.txt file didn't exist". So a missing file blocks nothing.

What it removes is the one place every crawler checks for your rules and your sitemap: Google says the sitemap field "isn't tied to any specific user agent and may be followed by all crawlers". AI companies publish the user agents of their crawlers so that you can address them in this file, so it is also where you decide which of them may read your pages.

OpenAI says a site that disallows OAI-SearchBot will not be shown in ChatGPT search answers, and that a change to robots.txt can take about 24 hours to apply. A robots.txt that returns 5xx is worse than a missing one: Google stops crawling the site for the first 12 hours while it keeps retrying, which is why we report that case separately and do not call it missing.

How we score what we find

Measured, once per audit, for the site. Missing or empty is a LOW technical finding: crawling is not blocked, but the file that carries your Sitemap: line and your crawler rules is absent. Present passes.

Unreadable (5xx, 429, timeout) is shown as not measured, with the status we received, and does not count toward the score.

How sure we are of each result

HIGH. We report the status code and the byte count of the response we received. A server can answer our crawler differently from Googlebot; the URL Inspection tool in Google Search Console shows what Google received.

How to fix it, in full

Publish a plain text file at /robots.txt that returns HTTP 200. The smallest useful file has a group for every crawler and a sitemap line: "User-agent: *", then "Allow: /", then "Sitemap: https://your-domain/sitemap.xml" on its own line, using the full address of your sitemap. Add a Disallow line only for paths you really want crawlers to skip, such as internal search results.

Then open https://your-domain/robots.txt in a browser, check it in the robots.txt report in Google Search Console, and re-run the audit.

The sources we rely on

What we have changed on this page

  • · Rewritten in plain words: what we check, why it matters and how to fix it come first, and the full rules sit one click down. We corrected the full rules to describe only what we check today.
  • · A missing or empty robots.txt is now LOW, not MEDIUM: it blocks nothing, and the gap is only the missing Sitemap: line and written-down crawler rules.
  • · Initial publication. The finding no longer says a missing robots.txt "signals platform immaturity": it now says what a missing file actually changes.