Get started
Free tool

robots.txt generator

Build a robots.txt file with rules for AI crawlers: allow everything, allow AI answers but block training, or block all AI. Add paths to keep private and your sitemap, then copy or download it. Built in your browser.

AI crawlers
Pages to keep crawlers out of (optional)

Each path starts with /. Applies to every crawler. Use * for any characters and $ for the end of a URL.

Sitemap (optional)

Preview robots.txt

User-agent: *
Allow: /

    Publish and test it

    Upload the file to your site's root so it loads at yourdomain.com/robots.txt, then run the free AI crawler checker to confirm each crawler is allowed or blocked as you meant.

    What robots.txt does

    robots.txt is a plain text file at the root of a website that tells crawlers which pages they may fetch. Each group starts with one or more User-agent lines naming crawlers, followed by Allow and Disallow rules for URL paths. A crawler follows the group that names it, or the * group if none does, and the longest matching rule wins. The format is a published standard, RFC 9309, and every major search and AI company says its crawlers obey it.

    The three AI presets

    Allow AI answers, block training is the choice most businesses make. It keeps you visible in ChatGPT search, Perplexity, Claude and Google's AI answers, which send visitors and cite sources, while telling model-training crawlers not to collect your pages. It names each training crawler in its own group, so search and answer crawlers are untouched.

    Allow everything suits most marketing sites that want to be known as widely as possible, including by the next generation of models. Block all AI crawlers suits publishers and sites whose content is the product; it keeps Googlebot and Bingbot, so normal search still works, but you give up being cited in AI answers.

    The crawlers in the file

    Answer and search crawlers: OAI-SearchBot and ChatGPT-User (OpenAI), Claude-SearchBot and Claude-User (Anthropic), PerplexityBot and Perplexity-User, DuckAssistBot and MistralAI-User. Training crawlers: GPTBot, ClaudeBot, Google-Extended, Applebot-Extended, CCBot (Common Crawl), meta-externalagent, Amazonbot and Bytespider. Googlebot and Bingbot are never blocked by a preset, because they also run normal search and, through it, Google's AI Overviews and Microsoft Copilot.

    Common mistakes

    • Blocking CSS and JavaScript. Search engines render pages; if they cannot load your styles and scripts, they may misread the page.
    • Using Disallow to hide private pages. robots.txt is public and only a request. Protect private pages with a login.
    • A leftover Disallow: / from a staging site, which blocks everything. Check after every launch.

    Being readable is the first step to being cited. For the rest, run the AI readiness checker, and add an llms.txt file with the free llms.txt generator.

    Questions

    Where do I put robots.txt?

    At the root of your domain, so it loads at https://yourdomain.com/robots.txt. Each subdomain needs its own. It must be plain text named exactly robots.txt, in lower case.

    Will blocking training crawlers hurt my rankings?

    No. GPTBot, ClaudeBot, Google-Extended and the other training crawlers have nothing to do with search rankings, and blocking them does not remove you from ChatGPT search, Perplexity answers or Google's AI Overviews, which use different crawlers.

    Does Disallow keep a page out of Google?

    Not reliably. A blocked page can still be indexed from links to it, shown without a description. To keep a page out of search, allow crawling and add a noindex robots meta tag or header instead.

    Is this generator free?

    Yes. The file is built in your browser; nothing you type is sent to us.

    Access is the start

    See who AI recommends
    in your market.

    CiteGaps tracks your buyers' questions on ChatGPT, Gemini, Perplexity and Google's AI every week, and drafts the content that gets you named.

    7-day free trial, no card · 7-day money-back guarantee · Cancel anytime