Repository navigation
Getting Started
Alexandr Krikun edited this page Oct 26, 2026
·
1 revision
Node.js 18 or newer. No other dependencies.
# one-off run
npx github:ksanyok/robots-checker example.com
# global CLI
npm install -g github:ksanyok/robots-checker
# as a library in your project
npm install github:ksanyok/robots-checkerrobots-checker example.comThe header shows the file URL, HTTP status and size, the user-agent groups found and the sitemaps listed. Each tested URL gets ✔ allowed or ✖ blocked, with the group that applied and the deciding rule and line number. Problems in the file follow.
| Code | Meaning |
|---|---|
| 0 | No errors (warnings allowed unless --strict) |
| 1 | Errors found (or warnings with --strict) |
| 2 | Bad arguments or the check could not run |
Test specific URLs as Googlebot
robots-checker example.com --url /blog/ --url /cart --url "/search?q=shoes"Test as another crawler
robots-checker example.com --ua Bingbot --url /private/Check a local file before deploying it
robots-checker --file public/robots.txt --url / --url /assets/app.jsUse the online Robots.txt Checker.
Home · Getting started · FAQ · Troubleshooting · Online tool