robots.txt generator

Pick what crawlers should stay away from and get a file that's ready to upload. AI crawlers get their own setting, because some of them train models on your content and others look up answers for someone who's asking ChatGPT right now.

Your robots.txt file

    Runs in your browser. Nothing you type here is sent anywhere or stored.

    How to use it

    1. Choose what your site runs on. For WordPress and online stores, the generator adds the folders crawlers shouldn't browse on its own: the admin area, the cart, customer accounts and on-site search results.
    2. Decide what AI crawlers can do.
    3. Paste your sitemap URL, the file that lists all your pages (usually yoursite.com/sitemap.xml or sitemap_index.xml). It helps crawlers find new posts sooner.
    4. Copy the result or download the file, then upload it to your site's root folder.

    What this file actually does

    robots.txt is the first thing a crawler asks for before it starts browsing your site. Each group starts with User-agent, the crawler's name (an asterisk means all of them), followed by paths it shouldn't visit (Disallow) and exceptions (Allow).

    On a small business site, the file is usually three or four lines, and that's enough. You block things that make no sense in search: the admin area, the cart, internal search. You don't block CSS and JavaScript files, because Google needs to see the page the way a person does.

    The most common mistake

    Disallow: / under User-agent: *. That one slash blocks your entire site. It often gets left behind after a launch, when the developer blocked the work-in-progress version and forgot to remove the block. If your site hasn't shown up in Google for months, check this file first.

    Two kinds of AI crawlers

    CrawlerOwnerWhat it does
    GPTBotOpenAIcollects text to train models
    OAI-SearchBot, ChatGPT-UserOpenAIfinds and opens pages when someone asks ChatGPT
    ClaudeBotAnthropiccollects text to train models
    Claude-SearchBot, Claude-UserAnthropicfinds and opens pages when someone asks Claude
    Google-ExtendedGooglepermission to use your content in Gemini (doesn't affect regular Google search)
    PerplexityBot, Perplexity-UserPerplexitybuilds Perplexity's search index and opens pages for people asking questions
    CCBotCommon Crawla public web archive that many models learn from
    Bytespider, meta-externalagent, Applebot-ExtendedByteDance, Meta, Applecollect text to train models

    Questions

    Where do I upload robots.txt?
    To the root folder of your site, so it opens at yoursite.com/robots.txt. Crawlers won't find it anywhere else. In WordPress, the easiest way is the Yoast or Rank Math plugin, since both come with a file editor. In Webflow, it's under your site settings, in the SEO tab.
    Will robots.txt remove a page from Google?
    No. The file only says "don't come in here." If other pages link to a blocked page, Google can keep showing it, just without a description. To take a page out of results, give it a noindex tag and don't block it in robots.txt, or the crawler will never see that tag.
    Should I block AI crawlers?
    It depends on what your site is for. If your business depends on people finding you, the crawlers that look up answers for ChatGPT and Perplexity users matter as much as Google's. Block them and AI assistants won't recommend you, because they won't know what you offer. Crawlers that collect text to train models are a separate question, and that one's your call. By default, the generator allows both.
    Do crawlers have to follow robots.txt?
    No. It's a request, not a lock. Google, Bing, OpenAI, Anthropic and Perplexity say they follow it. Spam bots ignore it. Don't use this file to protect anything private, because anyone can read it and see exactly what you're trying to hide.
    Do I need Crawl-delay?
    Probably not. Google doesn't read that directive, and on a small site crawlers won't overload your server anyway, so the generator leaves it out.

    More free tools