Free Tool, No Signup Required

Free Robots.txt Tester, Checker & Validator

Fetch any website's robots.txt online, validate its syntax, and test whether Googlebot can actually crawl your pages. A bad robots.txt is a quiet way to lose rankings, this tool makes it visible in seconds.

By SEOWebster Team ·

Enter any page or domain. The tool fetches yourdomain.com/robots.txt automatically.

We do not store the URLs or robots.txt files you test. Everything is fetched live and discarded.

How It Works

1

Enter a website URL

Paste any page or domain, such as https://example.com. The tool resolves it to the root and fetches example.com/robots.txt automatically.

2

Run the test

Click Test Robots.txt. The file is fetched live, validated line by line, and summarized so you can see every rule at a glance.

3

Check a specific path

Use the access checker to test a URL path against Googlebot, Bingbot, or an AI crawler and see whether it is allowed or blocked.

4

Fix and re-test

Correct any blocking rules or syntax errors on your server, then run the test again to confirm the change is live.

Q

Quick Answer

A robots.txt tester is a tool that fetches a website's robots.txt file and checks whether specific crawlers can access specific pages. It validates the file's syntax and applies the same longest-match, Allow-over-Disallow rules that Googlebot uses to tell you whether a URL is allowed or blocked.

What This Tool Does

This is a free robots.txt tester and checker. You paste a website URL, and the tool fetches that site's robots.txt file from its root, validates every line, and summarizes what the file actually does. It then lets you test a specific URL path against a specific crawler so you can see, in plain language, whether Googlebot is allowed to index a page or whether an AI training bot is blocked.

Most webmasters never read their own robots.txt until something goes wrong. That is usually a page falling out of the index or a whole section going dark after a migration. This tool turns a normally invisible file into something you can read, understand, and fix in one sitting, without logging into Search Console.

The role of robots.txt in SEO is narrower than its reputation suggests, and knowing the boundary saves a lot of wasted effort. The file governs crawling, not ranking and not indexing. It cannot push a page up the results, and it cannot reliably pull one out of them. What it does control is where crawlers spend their time on your site, which matters enormously once you are large enough for crawl budget to bite, and it is the fastest way to lose everything if you block the wrong path. Treat it as a traffic director for bots, not as an SEO lever, and you will use it correctly.

Features of This Tool

Live fetch

Pulls the real robots.txt from any domain root, following redirects like a crawler would.

Syntax validation

Flags malformed lines, missing colons, bad sitemap URLs, and unknown directives.

Crawl access tester

Checks a URL path against Googlebot, Bingbot, GPTBot, and more using longest-match rules.

Rule summary

Counts user-agent groups, Allow and Disallow rules, sitemaps, and crawl-delay settings.

Raw file view

Shows the complete file exactly as served, with copy and download for easy editing.

Instant results

No signup, no queue. Results render in your browser the moment the file is fetched.

Robots.txt Validator Explained

Testing and validating are two different jobs, and this tool does both. The tester answers a behavioural question, can this crawler reach this URL. The validator answers a structural one, is this file written correctly in the first place. A file can be perfectly valid and still block your whole site, and it can contain a broken line that silently voids the rule you were counting on.

Every time you check your robots.txt here, the built-in robots.txt file validator walks it one line at a time and reports what it finds. These are the conditions it looks for:

Validation check What gets flagged
File location and status Anything other than a 200 response at the domain root, including 404s, redirects to an HTML page, and soft-404 error pages served as robots.txt.
Content type An HTML document returned instead of plain text, which usually means a catch-all route is intercepting the request.
Directive spelling Misspellings such as Useragent, Dissallow, or Site-map, which crawlers skip without warning.
Missing colon or value A line like Disallow /admin with no colon, or a Sitemap line with nothing after it.
Rules before any user-agent Allow or Disallow lines that appear before the first User-agent line and therefore belong to no group.
Sitemap URL format Relative sitemap paths, which are invalid. The Sitemap line must carry a full absolute URL including the protocol.
Crawl-delay value A non-numeric crawl-delay, plus a note that Googlebot ignores this directive entirely.
Wildcard and anchor use Misplaced asterisks and dollar signs that widen or narrow a rule far beyond what was intended.
Whole-site blocks A Disallow: / that applies to Googlebot, which is by far the most expensive mistake this file can contain.

One point worth stressing, because it accounts for a surprising share of failed checks: the file is named robots.txt, plural, with a dot. A file uploaded as robot.txt, robots.text, or robots txt is not read by any crawler. The name is part of the standard, so a typo there means your rules simply never take effect, and nothing in your analytics will tell you.

Google Search Console Tester

Where the Google robots.txt checker went

If you came here looking for the Google Search Console robots.txt tester, there is something you should know first: Google retired it. The old robots.txt Tester inside Search Console, the one with the editable text box and the red highlight on the blocking line, was shut down in December 2023 after more than a decade of service. Plenty of tutorials still link to it, which is why so many people searching for a Google robots.txt checker arrive at a dead URL.

The Search Console robots.txt report

What replaced it is a report rather than a tester. To check robots.txt in Google Search Console today, open Settings, then robots.txt, and Google shows you the last file it fetched for each host, when it fetched it, and any parsing problems it hit. It is genuinely useful for confirming what Google is currently working from, but it is a read-only view. There is no box to paste a URL into and no way to try a rule change before you ship it.

What you want to do Search Console robots.txt report This tester
See the file Google actually cached Yes, with the fetch timestamp No, it fetches live instead
Test a specific URL against a crawler No, removed with the old tester Yes, for any path and user-agent
Check a site you do not own No, verified properties only Yes, any public domain
Validate syntax line by line Partial, parsing issues only Yes, with an explanation per line
Test AI crawlers such as GPTBot No Yes
Try a rule before you deploy it No Yes, edit and re-run
Sign-in required Yes, a verified property No

Using this tool as a Googlebot checker

Select Googlebot in the crawler list and the access checker behaves as a Googlebot checker, resolving a path exactly the way Google's parser would, including the longest-match and Allow-over-Disallow precedence written into RFC 9309. Switch the selection to Googlebot-Image, Bingbot, or GPTBot and you can verify the same path against each crawler in turn, which the Search Console report cannot do at all.

The practical workflow is to use both. Test and iterate here, where you can check any path against any crawler without signing in, then confirm in Search Console that Google has picked up the file you deployed. If you need Google's own verdict on one specific live URL, the URL Inspection tool still reports crawl-blocked status directly from Google's index.

Google recrawls robots.txt roughly once every 24 hours, so a fix you deploy today may not show in the Search Console report until tomorrow. This tool reads the file live, which is why the two can disagree for a day after a change.

Why Use a Robots.txt Tester

A robots.txt error is one of the few SEO problems that can erase months of work overnight, and it is almost always self-inflicted. These are the concrete reasons to test your file before and after any change:

1

Catch a blocking mistake before it goes live

A single stray Disallow: / added during a redesign can drop an entire domain out of Google. Testing first means you see it in a preview, not in your traffic report.

2

Verify a migration did not break the file

When you move from HTTP to HTTPS or change platforms, the robots.txt is often overwritten with a default. Checking it after every migration is cheap insurance.

3

Protect your crawl budget

Every page a crawler wastes on a blocked or low-value section is budget it does not spend on your money pages. A clean file directs crawlers to what matters.

4

Control AI training bots

Most sites now want GPTBot and ClaudeBot blocked but Googlebot and OAI-SearchBot allowed. A tester confirms those granular rules actually resolve the way you expect.

5

Confirm sitemap declarations

The Sitemap: line is one of the easiest signals for discovery. If it points to a dead URL, your fresh content is slower to get indexed.

6

Diagnose a rankings drop

When a page vanishes from search, the robots.txt is one of the first places to look. This tool shows you in seconds whether a block is the cause.

What Makes a Good Robots.txt File

A good robots.txt is boring. It is short, lives at the right path, and only contains directives the crawler can actually understand. Here are the qualities that separate a healthy file from a risky one:

  • Located at the root. The file must be at yourdomain.com/robots.txt. A file anywhere else is ignored.
  • Only valid directives. Stick to User-agent, Allow, Disallow, Sitemap, and optionally Crawl-delay. Unknown fields are skipped or flagged.
  • Googlebot is never blocked. Unless the whole site is intentionally offline, blocking Googlebot removes you from search.
  • No blocking of CSS and JS. Google needs to render your pages, so assets like CSS and JavaScript must stay crawlable.
  • Sitemap is declared. A working Sitemap: line speeds up discovery of new and updated pages.
  • Rules are specific. Target folders you actually want hidden, not broad patterns that accidentally cover important pages.
  • No sensitive paths listed. Never use robots.txt to hide private URLs, the file is public and tells attackers exactly where to look.

Robots.txt Checklist

Structure

Auto-checked
  • File returns HTTP 200
  • Located at the domain root
  • Plain text, no HTML wrapper
  • UTF-8 encoding, no stray BOM

Directives

Auto-checked
  • Only valid directive fields
  • No missing colons or blank values
  • Sitemap URLs are absolute
  • Crawl-delay is a number

Crawlers

Manual
  • Googlebot and Bingbot allowed
  • Training bots blocked as intended
  • No Disallow: / by accident
  • CSS and JS left crawlable

Maintenance

Manual
  • Re-checked after every migration
  • Sitemap line still resolves
  • No private paths exposed
  • Re-tested after theme or CMS change

How Crawl Access Is Determined

When a crawler like Googlebot hits your site, it evaluates your robots.txt against the exact URL it wants to fetch. The logic comes from the Robots Exclusion Protocol, the robot exclusion standard first agreed between webmasters and crawler operators in 1994 and finally published as RFC 9309 in 2022. This tester follows the same rules, so its answer matches what a real crawler would do.

Factor How It Affects the Result
User-agent match The crawler picks the group whose User-agent line matches it. An exact name match beats the * catch-all group.
Longest match wins When several rules match a path, the most specific one wins, not the first one in the file.
Allow beats Disallow On an exact tie in specificity, an Allow rule overrides a Disallow rule.
Wildcard * An asterisk in a rule path matches any sequence of characters, so /private/* covers everything under /private/.
End anchor $ A dollar sign at the end of a rule path matches only the exact end of the URL, so /*.pdf$ targets files and not folders.
No rule matches If no rule matches the path, the crawler is allowed by default.

This matches Google's documented behaviour. For the official answer on a production site, the URL Inspection tool in Google Search Console applies the same logic against Google's own parser.

How to Find a Robots.txt File

Finding the file is the easy part, because the standard fixes its address. It always sits at the root of the host, at yourdomain.com/robots.txt, and it is always public. That is true for your own site and for any site you want to check, which is what makes competitor files worth a look. Here is how to check robots.txt on any domain, in rough order of speed:

1

Type the URL into a browser

Add /robots.txt to the end of the domain and hit enter. Nothing else is needed. This is the quickest way to check for a robots.txt file: if you see plain text, it exists, and if you get a 404, the site has none, which is valid and simply means everything is crawlable.

2

Paste the domain into the tester above

You do not have to type the path. Enter example.com or any page on it and this robots.txt file checker resolves the host, fetches the file, and validates it. It is the fastest way to check a website robots.txt file you do not own, since it works on any public site.

3

Use curl from a terminal

Running curl -I on the file URL shows the status code and content type before you look at the body, which is how you catch a file that redirects or returns HTML instead of text.

4

Check the server, not the CMS

On WordPress a plugin often serves a virtual file that never appears in the file manager. On Shopify and Wix the file is generated for you with limited editing. Always trust what the URL returns over what the dashboard shows.

Two traps catch people here. Subdomains need their own file, so blog.example.com is not covered by the rules at example.com, and each protocol and port is treated as a separate host. And a file that only exists at www.example.com does nothing for visitors who land on example.com without the www, unless one redirects to the other.

How to Read a Robots.txt File

Once you have the file open, reading it takes about a minute. The syntax is small on purpose. Every meaningful line is a field name, a colon, and a value, and the file is organised into groups that each start with a User-agent line. Here is an annotated file with every directive you are likely to meet:

# Group 1: rules for every crawler without its own group
User-agent: *
Disallow: /cart/
Disallow: /search
Disallow: /*?sort=
Allow: /cart/shipping-info

# Group 2: rules that apply to Googlebot only
User-agent: Googlebot
Disallow: /internal/

# Group 3: an AI training crawler, blocked entirely
User-agent: GPTBot
Disallow: /

# Applies to the whole file, not to any one group
Sitemap: https://example.com/sitemap.xml

Reading it line by line, that file says the following:

  • A hash starts a comment. Everything after # on a line is ignored by crawlers, so comments cost nothing and are worth writing.
  • User-agent names the crawler. An asterisk is the catch-all. A crawler that finds a group with its own name ignores the asterisk group completely, so Googlebot above obeys only Group 2 and is not blocked from /cart/.
  • Disallow blocks a path prefix. Disallow: /search blocks /search, /search/, and /search-results, because the match is on the prefix and not the whole path.
  • An asterisk inside a path is a wildcard. Disallow: /*?sort= catches every URL containing that query string, which is the standard way to stop faceted navigation from eating crawl budget.
  • Allow carves out an exception. /cart/shipping-info stays crawlable even though the rest of /cart/ is blocked, because Allow wins over Disallow at equal specificity.
  • An empty Disallow means allow everything. Disallow: with no value is the opposite of Disallow: /, and mixing the two up is a genuinely common error.
  • Sitemap is file-wide. It is not tied to the group above it and can appear anywhere in the file, though the end is conventional.

What the file does not do is control indexing, and this is the single most misread part of the standard. A blocked URL can still appear in search results if other sites link to it, because Google can index a URL it has never crawled. If your goal is to keep a page out of results, use a noindex tag and leave the page crawlable so Google can actually see that tag.

Robots.txt Examples to Copy

Most sites need something close to one of these. Take the sample robots.txt file that matches your setup, adjust the paths and the sitemap URL to your own domain, then paste your site into the tester above to confirm the result before you deploy it. Every block below is complete robots.txt code you can copy as it stands, with nothing left out.

The safe default for most sites

Nothing is blocked and the sitemap is declared. If you are unsure what you need, this is the correct answer, and it is far better than a guess that blocks something important.

User-agent: *
Disallow:

Sitemap: https://example.com/sitemap.xml

A typical WordPress file

Blocks the admin area while keeping admin-ajax.php open, because themes and plugins rely on it to render front-end content that Google needs to see.

User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php

Sitemap: https://example.com/sitemap_index.xml

An ecommerce store

Keeps carts, checkouts, and filtered category URLs out of the crawl while leaving every product and category page fully accessible.

User-agent: *
Disallow: /cart/
Disallow: /checkout/
Disallow: /account/
Disallow: /*?filter=
Disallow: /*?sort=
Disallow: /*&page=

Sitemap: https://example.com/sitemap.xml

Blocking AI training crawlers

Stops the major training bots while leaving Googlebot and the AI search crawlers that send you referral traffic untouched. Blocking GPTBot does not affect your Google rankings.

User-agent: GPTBot
Disallow: /

User-agent: ClaudeBot
Disallow: /

User-agent: Google-Extended
Disallow: /

User-agent: CCBot
Disallow: /

User-agent: *
Disallow:

Sitemap: https://example.com/sitemap.xml

A staging site, blocked entirely

The only file that should ever contain a bare Disallow: /. Use it on staging and never let it reach production, because this rule removes an entire domain from search.

User-agent: *
Disallow: /

Whichever one you start from, change example.com to your own domain and confirm the Sitemap line resolves to a live XML file. A sitemap pointing at a 404 is the most common defect in an otherwise healthy file.

Robots.txt and Social Media

robots.txt is not just a search-engine file. Every major social platform runs its own crawler to read your pages and build link previews, and those crawlers honour the same file. Get the rules wrong and your links share as bare URLs instead of rich cards.

How social crawlers read robots.txt

When someone pastes your link into a post, Facebook's external hit, X's Twitterbot, and LinkedIn's bot all fetch the page to pull the title, description, and og:image. If your robots.txt blocks those user-agents, the platform falls back to a plain text link with no preview, and your post performs measurably worse.

Why blocking them breaks link previews

A preview is built from the same page the crawler tries to fetch. Blocking the social bot is the technical equivalent of turning off your open graph tags. The fix is a small Allow rule for each social user-agent, which this tester can verify in the same pass it checks Googlebot.

Cross-platform consistency

The same og:title, og:description, and og:image tags power previews on Facebook, X, LinkedIn, and messaging apps. A robots.txt that allows the social crawlers on one platform but not another produces inconsistent, broken shares that undermine your technical SEO work across the board.

What this means for marketers

Before you run a campaign, test your robots.txt for the social bots as well as the search bots. The same migration that breaks Googlebot will often break link previews too. If you are managing AI crawler rules, pair this tester with the AI robots.txt generator to set GPTBot and Google-Extended rules correctly, then run a full site audit to confirm nothing else regressed.

Top Robots.txt Mistakes

1

Disallow: / left behind on a staging file

A developer blocks everything on a staging site, then copies the file to production. The whole domain disappears from search. Always test the live file, never assume the dev version is safe to deploy.

2

Blocking CSS and JavaScript

Telling Googlebot to stay out of your assets folders stops it from rendering pages, which can suppress rich results and hurt rankings. Your theme and script folders should stay open.

3

Using robots.txt as a security layer

robots.txt is public and purely advisory. Listing a private admin path only points attackers at it. Real protection belongs behind authentication, not in a text file.

4

Confusing Allow with Disallow

Writing Allow: /admin when you meant Disallow: /admin, or vice versa, inverts the rule. A validator catches this instantly, where a human scan often does not.

5

Forgetting to update after a migration

A platform switch frequently replaces your file with a default that points the Sitemap: line at a dead URL or drops your custom AI-bot rules. Re-checking after every migration is the cheapest fix there is.

Common Robots.txt Use Cases

Site owners

  • › Verify Googlebot is not blocked after a redesign
  • › Confirm the sitemap line still points at a live URL
  • › Check AI training bots are blocked as intended
  • › Test a single page that dropped out of the index

SEO agencies

  • › Audit client robots.txt files in one pass
  • › Document crawl access before and after a migration
  • › Justify a rankings-drop diagnosis with evidence
  • › Set and verify granular AI-crawler rules

Developers

  • › Validate files before a deployment goes live
  • › Test wildcard and dollar-sign rules
  • › Confirm redirects resolve to the right file
  • › Catch a stray Disallow: / in a pull request

Ecommerce teams

  • › Keep faceted search and cart URLs out of the index
  • › Protect crawl budget from infinite category loops
  • › Confirm product pages stay crawlable
  • › Check social crawlers can still build link previews

Robots.txt Analysis and Monitoring

A one-off check tells you the file is fine today. It says nothing about tomorrow. robots.txt is edited by developers, overwritten by plugin updates, regenerated by platform migrations, and reset by hosting changes, usually without anyone announcing it. Sites that get burned are rarely the ones that never checked. They are the ones that checked once, six months ago.

This is where a robots.txt analyzer earns its keep over a one-line verdict. Proper robots.txt analysis goes past pass or fail and asks what the file is actually doing to your crawl. When you analyze a robots.txt file properly, these are the questions worth answering:

  • Rule coverage. How many URLs on your site does each Disallow rule really match? A rule written to block one folder often catches far more than intended once wildcards are involved.
  • Crawl budget impact. Cross-reference the blocked patterns against your server logs. If crawlers are still hammering paths you meant to block, the rule is not matching the way you think it is.
  • Orphaned rules. Disallow lines pointing at folders that were removed years ago add noise and hide the rules that matter.
  • Sitemap health. The declared sitemap should return a 200 and list live URLs, not redirect or 404.
  • Bot coverage drift. New AI crawlers appear every few months. A file written two years ago has no opinion about the crawlers hitting you now.

For robots.txt monitoring, pick a cadence and stick to it. Once a month is enough for a stable site. What matters more is testing at the moments when the file is most likely to change without warning: after a platform migration, a theme or plugin update, a hosting move, a CDN or edge-config change, and any deployment that touched routing or redirects. Save your current file somewhere outside the server, and you can diff it against the live version in seconds.

Because this robots.txt testing tool runs online with nothing to install and no account to create, re-verifying costs you about ten seconds. That is the whole argument for doing it often. Bookmark the page, verify your robots.txt after every deployment that touched infrastructure, and you will catch the accidental block in the window where it is still cheap to fix rather than a month later in a traffic report.

Create a Robots.txt File Online

If the test came back with a 404, your site has no robots.txt at all. That is valid and not an emergency, since a missing file means everything is crawlable, but you are giving up the sitemap declaration and any control over AI training bots. Creating one takes a few minutes.

There are two routes. If you want to know how to write a robots.txt file by hand, start from one of the samples above, save it as a plain text file named robots.txt, and upload it to your web root. If you would rather make a robots.txt file online without touching the syntax, use an online robots.txt generator instead. Our AI robots.txt generator builds one from your CMS and your choices about which crawlers to allow, then hands you something ready to paste. Either way, come back and run it through the tester before you consider the job finished. Creating the file and verifying the file are two separate steps, and skipping the second is how a blocking rule slips through.

Three things to get right when you create the file. Save it as plain UTF-8 text, not a Word document or a file your editor has quietly given a .txt.txt extension. Upload it to the web root so it answers at yourdomain.com/robots.txt and not a subfolder. And confirm it returns a 200 with a content type of text/plain, because a platform that serves your 404 page in its place has effectively given you no file at all.

Why Choose Our Robots.txt Tester

There is no shortage of robots checker tools out there, but most are either dated, locked behind a login, or give you a pass or fail with no explanation. This one is built by the SEOWebster team to be fast, transparent, and free, with the same access logic Google uses so you can trust the answer.

Feature Our tool Most other tools
No signup required Yes, works instantly Often requires an account
Google-style access logic Longest-match, Allow precedence Varies or undocumented
Live file fetch Yes, real-time from any domain Sometimes manual paste only
AI crawler support GPTBot, ClaudeBot, and more Usually Googlebot only
Syntax validation Line-by-line with explanations Pass or fail only
Raw file with copy and download Included Often hidden
Privacy Nothing stored or logged Unclear

If a test turns up more than a simple fix, SEOWebster's technical SEO services cover crawl budget, indexing, and migration support end to end.

Frequently Asked Questions

What is a robots.txt file? +

A robots.txt file is a plain-text file at the root of your website that tells web crawlers which pages or folders they are allowed to visit. Googlebot, Bingbot, and most AI crawlers check it first before indexing a site. It is a request, not a lock: well-behaved bots follow it, but a rogue scraper can ignore it. If you want to check yours, paste your domain into the tester above and the file is fetched and validated instantly.

How do I check my robots.txt file? +

Paste your website URL into the tester on this page and click Test Robots.txt. The tool fetches yourdomain.com/robots.txt, shows the raw file, and validates every line for syntax errors. You can also type yourdomain.com/robots.txt directly into a browser address bar to read it. For a deeper check, open Google Search Console, go to Settings, then robots.txt, and Google will report any rules it could not parse.

How do I test if Googlebot can crawl a page? +

Enter the page path in the access checker below the raw file, choose Googlebot from the list, and click Check Access. The tester applies your file's rules the same way Google does, using longest-match and Allow-over-Disallow precedence, and tells you whether the path is allowed or blocked. For confirmation against Google's own parser, use the URL Inspection tool in Google Search Console on the same URL.

What does Disallow: / mean? +

Disallow: / blocks every crawler covered by that user-agent group from the entire site. A single forward slash is the root, so this rule is the most aggressive directive you can write. It is correct when you are taking a site offline or blocking a training-only AI bot, but it is a common and serious mistake when applied to Googlebot, because it removes the whole domain from search results.

What is the difference between Allow and Disallow? +

Disallow tells a crawler not to access a path, and Allow carves out an exception to a broader block. The classic example is blocking a folder but allowing one public file inside it: Disallow: /docs/ followed by Allow: /docs/public.pdf. When two rules match the same URL at the same specificity, Allow wins. Allow is only meaningful inside a group that also contains a Disallow rule.

Where should robots.txt be located? +

The file must sit at the root of your domain, at exactly yourdomain.com/robots.txt. A file in a subfolder, like yourdomain.com/folder/robots.txt, is ignored by every major crawler. On WordPress it lives in the public_html directory, on Vercel or Netlify in the public folder, and on Shopify it is generated for you. You cannot use a subdomain file to control the root domain, each host needs its own.

Can robots.txt block AI bots like GPTBot? +

Yes. OpenAI, Google, Anthropic, and most major AI companies have committed to respecting robots.txt. Add a User-agent: GPTBot group with Disallow: / to stop OpenAI's training crawler, and use Google-Extended for Google's Gemini training bot. Blocking these training crawlers does not affect your Google search rankings, because Googlebot and Google-Extended are separate crawlers with separate rules.

What is crawl-delay? +

Crawl-delay tells a crawler how many seconds to wait between requests. It is a polite way to reduce server load, but Googlebot ignores it entirely, and Bing only honours it in limited cases. Yandex and a few smaller search engines respect it. If you need to control how often Google crawls your site, do it through the crawl rate settings in Google Search Console rather than a crawl-delay line in robots.txt.

Does robots.txt stop a page from being indexed? +

No, not reliably. robots.txt stops a crawler from visiting a page, but if that page is linked from elsewhere, search engines can still index it and show it as a title-only result. To remove a page from search results you need a noindex meta tag or an X-Robots-Tag header, not a robots.txt rule. Blocking a page in robots.txt while leaving it noindex-free is one of the most common indexing mistakes we see.

Is there still a Google robots.txt tester? +

Not in its original form. Google retired the robots.txt Tester in Search Console in December 2023 and replaced it with a read-only robots.txt report under Settings. That report shows the file Google last fetched, when it fetched it, and any parsing errors, but it no longer lets you test a URL against a user-agent. The testing half of that workflow is exactly what this tool replaces, and it works on any public domain without a verified property.

How do I validate a robots.txt file? +

Run it through a robots.txt validator, which checks structure rather than behaviour. The validator on this page confirms the file returns a 200 at the domain root, is served as plain text, uses only real directive names, has a colon and a value on every line, declares absolute sitemap URLs, and contains no rules stranded before the first User-agent line. It also flags a Disallow: / that applies to Googlebot, which is the one error that costs you the whole site.

What does robots.txt do? +

It tells crawlers which parts of your site they may request. When a well-behaved bot arrives, it reads yourdomain.com/robots.txt first, finds the group matching its own user-agent name, and honours the Allow and Disallow rules in that group. It also commonly carries a Sitemap line that points crawlers at your XML sitemap. What it does not do is control indexing or provide security, since the file is public and purely advisory.

Do I need a robots.txt file? +

You do not strictly need one. A site with no robots.txt is fully crawlable, which is the correct outcome for most small sites, and a 404 on that URL causes no harm. It becomes worth having once you have URLs that waste crawl budget without earning traffic, such as internal search results, faceted filters, carts and checkouts, or once you want to declare a sitemap or block AI training crawlers. If you do add one, keep it minimal, because an empty file is safer than a guessed rule.

How do I find the robots.txt file of a website? +

Add /robots.txt to the end of the domain and open it in a browser. The file is public by definition and always lives at the root of the host, so example.com/robots.txt works for any site, including ones you do not own. Note that subdomains need their own file: the rules at example.com do not apply to blog.example.com. You can also paste any domain into the tester above, which resolves the root and fetches the file for you.

What is the robots exclusion protocol? +

It is the standard that defines how robots.txt works. Webmasters and crawler operators agreed it informally in 1994, and it ran on convention for nearly three decades before being formally published as RFC 9309 in 2022. It specifies the file location, the User-agent, Allow, and Disallow fields, and the matching rules crawlers use, including longest-match precedence and Allow winning over Disallow on a tie. It is voluntary, so it governs well-behaved crawlers and not malicious scrapers.

How do I validate robots.txt in Google Search Console? +

Open Google Search Console, select your property, go to Settings, then click robots.txt. Google shows the file it last fetched for each host, the fetch timestamp, and any lines it could not parse. Since the interactive tester was removed in December 2023, this report is read-only, so use it to confirm which file Google is working from and use the tester on this page to check specific URLs against specific crawlers before you deploy a change.

Need more than a robots.txt fix?

SEOWebster's technical SEO team handles crawl budget, indexing, migrations, and full site audits for businesses that want rankings they can measure.