Robots.txt Checker and Validator
With this tool one can examine the robots.txt file on a site, put crawler rules to the test and validate them, check URL access and find any sitemap declarations.
Robots.txt Analysis
File information
Test crawler access to a URL
Choose a crawler and enter a path to evaluate the applicable rules in the retrieved file. This test runs locally on the results already loaded.
Crawler groups and directives
Rules are grouped by their User-agent declarations. Empty Disallow values do not block paths.
Sitemap declarations
Sitemap URLs declared inside robots.txt.
Additional directives
Validation findings
Robots.txt controls crawler access requests; it is not an access-control mechanism. Search engines may interpret extensions differently, and a blocked URL can sometimes still appear in search results without a crawled snippet.
What this robots.txt checker examines
Check the public robots.txt file served by a website and understand which crawler rules it publishes.
Free Robots.txt Validator and Tester
With Rankifo’s robots.txt validator, website owners, developers and SEOs can put the instructions for compliant web crawlers to the test. Put in a public site address and the tool will pull the root-level robots.txt file so one can look over user-agent groups, Allow and Disallow directives, sitemap declarations and test URL paths.
The checker is there to point out any formatting issues or path disclosures that may be sensitive. When it comes to the URL tester, the most specific rule of match is applied; if two rules are equally specific, Allow is given precedence. The results should be viewed as a diagnostic and not as an assurance of how each crawler will act.
How to Test a Robots.txt File
- Input the public domain of your site, e.g.
https://example.com. - Hit Validate robots.txt to get the file from the root of the website.
- Have a look at the HTTP status, whether the file is available, the user-agent groups, directives and sitemaps.
- Put a path like
/products/into the URL tester and choose Googlebot, Bingbot or some other general crawler. - Before making any changes to the live file, see what the matching rule is and take note of validation warnings.
Once the robots.txt has been edited on the server, run the check to be sure the public version has the right directives in place.
Understanding Robots.txt Directives
User-agent
This directive is used to single out the crawler group for which the subsequent rules are written. One can name a particular crawler or use User-agent: * for a general group.
Disallow
A Disallow means the matching crawler is to be told off from requesting URLs on the given path. Disallow: /private/, for instance, is an instruction to compliant crawlers not to go under that path.
Allow
Allow is an exception to a wider restriction if its path is more precise. In the case of equal specificity between an Allow and a Disallow, the Google way of matching will give the edge to Allow.
Wildcard and end-of-path matching
An asterisk (*) will do for a string of characters and a dollar sign ($) denotes the end of the pattern. It is best to consult the search engine in question to see how their crawlers handle this.
Sitemap
The Sitemap directive is for putting the absolute URL of an XML sitemap on record. There is no need to have it inside a user-agent group and it can be done for more than one file.
Crawl-delay
Some crawlers support Crawl-delay but it is a non-standard extension. Do not count on every search engine to respect it.
Important Robots.txt SEO and Security Considerations
- Private content should not be secured with robots.txt. It is a public file and a Disallow does nothing to stop someone from going to a URL directly.
- Crawling is not the same as indexing. A blocked URL can be indexed via outside links even if Disallow is in effect; it is not a noindex.
- Leave important pages to be crawled. Do not put up a block on content, images or scripts that are necessary for the page to be understood.
- Host and protocol matter. The file is for the scheme and port in question. As a rule, a subdomain will want its own robots.txt.
- Make sure sitemap URLs are valid. Declared locations must be correct and open to the public.
- Be careful with changes. A wide ranging Disallow can have an impact on many URLs, so put the important ones through the test before going live.
Frequently Asked Questions
What is robots.txt?
A plain-text file found at the root of a website host, robots.txt puts out instructions for crawlers. By way of the Robots Exclusion Protocol it makes known to compliant crawlers which URL paths they are to forgo and which they can go after.
Does Disallow prevent Google from indexing a page?
Not always. While Disallow is an instruction to a crawler not to retrieve a given URL, that does not preclude the URL from being indexed if it is found in another place. For the crawler to see a noindex directive it has to have access to the page or response.
Is it possible to block a folder yet permit a file within it?
Yes. So long as the matching syntax is supported by the crawler, an Allow rule of greater specificity can be made to override a more general Disallow rule.
In the event of a 404 from robots.txt?
The 404 indicates the file is not there. The protocol’s handling of an unavailable file will let crawlers carry on unencumbered by any robots.txt rules. A 5xx from the server is something else entirely and means the file was not reliably accessible.
May I put several sitemaps in robots.txt?
You can. Put in a Sitemap directive for every sitemap URL. There is no restriction to one user-agent group for these declarations.
Will this checker make changes to my robots.txt?
No. Rankifo is limited to pulling and analysing the public file. We do not upload or edit files on your site.