Free robots.txt tester
Is Google allowed to read your site?
Your robots.txt file tells crawlers what they may fetch. One wrong line can hide a whole site from Google. Check a live file, or paste one before it goes live, and see which line decides each answer, for search engines and AI crawlers alike.
Worth knowing
robots.txt controls crawling, not indexing.
This is the mistake that catches most people. Blocking a page in robots.txt stops Google reading it, but Google can still list the address if other pages link to it, usually with no description. And because Google cannot read the page, it never sees a noindex tag on it either.
So: to keep a page out of search results, leave it crawlable and add a noindex tag. Use robots.txt for things that should not be fetched at all, like admin areas, endless filter pages and internal search results.
How the rules are read
- Each crawler follows one group. The group that names it most specifically, or the
User-agent: *group if none does. A crawler with its own group ignores the*rules entirely. - The longest matching rule wins.
Allow: /shop/sale/beatsDisallow: /shop/for addresses under /shop/sale/. If two rules are the same length, Allow wins. *matches anything,$marks the end.Disallow: /*.pdf$blocks every PDF.Disallow:with nothing after it allows everything.Disallow: /blocks everything. One character apart.- Paths are case-sensitive.
/Private/and/private/are different rules.
Search engines and AI crawlers are separate choices
You can stay in Google and Bing while asking AI companies not to train on your pages. These lines do that, and leave search alone:
User-agent: GPTBot
Disallow: /
User-agent: ClaudeBot
Disallow: /
User-agent: CCBot
Disallow: /
User-agent: Google-Extended
Disallow: /
User-agent: Applebot-Extended
Disallow: /
Two things to weigh first. These are requests: reputable companies honour them, but nothing enforces them. And blocking the search crawlers of AI services, such as OAI-SearchBot or PerplexityBot, can keep you out of the answers those services give, which is where some customers now look for local businesses.
Where to edit robots.txt
- WordPress: WordPress makes a basic one itself. To change it, use your SEO plugin’s robots.txt or file editor (Yoast and Rank Math both have one), or upload your own file to the site’s root folder.
- Wix: in the SEO settings there is a robots.txt editor. Wix’s default is sensible; change it only for a reason.
- Squarespace: the file cannot be edited. There is a setting to ask AI crawlers to stay out, under the site’s crawler settings.
- Shopify: edit the
robots.txt.liquidtemplate in your theme’s code. Shopify’s default already blocks checkout and cart pages, which is what you want.
After changing it, test it here, then use the indexability checker on an important page to confirm nothing else stands in the way.
More free tools
No account needed for any of them.
Free website audit
Up to ten pages checked for SEO, speed, security and accessibility, with a fix list worst-first.
Why isn't my page on Google?
Paste one page and see what is keeping it out of search: errors, robots.txt, noindex, canonicals and more.
llms.txt checker and generator
Check any website's llms.txt against the format, or write one from your own pages. With the honest state of play.
Keyword research tool
What people type into Google around a topic: questions, comparisons and long-tail phrases.
Domain authority checker
How established a domain looks from public signals: age, history, popularity and link rank.
WHOIS lookup
Registrar, registration and expiry dates, nameservers and status for any domain, or whether it is free.
Search result preview
How your title and description look in Google on desktop and phone, and where they get cut off.
Local schema generator
Your name, address, phone and hours as the structured data Google reads. Ready to paste.
What is my website worth?
What your site brings in each year, and what it could sell for, from your own numbers with the sums shown.
Guides
Read more about this
- Why is my website not showing up on Google?Seven reasons a website is missing from Google, in the order worth checking them — from a noindex tag to a site that is simply too new.
- How to check if your website is indexed by GoogleBeing live is not the same as being indexed. How to check in Search Console, why the site: search misleads, and what to do about pages Google skipped.
- How often should a small business audit its website?Sites break quietly, usually after a change nobody thought was risky. A realistic schedule for a business with no web team, and what to check after edits.