Skip to content

Free Robots.txt Generator

Build a valid robots.txt: choose folders to block, decide which AI crawlers may read your site, and add your sitemap.

  • Free, no sign-up
  • Runs in your browser; nothing is uploaded
  • Updated Oct 25, 2026

Everyone

Folders to keep out of search

AI crawlers

Ticked crawlers are blocked from the whole site. Blocking search crawlers like OAI-SearchBot or PerplexityBot can keep you out of their answers.

  • OpenAI · Training
  • OpenAI · ChatGPT search
  • Anthropic · Training
  • Perplexity · Search
  • Google · Gemini training
  • Common Crawl · Open dataset
  • Apple · Training

robots.txt

User-agent: *
Disallow: /admin
Disallow: /api/

Save it at the root: yoursite.com/robots.txt

How to use the robots.txt generator

  1. 1

    Pick folders to block

    Admin, account and search pages are common; add your own.

  2. 2

    Decide on AI crawlers

    Allow or block GPTBot, ClaudeBot, PerplexityBot and Google-Extended.

  3. 3

    Add your sitemap and copy

    Save the file as robots.txt at your site's root.

What belongs in robots.txt

robots.txt tells crawlers which paths they may fetch. Block pages that should never be crawled, like admin panels, account pages and internal search results, and point crawlers to your sitemap.

Do not block CSS or JavaScript files; search engines need them to render the page. And remember that robots.txt is public: it is not a way to hide secret URLs.

AI crawlers

OpenAI uses GPTBot, Anthropic uses ClaudeBot, Perplexity uses PerplexityBot, and Google uses the Google-Extended token for AI training without affecting Search. Allowing them lets your pages be read and cited; blocking them is a business decision.

Questions

Does robots.txt remove pages from Google?

No. It stops crawling. Use a noindex robots tag on the page to keep it out of results.

Does blocking Google-Extended affect my rankings?

No. Google says Google-Extended controls use for its AI models and does not affect Google Search.

Where should I upload the file?

To the root of the host: https://yoursite.com/robots.txt.

How do I check the file works?

Use the robots.txt tester on any page of your site to see what each crawler may fetch.

All free tools

Launch your startup on Aback Launch

Get a launch page that search engines and AI assistants can read, a place in the weekly launch list, and a review by a real person. Free to join.