Rules for every crawler
User-agent groups with allowed and blocked paths. Googlebot, Yandex, GPTBot and the rest, each on its own.
Enter a domain. We download its robots.txt, break the rules down by crawler and tell you whether a given address can be indexed.
Try: google.com, wikipedia.org, github.com
User-agent: *Rule group for all crawlersDisallow: /admin/Closes the whole sectionDisallow: /cartAllow: /admin/public/Exception: the longer rule winsUser-agent: GPTBotSeparate group for one crawlerDisallow: /The whole site is closed to itSitemap: https://example.com/sitemap.xmlWhere the sitemap livesUser-agent groups with allowed and blocked paths. Googlebot, Yandex, GPTBot and the rest, each on its own.
Paste a page link and pick a crawler. You get a clear answer: can it crawl that page.
Sitemap links, the main mirror and the URL parameters crawlers should ignore.
Open source
bopoda/robots-txt-parser
Every check on this site runs on an open-source PHP library that parses robots.txt by the Google and Yandex rules. Install it with Composer and run the same checks in your own project.
$ composer require bopoda/robots-txt-parser
use RobotsTxtParser\RobotsTxtParser;
use RobotsTxtParser\RobotsTxtValidator;
$parser = new RobotsTxtParser($robotsTxt);
$validator = new RobotsTxtValidator($parser->getRules());
$validator->isUrlAllow('/admin/', 'googlebot'); // false