Free Technical SEO Tool

Robots.txt Generator

Build a robots.txt file for your website in a few clicks. Block private folders, add your sitemap and decide which AI crawlers can visit your site.

Free to use · No sign-up · Copy or download your file

Choose "Allow" for a live website. "Block" is only for staging or private sites.

Block These Common Folders

One path per line, starting with a forward slash.

AI Crawlers

GPTBot · OpenAICollects content to train OpenAI models
OAI-SearchBot · OpenAIFinds pages to show in ChatGPT search results
ChatGPT-User · OpenAIVisits pages when a ChatGPT user asks it to
ClaudeBot · AnthropicCollects content to train Claude models
Claude-SearchBot · AnthropicFinds pages to show in Claude search results
Claude-User · AnthropicVisits pages when a Claude user asks it to
PerplexityBot · PerplexityFinds pages to show in Perplexity answers
Google-Extended · GoogleControls use of your content for Gemini training (does not affect Google Search)
Applebot-Extended · AppleControls use of your content for Apple AI training
CCBot · Common CrawlBuilds an open web archive used to train many AI models
Bytespider · ByteDanceCollects content for ByteDance AI models
meta-externalagent · MetaCollects content to train Meta AI models

Your Robots.txt File


The Basics

What A Robots.txt File Does

A robots.txt file is a short text file at the root of your website, for example www.yourbusiness.com/robots.txt. It tells search engine and AI crawlers which parts of your site they may visit. Google, Bing and most well-known crawlers read it before they crawl your pages.

It is useful for keeping crawlers out of pages that do not need to be in search, such as admin areas, carts, checkout steps and internal search results. That way crawlers spend their time on the pages that bring you customers.

Two things a robots.txt file does not do: it does not remove a page from Google, and it does not protect private information. A blocked page can still appear in search results if other sites link to it. To keep a page out of search, use a noindex tag. To keep information private, put it behind a login.

AI Search

AI Crawlers: Allow Or Block?

AI companies send two kinds of crawlers. Training crawlers collect content to build AI models. Search crawlers find pages to show and link to when someone asks ChatGPT, Claude or Perplexity a question.

For most small and medium-sized businesses, being found in AI answers is now a real source of enquiries, so we suggest keeping the search crawlers allowed. If you do not want your content used for training, the Block AI Training Only button blocks the training crawlers and keeps the search crawlers open.

Blocking GPTBot does not remove you from ChatGPT search, because ChatGPT search uses OAI-SearchBot. Blocking Google-Extended does not affect your Google Search rankings. Read our guide on how to rank in ChatGPT for more on AI search.

Reading The File

Robots.txt Rules Explained

A robots.txt file is made of short groups of rules. Each group starts with a User-agent line, which names the crawler the rules apply to. An asterisk means every crawler that does not have its own group.

User-agentNames the crawler, such as Googlebot, GPTBot or an asterisk for all crawlers.
DisallowA path the crawler should not visit. "Disallow: /" blocks the whole site, and an empty Disallow line allows everything.
AllowOpens one path inside a blocked folder, such as the admin-ajax.php file inside /wp-admin/ on WordPress sites.
SitemapThe full web address of your XML sitemap, so crawlers can find every page you want in search.

Setup

How To Add Robots.txt To Your Website

1Build Your FileUse the generator above, then copy the text or download the robots.txt file.
2Upload It To The Root Of Your DomainThe file must sit at yourdomain.com/robots.txt, not in a subfolder. Upload it with your hosting file manager or FTP.
3Use Your Platform Settings If You Have ThemOn WordPress, SEO plugins such as Yoast and Rank Math have a robots.txt editor. Shopify, Wix and Squarespace create the file for you and let you change some or all of it in their settings.
4Test ItOpen yourdomain.com/robots.txt in your browser to check it is live, then check the robots.txt report in Google Search Console.

Avoid These

Robots.txt Mistakes To Avoid

Leaving A Block From StagingA "Disallow: /" line copied from a test site stops search engines crawling your whole website.
Blocking CSS And JavaScriptGoogle needs these files to see your pages properly. Do not block theme, script or style folders.
Blocking Pages With NoindexIf a page is blocked, Google cannot see its noindex tag. Let it be crawled until it drops out of search.
Forgetting Your SitemapAdding your sitemap line helps crawlers find all of your important pages quickly.

Done For You

Want Us To Check Your Technical SEO?

Our SEO audit covers robots.txt, sitemaps, indexing and every other technical issue that holds your rankings back.

SEO Audit

$1,500

One-off, delivered in 5 days

  • ✓Technical, content and backlink review
  • ✓A prioritized list of fixes
  • ✓Fee credited to your first month of monthly SEO

Monthly SEO

From $3,000

Per month, scoped after a short call

  • ✓Month 1 audit, then the work itself
  • ✓1 monthly report and 1 to 2 strategy calls
  • ✓A shared Slack channel
Get In Touch

FAQ

Robots.txt Generator Questions

Do I Need A Robots.txt File?

Not every website needs one, but most benefit from it. It keeps crawlers out of pages that do not belong in search and points them to your sitemap.

Does Robots.txt Stop A Page From Being Indexed?

No. It stops crawling, not indexing. Use a noindex tag to keep a page out of search results.

Will Blocking GPTBot Remove My Business From ChatGPT?

No. GPTBot collects training data. ChatGPT search uses OAI-SearchBot, so keep that one allowed if you want to appear in ChatGPT answers.

Where Does The Robots.txt File Go?

In the root folder of your website, so it opens at yourdomain.com/robots.txt. Each subdomain needs its own file.

Is The Robots.txt Generator Free?

Yes. It is free, needs no sign-up and runs in your browser, so nothing you enter is sent to us.

Free Tools

More Free SEO Tools

SEO ROI CalculatorEstimate the leads and revenue SEO could bring.Schema Markup GeneratorCreate JSON-LD code for your business.

Get In Touch

Talk To Us About Your SEO

Tell us about your company and your goals, and we will come back with the next steps.

  • ✓Reply within 24 hours, Monday to Friday
  • ✓Monthly SEO scoped after a short call
  • ✓Fixed prices for audits and content