Skip to content
SEO Toolbox Online

Robots.txt Checker

Checks robots.txt exists, returns 200, and does not block this page.

What is a robots.txt file?

robots.txt is a plain-text file at the root of a site (example.com/robots.txt) 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. Search engines and most AI crawlers follow it, but it is a request, not access control.

How to use the Robots.txt Checker

  1. Enter any URL on the site. The tool fetches /robots.txt from that host.
  2. It checks that the file exists, returns HTTP 200, and does not block the URL you entered for Googlebot.
  3. If the page is blocked, the result shows which rule matched so you can edit or remove it.

How to read the results

Passed
robots.txt returns 200 and allows Googlebot to crawl the URL you entered.
Needs attention
robots.txt is missing (404). Google then treats the whole site as crawlable, which is usually fine, but you lose the place to list your sitemap.
Failed
A Disallow rule blocks the URL you entered, so Google cannot crawl it or see its content.

How do I write a safe robots.txt?

Start by allowing everything and add Disallow lines only for areas with no search value, such as internal search results, carts or account pages. Rules are prefix matches and are case-sensitive. List your sitemap with an absolute URL.

robots.txt
User-agent: *
Disallow: /cart/
Disallow: /search

Sitemap: https://www.example.com/sitemap.xml
Next.js (app/robots.ts)
import type { MetadataRoute } from 'next';

export default function robots(): MetadataRoute.Robots {
  return {
    rules: { userAgent: '*', disallow: ['/cart/', '/search'] },
    sitemap: 'https://www.example.com/sitemap.xml',
  };
}

How do I keep a page out of Google if robots.txt does not?

Use a noindex robots meta tag or an X-Robots-Tag: noindex header, and leave the page crawlable. Google has to crawl a page to see its noindex, so blocking it in robots.txt as well stops the noindex from working.

Common mistakes

A leftover "Disallow: /" from a staging site blocks everything. Blocking CSS or JavaScript files stops Google rendering the page properly. Putting the file anywhere other than the root of the host means it is ignored, and each subdomain and protocol needs its own file.

Frequently asked questions

Does robots.txt stop a page being indexed?

No. It stops crawling. Google can still index a blocked URL without its content if it finds links to it, and shows it with no description. Use noindex to keep a page out of results.

Does Google support Crawl-delay?

No. Googlebot ignores Crawl-delay. Bing and some other crawlers support it.

Is there a size limit?

Google reads the first 500 KiB of a robots.txt file and ignores anything after that.

How do I check AI crawlers like GPTBot or ClaudeBot?

Use the AI Crawler Blocked Checker, which reads the same file and reports each AI crawler separately.

Sources

What this tool checks

  • robots.txt is present and usable

    Checks that /robots.txt exists, returns 200, and does not block the audited page for Googlebot.

    Why it matters: robots.txt controls which URLs crawlers may request. A missing file is usually harmless, but an over-broad Disallow can hide important pages from search engines.

    If it fails: Publish a robots.txt at the site root. Make sure it does not Disallow pages you want indexed, and reference your sitemap.

    Source: developers.google.com/search/docs/crawling-indexing/robots/intro

Related tools

Reviewed by Prabath Thalangama · Last updated