Robots.txt generator

Tell search engines and other bots which parts of your site they may visit.

Sealed on this device

Runs in your browser. Nothing is uploaded.

Sealed

Rules

All crawlers

Optional. Bing and some other bots follow it; Google ignores it.

AI bots

GPTBot, ClaudeBot, Google-Extended, Applebot-Extended, CCBot and others that collect content to train AI models. Doesn’t affect Google Search.

OAI-SearchBot, ChatGPT-User, Claude-SearchBot, PerplexityBot and others. Your pages may then stop appearing in AI answers.

Specific crawlers

    One full address per line, for example https://example.com/sitemap.xml.

    Your robots.txt

    
                    

    Things to check

      Test an address

      How it works

      1. Choose the general rule

        Allow everything, block everything, or list the paths crawlers should skip. Presets help you start.

      2. Add AI bots, crawlers and sitemaps

        Block AI training crawlers in one click, add rules for specific bots, and list your sitemaps.

      3. Test and publish

        Test a few addresses, then download the file and put it at the root of your site: example.com/robots.txt.

      Frequently asked questions

      Where do I put the robots.txt file?

      At the root of your domain, so it’s reachable at https://your-site.com/robots.txt. Each subdomain needs its own file. Crawlers don’t look for it anywhere else.

      Does robots.txt hide a page from Google?

      No. It asks crawlers not to visit a page, but the page can still appear in results if other sites link to it. To keep a page out of Google, let it be crawled and add a noindex meta tag, or protect it with a password.

      How do I block AI crawlers like GPTBot?

      Tick “Block AI training crawlers”. The file then tells GPTBot, ClaudeBot, Google-Extended and other training bots to stay away from your whole site. Well-behaved bots respect it, but robots.txt is a request, not a lock.

      What happens when Allow and Disallow rules conflict?

      Google and most modern crawlers apply the most specific rule, the one with the longest matching path. When two rules are equally long, Allow wins. The tester on this page follows the same logic.

      What do * and $ mean in a path?

      The asterisk matches any sequence of characters, so /*.pdf matches every PDF. The dollar sign marks the end of the address, so /*.pdf$ matches addresses that end exactly with .pdf.

      Should I add my sitemap to robots.txt?

      Yes, it’s a simple way to help every search engine find it. Use the full address, including https://. You can list several sitemaps.

      Install One For All on your computer

      One For All then opens in its own window, like an app, straight from your desktop or home screen. Nothing to download from a store, and your files still stay on your device.

      1. Click the install icon at the right of the address bar, or open the browser menu (⋮).
      2. Choose “Install One For All” or “Install page as app”: a shortcut is added to your desktop and your apps.

      Download this tool’s engine?

      This tool works entirely in your browser. To do that, it needs to download the items below from One For All, just once. They are then kept on this device, so next time the tool starts right away.

      Your files are never sent anywhere.