Add to Chrome Add to Edge

Robots.txt Generator

Build a robots.txt file with per-crawler rules (including AI crawlers), blocked paths and your sitemap.

One per line, for example /admin/ (a folder) or /*?sort= (any URL with that parameter). They apply to every crawler that is not blocked completely.

Search engines

Google Search
Google Images
Bing, also used by Copilot and DuckDuckGo results
Apple Siri and Spotlight
DuckDuckGo
Yandex
Baidu

AI crawlers

OpenAI, model training
OpenAI, ChatGPT search
OpenAI, pages a ChatGPT user asks for
Anthropic, model training
Anthropic, Claude search
Anthropic, pages a Claude user asks for
Google, Gemini training and grounding (Search is not affected)
Apple, AI training (Siri and Spotlight are not affected)
Perplexity answers
Meta, AI training
Common Crawl, an open dataset used for AI training
ByteDance (TikTok), AI training
Amazon, may be used for AI training
Amazon search, such as Alexa (not AI training)
Amazon, pages an Alexa user asks for

SEO tool crawlers

Ahrefs backlink and SEO data
Semrush SEO data

Save it as robots.txt in the root of your domain (https://yourdomain.com/robots.txt), then check it with the Robots.txt Tester.

Robots.txt Generator

Robots.txt Generator builds a correct robots.txt file for your website. Set the default for all crawlers, list the paths to keep them out of, choose rules for search engines, AI crawlers and SEO tools, add your sitemap, then copy or download the file. It updates as you change the options, and it warns you if your choices would remove the site from Google.

How to create your robots.txt

  1. Leave Default for all crawlers on Allow everything for a normal public site. Choose Block everything only for a private or staging site.
  2. Under Paths to keep crawlers out of, enter one path per line, such as /admin/ or /cart/. Use * as a wildcard, for example /*?sort= for every URL with a sort parameter.
  3. Enter your sitemap's full address, such as https://example.com/sitemap.xml.
  4. Set individual crawlers to Allow or Block, or use Block AI training crawlers in one click.
  5. Click Download robots.txt and upload the file to the root of your domain, so it opens at https://yourdomain.com/robots.txt.

A common robots.txt mistake this tool avoids

A crawler follows only the most specific group that names it. If your file has a User-agent: Googlebot group, Googlebot ignores everything under User-agent: *, including your blocked paths. Many generators write a separate group for every bot and put the blocked paths only under *, which quietly lets Google crawl them. This generator repeats your paths in every group that is not blocked completely, so they apply to all crawlers.

Blocking AI crawlers

AI companies use different crawlers for different jobs. Training crawlers (GPTBot, ClaudeBot, CCBot, Meta-ExternalAgent, Bytespider) collect pages for future models; Google-Extended and Applebot-Extended are tokens that control AI use of your content without affecting Google Search or Siri. Search crawlers (OAI-SearchBot, Claude-SearchBot, PerplexityBot) decide whether your pages can be shown and linked in AI answers. Blocking training while allowing search lets AI search tools fetch and cite your pages, though no robots.txt can guarantee a citation. See what any site allows today with the AI Crawler Checker.

Good to know

  • Google ignores Crawl-delay; Bing respects it. Most sites should leave it off.
  • Don't block CSS, JavaScript or image folders that your pages need: Google renders pages and can misjudge them without these files.
  • robots.txt is public and only a request. Well-behaved crawlers follow it, but it is not a way to protect private files.

After uploading, test URLs against the live file with the Robots.txt Tester, build the sitemap with the XML Sitemap Generator, and check single pages with the Noindex Checker.

Frequently asked questions

Does robots.txt hide pages from Google?
Not reliably. It stops crawling, but a blocked URL can still appear in results if other pages link to it. To keep a page out of results, let Google crawl it and add a noindex meta tag instead.
Where do I put the file?
In the root folder of your domain, named exactly robots.txt in lower case. Each subdomain needs its own file.
Will blocking GPTBot remove my site from ChatGPT?
Not from ChatGPT search: that uses OAI-SearchBot. GPTBot only collects content for training. Block both if you want neither.
How quickly do changes take effect?
Google usually refreshes its copy of robots.txt within a day. Pages already crawled stay indexed until they are crawled again.

Related guides

Choose which cookies SEOpeck may use. You can change this at any time from "Cookie settings" at the bottom of every page.

Your tools

    Saved in this browser only. Nothing is sent to us.

    Popular tools