Edits aren't instant
Google generally caches robots.txt for up to 24 hours, and longer when it can't refresh. Don't expect a fix to take effect the minute you deploy it.
robots.txt tells crawlers which URLs they may request. How the rules work, what it can't do (keep pages out of Google), and examples to copy.
robots.txt is a plain text file at the root of a site that tells crawlers which URLs they may request. It controls crawling, not indexing: a blocked URL can still appear in Google if other pages link to it. To keep a page out of search results, use a noindex rule instead.
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
/robots.txt before crawling a host, finds the group of rules whose User-agent line matches its name, and applies the Allow and Disallow rules in that group. The protocol was standardised by the IETF as RFC 9309 in 2022.https://shop.example.com/robots.txt doesn't cover https://example.com.Allow and a Disallow rule are equally specific, the less restrictive Allow wins.GPTBot group replaces the * group for GPTBot rather than adding to it.User-agent: *
Disallow: /cart/
Disallow: /search
User-agent: GPTBot
Disallow: /
Sitemap: https://example.com/sitemap.xmlnoindex tag placed on it.robots.txt is also not access control. The file is public and compliance is voluntary. Anything that must stay private needs authentication.
Google generally caches robots.txt for up to 24 hours, and longer when it can't refresh. Don't expect a fix to take effect the minute you deploy it.
Google enforces that size limit and ignores content after it. Large generated files with per-URL rules can silently lose their last lines.
A 4xx (except 429) means no restrictions. A 5xx makes Google stop crawling the site for 12 hours.
Rules apply only to the host, protocol and port number where the file is hosted, so http:// and https:// need consistent files.
With Disallow: /downloads/ and Allow: /downloads/free/, a URL under /downloads/free/ is allowed because that rule is longer. On a tie, Google uses the least restrictive rule.
Google doesn't support it. To slow Googlebot you return 500, 503 or 429, covered in HTTP status codes.
curl -sI https://example.com/robots.txt | head -n 1 # want HTTP/2 200
curl -s https://example.com/robots.txt | wc -c # want well under 512000 bytes3 questions people ask next, answered from the sources on this page.
No. It stops compliant crawlers from fetching the page. Google can still index a blocked URL that other pages link to. Use a noindex meta tag or X-Robots-Tag header on a crawlable page to keep it out of results.
At the root of the host, for example https://example.com/robots.txt. Google says the file must sit in the top-level directory of the site.
Paths in rules are case-sensitive, so Disallow: /Admin doesn't block /admin. Google matches user-agent names case-insensitively.
The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.