Skip to content
GigAI Tools
4 tools
Problem → solution

My website needs a robots.txt file

Control what search engines crawl, and avoid the classic mistake of accidentally blocking your entire site.

The quick answer

A robots.txt file tells search-engine crawlers which parts of your site they may or may not crawl, and points them to your sitemap. Generate one with a robots.txt tool, set your allow/disallow rules, add the sitemap line, and validate it before uploading to your site root. Our generator and validator run in your browser.

How to fix it

Follow these steps and you'll have it sorted in a couple of minutes.

  1. 1

    Generate your robots.txt

    Use the generator to set which user-agents and paths are allowed or disallowed.

  2. 2

    Add your sitemap

    Include a 'Sitemap:' line pointing to your sitemap.xml so crawlers can find it.

  3. 3

    Validate the rules

    Run the Validator to confirm you haven't accidentally blocked pages you want indexed.

  4. 4

    Upload to your root

    Place it at yoursite.com/robots.txt. It must live at the domain root to take effect.

Common mistakes to avoid
  • 'Disallow: /'. This blocks your entire site from search engines. It's the most common and most damaging robots.txt mistake.
  • Using robots.txt to hide private pages. It stops crawling, not access. Use authentication or noindex for real privacy.
  • Placing it in a subfolder. Robots.txt only works at the domain root.

Frequently asked questions

Ready? Start with Robots.txt Generator

Free, private and instant: everything runs in your browser.