Skip to content
Rank Tactix
AI Search

Robots.txt Generator

Build a correct robots.txt file without memorizing the syntax. Choose which folders to keep crawlers out of, add your sitemap, and decide which AI crawlers can read your site, with separate controls for AI search and AI training.

Built and maintained by Nouman Sabir AI search & SEO specialist Updated October 2026

  • 100% free
  • No sign-up
  • Runs in your browser, nothing is stored

AI crawler preset

AI search and answer bots
AI training bots
Keep all crawlers out of

One path per line, starting with a slash.

robots.txt

# robots.txt generated at ranktactix.com/tools/robots-txt-generator

User-agent: *
Disallow:

# AI crawlers you chose to block

User-agent: GPTBot
Disallow: /

User-agent: ClaudeBot
Disallow: /

User-agent: Google-Extended
Disallow: /

User-agent: Applebot-Extended
Disallow: /

User-agent: CCBot
Disallow: /

User-agent: Meta-ExternalAgent
Disallow: /

User-agent: Bytespider
Disallow: /

User-agent: Amazonbot
Disallow: /

Upload the file to your domain root so it opens at yoursite.com/robots.txt. Generated in your browser, nothing is sent anywhere.

Your inputs are saved in this browser only, so they're here when you come back.

Free AI visibility check

Does ChatGPT recommend your business?

Send me your website and I'll check how you show up on Google, Maps and AI assistants, then reply with the three fixes I'd make first.

Reviewed by Nouman Sabir
Top Rated on Upwork · 100% Job Success

No spam. Your details go only to me, never to a list.

How to use the Robots.txt Generator

  1. 1

    Choose a preset, or set the rules for each crawler yourself.

  2. 2

    Add any folders to block (for example /wp-admin/ or /cart/) and your sitemap URL.

  3. 3

    Download the file and upload it to the root of your domain, so it opens at yoursite.com/robots.txt.

AI search bots and AI training bots are different

Some AI crawlers fetch pages to answer a user's question live and cite the source, such as OAI-SearchBot and ChatGPT-User (ChatGPT), Claude-SearchBot and Claude-User (Claude) and PerplexityBot (Perplexity). Blocking these can remove you from AI answers.

Others collect content to train future models, such as GPTBot, ClaudeBot, CCBot and Google-Extended. Blocking these keeps your content out of training data and does not affect your Google rankings. If you want to be recommended by AI assistants, a sensible default is to allow AI search bots and decide on training bots separately.

What robots.txt can and can't do

Robots.txt is a request, not a lock. Reputable crawlers follow it, but it does not protect private content, and it does not remove pages that are already indexed. To keep a page out of Google, use a noindex tag instead, and don't block that page in robots.txt, or Google can't see the noindex.

  • Never block your CSS or JavaScript files: Google needs them to render the page
  • Don't block pages you want indexed, even "thin" ones
  • Each crawler follows only the most specific group that names it

Check it after you upload

Open yoursite.com/robots.txt in a browser to confirm it's live, then check the robots.txt report in Google Search Console for errors.

Frequently asked questions

Will blocking GPTBot remove me from ChatGPT?

Blocking GPTBot stops OpenAI from using your pages for training. ChatGPT search uses OAI-SearchBot and ChatGPT-User, which have their own rules, so you can block training and still appear in ChatGPT answers.

Does Google-Extended affect my Google rankings?

No. Google-Extended only controls whether your content is used to train Gemini models. Googlebot crawling and your search rankings are unaffected.

Where does robots.txt go?

In the root folder of your domain, so it opens at https://yoursite.com/robots.txt. Each subdomain needs its own file.

Is anything I enter stored?

No. The file is generated in your browser and nothing is sent to a server.

More free SEO tools

All tools →
AI Search

llms.txt Generator

Write an llms.txt file that points AI assistants to your key pages.

Open the tool
On-Page SEO

SERP Snippet Preview

See your title and meta description the way Google shows them.

Open the tool
Technical SEO

FAQ Schema Generator

Turn questions and answers into valid FAQPage JSON-LD.

Open the tool

Free 30-min strategy call

No obligation

Book now