What is robots.txt?
robots.txt is a plain text file at the root of a website (example.com/robots.txt) that tells crawlers which parts of the site they may visit. It uses User-agent lines to target crawlers and Disallow or Allow lines to set rules. Search engines and most reputable AI crawlers follow it, but it is a request, not a security barrier.
How to use the Robots.txt Tester
- Enter your website or a specific page URL.
- Optionally enter a path to test, such as /blog/my-post.
- Run the test to see which crawlers are allowed or blocked.
- Check the matched rule and adjust your robots.txt if an important page is blocked.
Why it matters for SEO
- One wrong Disallow line can block your whole site from Google.
- AI crawler rules decide whether AI assistants can read and cite your content.
- Blocking low-value pages focuses crawl budget on the pages that matter.
- robots.txt is also where you tell crawlers where your sitemap is.
Key facts
- Uses Google's matching rules: the most specific user-agent group wins, then the longest matching rule.
- When Allow and Disallow rules are the same length, Allow wins.
- Tests 13 crawlers including GPTBot, ClaudeBot, PerplexityBot and Google-Extended.
- A missing robots.txt means every crawler may access everything.
Robots.txt Tester FAQ
Does robots.txt stop a page appearing in Google?
Not reliably. It stops Google crawling the page, but the URL can still be indexed from links. To keep a page out of search results, allow crawling and use a noindex tag instead.
Should I block AI crawlers?
It depends on your goals. Blocking GPTBot or ClaudeBot stops your content being used to train those models, but blocking their search crawlers (like OAI-SearchBot or PerplexityBot) can reduce how often AI assistants cite and link to your site.
What is Google-Extended?
Google-Extended is a robots.txt token that controls whether Google can use your content to train Gemini models. It doesn't affect Google Search crawling or rankings.
Where should robots.txt be located?
At the root of each host: https://example.com/robots.txt. Subdomains like blog.example.com need their own file.