Skip to content

PubWeb

Tools

Robots.txt and sitemap checker

Robots.txt checker and sitemap validator for publishers

Type your site: we read its robots.txt, its sitemaps and a few of their pages, show which paths Googlebot, AdsBot-Google and Mediapartners-Google may crawl, and list what to fix. Free, no sign-up.

Our server reads the address you type, with its robots.txt, sitemaps and a few of their pages, through our proxy network — the site sees the proxy, not you — and returns what it read for the checks. Answers are kept for up to 10 minutes and shown to anyone who checks the same address in that time.

Robots.txt and sitemap checker

Our server reads the address you type, with its robots.txt, sitemaps and a few of their pages, through our proxy network — the site sees the proxy, not you — and returns what it read for the checks. Answers are kept for up to 10 minutes and shown to anyone who checks the same address in that time.

How a crawler reads robots.txt, rule by rule

robots.txt is a plain-text file at /robots.txt that tells crawlers which paths they may fetch, one file for each protocol, host and port. It does not remove pages from Google and it is not access control: well-behaved crawlers follow it, others may not. The tool reads the file your site serves, with the sitemaps it declares, and tests its rules.

Press Example, then Check, to read pubweb.ai: its robots.txt gives each crawler a group of its own, refuses a few by name, keeps /lang/ and /region/ out of reach and declares one sitemap. Pick Googlebot and test /lang/en to see the rule that blocks it, then type your own site.

How to use it

  1. Type your site’s address, such as example.com, and press Check. Only the site counts: a path you type is ignored.
  2. Read the verdict at the top, then the site checks: how robots.txt answered, which crawlers it blocks, which sitemaps were found and how the home page answers. Each problem says what to change.
  3. In the robots.txt section, pick a crawler (Googlebot, AdsBot-Google, Mediapartners-Google or your own token) and type a path or full URL: you see allowed or blocked, the rule that decided it and its line.
  4. Each sitemap shows its kind, URL count and size, and every problem with its line. Show the file opens what we read, so you can check each finding against it.
  5. Fix the files on your server, then check again. Answers are kept for up to 10 minutes, so a change can take that long to show.

How Google picks the rule

A crawler follows the one group whose user-agent matches it most specifically; groups that name the same agent are merged, and the * group is not added to them. Inside that group the longest matching path wins, * matches any run of characters, $ marks the end, paths are case-sensitive, and an Allow wins a tie with a Disallow.

Matching follows Google’s open-source robots.txt parser.

robots.txt controls crawling, while a noindex rule controls indexing: check yours with the meta tag checker.

AdsBot and Mediapartners ignore the * group

Google documents that AdsBot-Google, AdsBot-Google-Mobile and Mediapartners-Google, the crawler of AdSense and Ad Manager, ignore the global user agent. A Disallow under User-agent: * does not stop them, and a group that names one of them applies to it alone, so a stray Disallow there can hide pages from the ad crawler.

Each of the three is its own choice in the tester.

What robots.txt does not do

It controls crawling, not indexing: Google may still index a blocked URL without its content, and RFC 9309 says the rules are not a form of access control. Google reads only user-agent, allow, disallow and sitemap, ignores crawl-delay, and reads the first 500 KiB of the file.

Ad systems read another plain-text file at the root of your domain: check it with the ads.txt validator.

The sitemap rules this checker applies

The root is urlset or sitemapindex, with at most 50,000 URLs and 50 MB uncompressed (an index lists up to 50,000 sitemaps); every loc is an absolute URL under 2,048 characters with entity-escaped values, and lastmod follows the W3C datetime format, as sitemaps.org sets out. Google ignores priority and changefreq, and uses lastmod only when it is accurate.

The image, video and news extensions and hreflang links are checked against Google’s documentation. For the structured data on the same pages, use the schema validator.

Sitemap and robots.txt must agree

A sitemap lists the pages you want in search. Every URL the tool reads from your sitemaps is tested against the robots.txt rules of the crawler you choose, and a few of those pages are opened: one that redirects, answers an error, carries noindex or names another page as canonical sends Google mixed signals.

This is a sample, not a crawl. For any single page, the meta tag checker reads its tags, and Search Console’s URL Inspection shows what Google itself saw.

Questions

What is a robots.txt file?

A plain text file at the root of a site, at /robots.txt, that tells crawlers which paths they may fetch. Each host, protocol and port has its own file.

How do I test whether Googlebot can crawl a URL?

Type your site and press Check, then choose Googlebot in the robots.txt section and type the path or URL. The tool applies the rules the way Google documents them and shows the rule that decided. Paths are case-sensitive.

Does Disallow remove a page from Google?

No. Disallow stops crawling, not indexing: Google can still index a blocked URL without its content. To keep a page out of the index, use noindex on a page that crawlers are allowed to fetch.

Why does AdsBot-Google ignore my User-agent: * rules?

Because Google documents that its special-case crawlers AdsBot-Google, AdsBot-Google-Mobile and Mediapartners-Google, the crawler of AdSense and Ad Manager, ignore the global user agent. Rules meant for them must be in a group that names them.

How big can a robots.txt or a sitemap be?

Google reads the first 500 KiB of a robots.txt and ignores the rest. A sitemap can hold 50,000 URLs and 50 MB uncompressed; beyond that, split it and list the parts in a sitemap index.

What does the tool read from my site?

Our server reads /robots.txt, the home page, up to three sitemaps robots.txt declares (or /sitemap.xml and /sitemap_index.xml when none is declared), up to five sitemaps an index lists and up to five pages from them, through our proxy network, so the site sees the proxy, not you. Show the file opens each file as we read it. A site that blocks our reader may still let Googlebot in, so Search Console has the final word.

Why does a change I made not show yet?

Answers are kept for up to 10 minutes, so a fix can take that long to appear here. Google may keep your robots.txt for up to 24 hours; after an urgent change, use Request a recrawl in Search Console’s robots.txt report.

All free tools

PubWeb

Crawlers sorted? Watch what the pages earn.

PubWeb’s analytics shows revenue per session and per visitor by site and traffic source, and it prices your Ad Manager blocks with one floor per block, country group and device.