robots.txt & Sitemap Validator - test crawl rules and XML sitemaps | POLPROG Skip to content

robots.txt & Sitemap Validator FREE

Analyze a site robots.txt and its sitemap tree. Parse crawler rules, follow sitemap indexes, validate the documents it reads and check the URLs they submit.

Free to use No registration Privacy-first
Enter a website to analyze

Enter a domain or any page on it. robots.txt is always read from the root of that host, so a path in the address changes nothing.

Advanced options
Scan mode

Analyze a specific sitemap as well as the ones found automatically. Useful for a sitemap that robots.txt does not declare.

Rule matching is per crawler. This choice drives the URL tester and the crawlability column.

This analysis runs on POLPROG servers, because reading another site robots.txt and sitemaps cannot be done from your browser. Only publicly available files are requested, nothing is stored after the response is sent, and no report is saved or shared.

Reference

robots.txt and XML sitemaps, briefly

01

What robots.txt is

A plain-text file at the root of a host, at /robots.txt, that tells crawlers which URL paths they may request. It is a crawl instruction, not an access control: the file is public, and a crawler that ignores it is not breaking anything technical. Only four directives are standardised in RFC 9309 - User-agent, Allow, Disallow and Sitemap.

02

robots.txt does not control indexing

Disallow stops a page being fetched. It does not stop the URL appearing in search results: a blocked page that other sites link to can still be listed, without a description, because the crawler was never allowed to read the page to find your noindex tag. To keep a page out of the index, leave it crawlable and serve a noindex robots meta tag or an X-Robots-Tag header.

03

How rules are matched

A crawler uses one group: the one whose User-agent token is the longest match for its own name, falling back to *. Within that group the most specific rule wins, measured by the length of the path pattern, not by the order the lines appear in. When an Allow and a Disallow of identical length both match, Allow wins. * matches any run of characters and a trailing $ anchors the end of the URL.

04

What an XML sitemap is

A list of the URLs you want crawled, with optional lastmod, changefreq and priority for each. It helps discovery on large sites, on sites with pages that are not well linked, and on new sites. It does not guarantee indexing, and Google ignores changefreq and priority entirely.

05

What a sitemap index is

A sitemap of sitemaps. One file can hold at most 50,000 URLs and 50 MB uncompressed, so a large site splits its URLs across several sitemaps and lists those files in a sitemapindex document. That index is the single URL you declare in robots.txt and submit in Search Console.

06

The limits that actually bite

A sitemap: 50,000 URLs and 50 MB uncompressed, per file. Gzip is allowed and the 50 MB applies to the decompressed size. robots.txt: Google reads the first 500 KiB and discards the rest. A sitemap may only list URLs on the host that serves it, unless cross-submission is configured.

07

Where each file has to live

robots.txt is only valid at the root of a host and port: https://example.com/robots.txt governs https://example.com, and nothing else. A file at /blog/robots.txt is ignored, and https://example.com/robots.txt says nothing about http://example.com or about www.example.com. A sitemap can live anywhere on its host, and is found through robots.txt or by submission.

08

The contradiction to look for first

A URL that appears in the sitemap and is disallowed by robots.txt. The sitemap asks for it to be crawled and robots.txt refuses, so it is neither crawled nor reliably indexed, and Search Console reports it as an error. This tool checks every sitemap URL against the rules in the same robots.txt and counts them.

Scope and limits

What this analysis covers

Measured from the files themselves, with the limits stated

Everything reported here is read from the site own robots.txt and sitemap files during the scan: HTTP status, file size, parsed rules, XML structure and the URLs each sitemap lists. Crawlability is computed by matching those URLs against the same robots.txt, using RFC 9309 rules. The scan reads at most 40 sitemap documents, five levels of index nesting and 50,000 URLs, and it checks HTTP status for a bounded number of URLs rather than all of them; wherever a number covers only part of the site, the report says so beside it. It cannot tell you whether a page is indexed: nothing in robots.txt, a sitemap or an HTTP response carries that, and this tool has no Search Console connection.

Help

FAQ

Does robots.txt stop a page appearing in Google?

No. Disallow stops a crawler fetching the page; it does not remove the URL from the index. A blocked page that other sites link to can still be listed, usually with no description, because the crawler was never allowed to read the page. To keep a page out of the index, leave it crawlable and serve a noindex robots meta tag or an X-Robots-Tag header. A Noindex line inside robots.txt does nothing: Google has never supported it and stopped honouring it in 2019.

Where does robots.txt have to be?

At the root of the host and port it governs, and nowhere else. https://example.com/robots.txt applies to https://example.com and to nothing more: not to http://example.com, not to www.example.com, not to a subdomain. A file at /blog/robots.txt is ignored. This tool always reads the root of whatever host you enter, so a path in the address changes nothing.

How many URLs can one sitemap hold?

Up to 50,000 URLs and 50 MB uncompressed per file. Gzip is allowed and the size limit applies to the decompressed file. Past either limit, split the URLs across several sitemaps and list those files from a sitemap index; an index has the same 50,000 and 50 MB limits over the sitemaps it references.

Which rule wins when two rules match the same URL?

The most specific one, measured by the length of the path pattern, not the order the lines appear in the file. When an Allow and a Disallow of identical length both match, Allow wins. Before that, the crawler picks one group: the one whose User-agent token is the longest match for its own name, falling back to the * group. The URL tester in this report shows which rule decided each answer and on which line it sits.

Does POLPROG store the sites I analyze?

No. The analysis runs on POLPROG servers, because reading another site robots.txt and sitemaps cannot be done from your browser, and only publicly available files are requested. Nothing is written to a database, no report is saved, and no shareable copy is created. The link in your address bar re-runs the analysis rather than loading a stored one.

Why does the report say only some URLs were checked?

Because checking a URL means sending a real request to the analyzed site, and a large sitemap holds tens of thousands of them. The sitemap structure is always parsed in full, so the counts, duplicates, lastmod and crawlability figures cover every URL the scan read. HTTP status is requested for a bounded number: about 40 in Quick analysis and up to 500 in Full URL analysis. The report always states how many were actually requested, and never presents a sample as if it covered the whole site.

Build a better web, faster.

We build custom software and solutions tailored to your needs.

Get in touch