Home / Core Health / Create a robots.txt file and reference your sitemap
Crawlability · Scan Check Guide

Create a robots.txt file and reference your sitemap

20 min Impact: high Effort: low ✓ Scan-verified — no manual checkbox

Robots.txt is the first file crawlers check before touching anything else on your site — it tells them what they're allowed to access, and a misconfigured one can silently block your entire site from being indexed with no other visible symptom.

Robots.txt tells crawlers what to index. A missing file is fine — but a misconfigured one can silently hide your entire site from Google.

The full picture

A robots.txt file serves as the first point of contact between your site and any crawler — search engine, AI system, or other automated visitor — attempting to understand what content you want crawled and indexed versus what should be left alone, making this foundational file's accuracy genuinely important for how your entire site gets discovered and processed.

Referencing your sitemap directly within this file provides crawlers with an explicit, efficient path to your complete list of indexable pages, rather than requiring them to discover your site's structure purely through following links — this represents a genuine efficiency gain for crawl discovery, particularly valuable for larger sites or sites with content that might not be easily discoverable through link-following alone.

The genuine risk of getting this file wrong deserves real respect — an overly restrictive robots.txt can inadvertently block crawlers from content you actually want indexed, silently undermining your search visibility without any obvious error or warning, while an absent file leaves crawlers to make their own default assumptions about what should be crawled, which may not align with your actual genuine intentions.

This file requires periodic review as your site evolves — content and site structure changes over time, and a robots.txt file that was accurate at initial creation can become outdated as new sections get added or existing ones get restructured, making this a file worth revisiting rather than treating as a permanent, one-time configuration.

How to fix it

  1. 1
    Check what your current robots.txt actually says
    Visit yoursite.com/robots.txt directly and read it — confirm it isn't accidentally blocking everything with Disallow: /.
  2. 2
    Reference your sitemap
    Add a Sitemap: line pointing to your full sitemap URL — this helps crawlers discover your content faster.
  3. 3
    Only block what genuinely shouldn't be crawled
    Admin areas, internal search results, and duplicate-content paths are reasonable to block — your actual content pages should not be.

Common mistakes

How you'll know it's done

robots.txt exists, doesn't block legitimate content, and references your sitemap.

H.I.V.E. checks this automatically

Fix it, then re-scan — the check confirms itself. No manual checkbox, the scan is the truth.

Run this check in H.I.V.E. →