robots.txt Generator & Tester

Create a robots.txt file, block AI crawlers in one click, and test which URLs a crawler may visit.

Runs in your browser. Nothing is uploaded.

Start from
Rules

    Test a URL

    How to use the robots.txt Generator & Tester

    1. Start from a template, Allow everything, Typical website, Block AI crawlers or Block everything, or paste an existing robots.txt into the editor.
    2. Edit the rules. For each group, list crawlers (one per line, * for all), paths to block and paths to allow anyway.
    3. Add your sitemap URLs.
    4. Test any URL with a crawler name to see whether it may be crawled and which rule decides.
    5. Copy the file or download robots.txt and upload it to the root of your site.

    Tell crawlers where they may go

    robots.txt is a small text file that tells search engines and other bots which parts of your site they may crawl. It keeps them out of admin pages, internal search results, shopping carts and endless filter combinations, so they spend their time on the pages you want found. It is also where you point them to your sitemap, and, increasingly, where you decide whether AI companies may collect your content.

    Build the file

    Start from a template and adjust:

    • Allow everything: an open site with no restrictions.
    • Typical website: blocks admin, cart and search pages while allowing a help section inside admin.
    • Block AI crawlers: lets search engines in but blocks crawlers that collect pages for AI training and AI answers, such as GPTBot, ClaudeBot, CCBot and Google-Extended.
    • Block everything: useful for staging and test sites.

    Each group lists one or more crawler names, paths to disallow and paths to allow as exceptions. Paths can use * to match anything and $ to match the end, such as /*.pdf$.

    Test before you publish

    A small mistake in robots.txt can hide a whole site from search. The tester takes a crawler name and a URL or path and tells you whether it is allowed, which group applied and which rule decided. It follows the same rules as major search engines, including longest-match and Allow winning ties. You can also paste an existing robots.txt into the editor; problems such as rules without a user-agent or relative sitemap URLs are listed.

    Private and offline

    Nothing is fetched or uploaded; the file is built and tested in your browser. For other site files, see the Redirect Generator and the Meta Tag Generator. To check which bots visit you, paste user agents from your logs into the User Agent Parser.

    Frequently asked questions

    Where does robots.txt go?

    At the root of your domain, so it is reachable at https://yoursite.com/robots.txt. Each subdomain needs its own file. Crawlers ignore robots.txt files in sub-folders.

    Does robots.txt keep pages out of search results?

    Not reliably. It stops well-behaved crawlers from fetching pages, but a blocked page can still be listed if other sites link to it. To keep a page out of results, let it be crawled and add a noindex meta tag, or protect it with a password.

    How does the tester decide?

    It follows the robots.txt standard (RFC 9309) as major search engines do. The crawler uses the group that names it, otherwise the * group. The longest matching rule wins, and Allow wins a tie. An asterisk matches any characters and $ marks the end of the URL.

    Do AI crawlers obey robots.txt?

    The crawlers listed in the AI template are run by companies that say they respect robots.txt. Not every bot does; robots.txt is a request, not a lock.

    Is my file uploaded?

    No. Everything happens in your browser.

    Tutorials