robots.txt tester
robots.txt Tester
Free, no sign-up. We only fetch the public URL you enter.
Short answer
Enter your domain above and the robots.txt tester loads the file and shows its rules: which user agents are addressed, which paths are disallowed or allowed and which sitemaps are listed. The most dangerous mistake is a too-broad Disallow – a single “Disallow: /” for all crawlers blocks the whole website, often carried over from a staging system.
- Free, no sign-up: rules per user agent, sitemaps.
- Spots blocking rules such as “Disallow: /”.
- robots.txt controls crawling, not indexing – use noindex for that.
User-agent: * Disallow: /cart/ Disallow: /checkout/ Disallow: / Sitemap: https://www.myshop.com/sitemap_index.xml
With this free robots.txt tester you check whether your robots.txt allows or blocks the right areas for crawlers. The file is small but powerful: a single wrong line can exclude entire site areas from crawling and so silently remove them from the index. This tester helps you recognise such consequential errors before they cost visibility.
What the robots.txt does
The robots.txt is a simple text file in the root directory of your domain that tells search engine crawlers which areas they may fetch and which not. It is the first thing a well-behaved crawler reads on your site and steers where its attention flows — an important tool, especially with large sites.
What matters is what the robots.txt does not do: it steers crawling, not indexing directly. A page blocked by robots.txt is not crawled but can under certain circumstances still appear in the index if it is linked from outside. This distinction is the source of many misunderstandings.
Understanding allow and disallow
The heart of the robots.txt are allow and disallow rules that, for certain crawlers (user-agent), determine which paths are allowed or blocked. A disallow blocks a path and everything below it; an allow can re-open a narrower exception within a blocked area. The order and precision of these rules decide their effect.
This is exactly where the most consequential errors arise. A disallow that is too broad — such as a single slash — accidentally blocks the whole site. A rule that targets the wrong path either leaves important pages unprotected or blocks exactly those that are meant to be found.
How to read the result
The result shows the full content of your robots.txt, how many user-agent groups it contains and which sitemaps it lists. Read the rules for the crawlers that matter – usually * and Googlebot – and check whether a Disallow covers your homepage, central categories or important content pages. Google Search Console’s robots.txt report additionally shows how Google itself has read the file.
The test is especially worthwhile for the pages that matter: your homepage, central categories, important content pages. If these are accidentally blocked, it is a silent but serious error that can completely undermine their visibility.
The most consequential error
The most feared robots.txt error is an accidental, too-broad disallow that excludes the whole site from crawling. This happens alarmingly easily — such as when a robots.txt from a development environment that blocks everything is accidentally carried over to the live site. The site works normally but gradually vanishes from the search results.
The treacherous part is that none of this produces a visible error. No one gets a warning, the page loads as always — only the search traffic dries up slowly. Without a deliberate check, the error is often noticed only weeks later, when the damage is already done.
Crawling versus indexing
A central misunderstanding is wanting to keep a page out of the index with the robots.txt. For that it is the wrong tool: it prevents crawling, but a blocked, externally linked page can still appear in the index — only without content, which is a bad result.
If a page is to reliably not appear in the index, the noindex tag is the right means. For that, though, the page must be crawlable, so the search engine sees the noindex at all — so it must precisely not be blocked by robots.txt. Keeping the two tools cleanly apart prevents exactly this common trap.
What belongs in the robots.txt
Sensibly blocked are areas without value for search: internal search results, endless filter and parameter pages, purely functional or administration paths. This conserves the crawl budget by keeping crawlers away from dead ends, without impairing important content.
- Internal search result pages
- Endless filter and parameter variants
- Administration and function paths
- The reference to the XML sitemap
- Not blocked: important content and category pages
Test before the deploy
Because a robots.txt error is so consequential and so silent, every change belongs tested before the deploy. A single wrongly set line can make the difference between a well-found and an invisible page, and the damage is greater the longer it goes unnoticed.
Especially critical is the transition from a development to a live environment. Many development environments deliberately block everything to avoid being indexed — if this file is accidentally carried over live, the whole site vanishes. A test before and directly after the deploy catches exactly this error.
The sitemap in the robots.txt
Besides blocking, the robots.txt has a second useful task: it can point to your XML sitemap. This reference helps search engines find your sitemap, even if you have not submitted it elsewhere — a small but sensible entry that brings crawling and findability together.
- robots.txt Sitemap line
- Sitemap List of URLs
- Crawler Finds and visits pages
- Index Google decides
This way the robots.txt becomes the central steering point: on the one hand it tells crawlers what to avoid, on the other it points them to the map of your important pages. Both functions together turn a simple text file into an effective tool of crawl steering.
Steering different crawlers specifically
The robots.txt does not address only "the search engines" as a whole but can set its own rules for individual crawlers. Via the user-agent detail it can be determined that a rule applies only to a certain bot — such as to set tighter limits for a resource-hungry crawler while the large search engines keep full access.
This is powerful but also a source of errors. If rules for several user-agents are mixed, it is not always obvious which actually applies to a certain crawler. A too-general rule can overwrite a more specific one or vice versa, depending on the build of the file.
For most websites a simple, uniform set of rules for all crawlers is enough. Differentiated rules are worthwhile only when a concrete bot demonstrably causes problems — such as through too-intensive crawling that burdens the server.
What matters in any case is to check the effect for the relevant crawlers concretely, instead of relying on the assumption that a rule applies correctly. A test for individual addresses and crawlers shows what is actually allowed or blocked.
Knowing the limits of the robots.txt
As useful as the robots.txt is, it has clear limits one should know. It is a request, not an enforcement: well-behaved search engine crawlers abide by it, but malicious bots or scrapers simply ignore it. Whoever wants to protect confidential areas must therefore never rely on the robots.txt alone — for that, real access controls are needed.
A further limit is the already-mentioned confusion of crawling and indexing. The robots.txt can prevent fetching but not reliably appearance in the index. A blocked, externally linked page can still appear — without content, which is a bad result.
The file itself is also publicly viewable. Anyone can call up your robots.txt, and the paths blocked in it may reveal the existence of areas you actually wanted to keep inconspicuous. Using it as a hiding place therefore often achieves the opposite.
These limits do not mean the robots.txt is unimportant — on the contrary, for crawl steering it is central. They only mean it is the right tool for the right purpose and should not be misused for tasks there are better means for.
Those who know these limits use the robots.txt specifically where it works — in steering crawling — and reach for the respectively suitable tools for indexing and access protection.
robots.txt and monitordefend
monitordefend does not alert on changes to the robots.txt file itself, so test it here before and after every deploy that touches it. Its effects, however, show up in the dashboard: the broken-link crawler respects your Disallow rules, the sitemap checker finds your sitemap through the Sitemap line in robots.txt, and with Search Console connected the indexing checker shows when pages start dropping out of Google.
A sudden fall in indexed pages a few days after a deploy is often the first visible sign of an accidental block – and the moment to run this tester again.
Frequently asked questions
Does the robots.txt keep a page out of the index?
Not reliably. It prevents crawling, but a blocked, externally linked page can still appear in the index. To keep a page safely out of the index, you use a noindex tag — for which the page must be crawlable, so not blocked by robots.txt.
What is the most dangerous robots.txt error?
A too-broad disallow that excludes the whole site from crawling — often when a file blocking everything from a development environment is accidentally carried over live. The site works normally but vanishes from the search results.
What should I block via robots.txt?
Areas without search value such as internal search results, endless filter pages and function paths. Important content and category pages should not be blocked. In addition, you can point to your XML sitemap.
Should I test the robots.txt before the deploy?
Absolutely. A single wrong line can lock out entire areas, and the error is silent. A test before and directly after the deploy — especially when switching from a development to the live environment — catches it.