robots.txt ファイルは、基本的にはサイトに対するクローラーのトラフィックを管理するために使用され、通常は、ファイル形式に応じて Google に対して非公開にするファイルを設定します。
さまざまなファイル形式に対する robots.txt の影響
ウェブページ
Google のクローラーからのリクエストによってサーバーが過負荷になっていると考えられる場合に、ウェブページ(HTML や PDF など、メディア以外の Google が読み取れる形式)に対して robots.txt ファイルを使用することで、クロール トラフィックを管理できます。また、サイト上の重要でないページや類似したページのクロールを防ぐこともできます。
重要でない画像、スクリプト、スタイル ファイルなどのリソースなしにページが読み込まれても、ページが重大な影響を受けないと考えられる場合は、robots.txt ファイルを使用してそうしたリソース ファイルをブロックできます。ただし、それらのリソースがないと Google のクローラーがページを把握しにくくなる場合はブロックしないでください。ブロックすると、それらのリソースを利用しているページを Google が適切に分析できなくなります。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-08-04 UTC。"],[[["\u003cp\u003eA robots.txt file primarily manages crawler traffic to your site and can prevent specific files from appearing in Google Search results.\u003c/p\u003e\n"],["\u003cp\u003eIt's not a foolproof way to hide web pages from Google; use \u003ccode\u003enoindex\u003c/code\u003e or password protection for that purpose.\u003c/p\u003e\n"],["\u003cp\u003eWhile Googlebot respects robots.txt rules, other crawlers may not, and interpretations can vary.\u003c/p\u003e\n"],["\u003cp\u003eDisallowed pages can still be indexed if linked to from external sites, so consider alternative blocking methods for complete exclusion.\u003c/p\u003e\n"],["\u003cp\u003eCMS platforms like Wix or Blogger may offer built-in search settings instead of direct robots.txt editing.\u003c/p\u003e\n"]]],["A robots.txt file manages search engine crawler access to URLs on a site, primarily to avoid server overload. It's not for hiding pages from Google; use `noindex` or password protection for that. The robots.txt file can also manage crawl traffic for media files to prevent them from appearing in search results. However, pages disallowed in robots.txt can still be indexed if linked externally, and it may not be supported by all search engines. Consider alternative methods like `noindex` or password protection.\n"],null,[]]