SEO
robots.txt Validator
robots.txtを検証 — User-agentグループの構造、ディレクティブ、特定パスの許可/禁止テスト。
ドメインのみを指定すると/robots.txtが補完されます。すべてのサイトで動作するわけではありません — クロスオリジンリクエスト(CORS)をブロックするサイトもあります。取得に失敗した場合は、新しいタブでrobots.txtを開き、内容を手動で貼り付けてください。
robots.txt controls which paths of a site search bots are allowed to crawl. A mistake in this file can accidentally block an entire site from indexing, or expose internal sections that shouldn't be crawled. This tool checks the file's structure and tests a specific path against allow/disallow rules.
How to use it
- Paste the contents of robots.txt and the tool parses the User-agent groups and directives (Allow, Disallow, Sitemap).
- Enter a specific path (e.g. /admin/ or /blog/post-1) to check whether it's allowed for a chosen bot.
- Syntax errors and suspicious constructs are flagged separately from valid directives.
Common uses
- Checking before a deploy that a new robots.txt hasn't accidentally blocked important pages.
- Debugging why a specific page isn't indexed — it may be caught by a Disallow rule.
- Comparing rules for different bots (Googlebot, Bingbot, etc.) when separate User-agent groups target them.
Things to keep in mind
robots.txt only blocks crawling — it doesn't guarantee a page won't appear in the index: if something else links to it, Google can still show the URL with no description. To reliably exclude a page, use a meta noindex tag, and the page must not be blocked in robots.txt for that tag to be seen.
Paths in robots.txt are case-sensitive — /Page and /page are treated as different paths.
よくある質問
期待していたページがDisallowルールでブロックされないのはなぜですか?
robots.txtのルールは正確なページではなくプレフィックスで照合され、より具体的なルールが一般的なルールを上書きします — プレフィックスマッチングが実際にどう機能するかを考慮しない限り、Disallow: /blogは/blog-archiveをブロックせず、他の場所にあるAllowルールがより広いDisallowを上書きすることがあります。
robots.txtは実際にページのインデックス作成を防ぎますか?
それ単体では確実ではありません。行儀の良いクローラーにページを取得しないよう求めるだけです — 他のページからリンクされていれば、禁止されたページでも(内容なしで)インデックスされる可能性があるため、本当に保証したい場合はnoindexメタタグかヘッダーを使ってください。
robots.txtの内容は検証のためにどこかに送信されますか?
いいえ。検証はブラウザ内で完全に行われます — サーバーには何も送信されません。
Googlebotはrobots.txt内のワイルドカード文字*と$をサポートしていますか?
はい — Googleは*を任意の文字列、$をURLの末尾としてサポートしていますが、これは1994年の元の仕様を超える拡張機能であるため、すべてのボットが認識するとは限りません。
robots.txtのパスは大文字と小文字を区別しますか?
はい — /Admin/と/admin/は異なるパスとして扱われるため、Disallowルールはサイトの実際のURLで使われている大文字・小文字と正確に一致する必要があります。