Free · Online · Runs in your browser

Free robots.txt generator with AI crawler controls

Build a robots.txt file in minutes. Choose what to allow or block with simple options, including ChatGPT, Perplexity, Claude, Google and Bing crawlers. Add your sitemap, then copy or download the file.

  • No credit card
  • Nothing to install
  • Free to use
Quick answer

What is a robots.txt generator?

A robots.txt generator builds the robots.txt file that tells crawlers which parts of your site they may request. This one has simple options for search engines and for AI crawlers, adds your sitemap line and lets you copy or download the finished file.

What does a robots.txt file do?

A robots.txt file tells search engine crawlers which URLs they can access on your site. Google says it is used mainly to manage crawler traffic, not to keep a page out of search results.

The file sits in the root folder, so it opens at yourdomain.com/robots.txt. It is a polite request that well-behaved crawlers follow. It is not a lock, so never rely on it to protect private content. See Google's introduction to robots.txt for the details.

How do I block AI crawlers in robots.txt?

Add a separate User-agent group for each AI crawler you want to block, followed by Disallow: /. The robots.txt generator does this with one click per crawler.

The important step is choosing which kind of crawler to block. Training crawlers collect content for models, while search crawlers decide whether your pages appear in answers. Many sites allow search and block training. The generator has a quick set for exactly that.

CrawlerOperatorMain purpose
GPTBotOpenAITraining generative AI models.
OAI-SearchBotOpenAISurfacing sites in ChatGPT search.
ChatGPT-UserOpenAIVisits triggered by a user action.
GooglebotGoogleGoogle Search crawling.

How should I write Googlebot and GPTBot rules together?

Give each crawler its own group and repeat any path blocks inside it, because a crawler that has its own group ignores the general one.

This is a common mistake. If you block /admin/ for all crawlers and then add a group for GPTBot, GPTBot no longer follows the general block unless you repeat it. The robots.txt generator repeats your path rules inside each named group, so your blocks stay in force. It also warns about errors such as a missing leading slash.

How do I check and upload the file?

Copy or download the file, upload it as robots.txt to your site's root folder, then open it in a browser to confirm it loads.

A wrong rule can hide your whole site, so read the file once before uploading. Afterwards, run the AI Visibility Checker to confirm that your search crawlers are still allowed, and add the same sitemap address you extracted with the Sitemap URL Extractor.

Conclusion

A good robots.txt file is short and deliberate. Use the robots.txt generator to set clear rules for search and AI crawlers, keep your sitemap line in place, and test the live file after every change.

Try it free →

What you get

A correct file without memorising the syntax

AI crawler controls

Separate settings for search crawlers, user-request crawlers and training crawlers from OpenAI, Anthropic, Perplexity, Google, Bing and Apple.

Presets and warnings

WordPress, WooCommerce and search-URL presets, plus warnings for common mistakes like a missing slash.

Private by design

Everything is built in your browser. Nothing you type is sent to our server.

How to use

Create your robots.txt in 6 steps

Nothing to install and no code to write.

  1. Click "Build my robots.txt"

    Sign in with your Google account (name and email only).

  2. Tell us a little about you

    The first time only, fill a short form and accept the terms.

  3. Set the rules for all crawlers

    Allow everything, or add paths to block such as /admin/. Pick a WordPress or WooCommerce preset if it fits.

  4. Choose your AI crawler settings

    Allow or block each crawler, or use a quick set such as "Allow search, block training".

  5. Add your sitemap

    Paste the full sitemap address so crawlers can find all your pages.

  6. Copy or download

    Upload the file as robots.txt in the root folder of your website.

Good to know

What robots.txt can and cannot do

It is a polite request, not a lock.

Well-behaved crawlers follow it, but it does not protect private content and it does not remove pages that are already in search results. Use a noindex tag or a login for that.

Blocking an AI training crawler is a business decision. It does not stop the matching search crawler from showing your pages in answers, and it does not guarantee your content is excluded from every dataset.

A wrong rule can hide your whole site, so check the file before you upload it.

FAQ

Robots.txt Generator: frequently asked questions

What is a robots.txt file?

It is a text file at the root of your website that tells crawlers which parts of the site they may or may not request.

Should I block GPTBot and ClaudeBot?

That depends on your goals. These crawlers collect content for AI model training. Blocking them does not stop OAI-SearchBot or Claude-SearchBot, which are used for search answers.

Will blocking AI crawlers remove me from ChatGPT or Perplexity?

Blocking the search crawlers (OAI-SearchBot, PerplexityBot, Claude-SearchBot) can stop your pages from being used in those answers. Blocking only the training crawlers does not.

Why does the tool repeat my block rules under an allowed crawler?

A crawler that has its own group ignores the general group. So the tool repeats your path rules inside that group to keep your blocks in force.

Does Google follow crawl-delay?

No. Google ignores it. Bing and some other crawlers follow it.

Where do I put the file?

In the root folder of your site, so it opens at yourdomain.com/robots.txt.

Can I check my existing robots.txt for AI crawlers?

Yes. The AI Visibility Checker reads your live robots.txt and shows which AI crawlers it allows.

Is it free?

Yes. There is no credit card and nothing to install.

Write a safe robots.txt in a few clicks

Free and online. Your input stays in your browser.

Free consultation

Not sure which crawlers to allow or block?

Get a specialist to set up robots.txt, sitemaps and crawler rules correctly, including AI crawlers, so nothing important is hidden from search.

  • Reviewed by the Marketing Rockers team
  • SEO, AI visibility and digital marketing
  • No obligation, just a clear plan

By sending this form you agree that Marketing Rockers may contact you about your enquiry. See our Privacy Policy.