Submit Startup Startup Directory Deal Finder Currency Exchange Guides & BlogContact Support
🤖 Free SEO Tool

Robots.txt Generator — Free Online Tool

Configure your robots.txt options below and copy the generated file to your site's root directory — no sign-up needed.

Section 1 — Default Rules

Allow all bots

Adds Allow: / for the wildcard user-agent

Block AI scrapers

Disallows GPTBot, ClaudeBot, CCBot, Google-Extended from crawling

Block bad bots

Disallows MJ12bot, AhrefsBot, SemrushBot from crawling

Section 2 — Sitemap URL

Section 3 — Custom Rules

What is robots.txt and Why Does It Matter for SEO?

A robots.txt file sits at the root of your domain (e.g. https://yoursite.com/robots.txt) and tells crawlers which pages they are and aren't allowed to visit. It is one of the first files any search engine bot reads when it arrives at your site.

While robots.txt does not directly affect your rankings, it has a powerful indirect impact on SEO through crawl budget management. By blocking low-value URLs — such as admin pages, internal search results, and duplicate content — you ensure Googlebot spends its crawl budget on the pages that actually matter.

A misconfigured robots.txt can accidentally block Googlebot from your entire site, causing pages to drop out of the index overnight. That is why getting it right is critical.

Should You Block AI Scrapers?

Since 2023, AI companies have deployed large-scale bots to scrape the web for training data. The most prominent ones — GPTBot (OpenAI), ClaudeBot (Anthropic), CCBot (Common Crawl), and Google-Extended (Google's AI training crawler) — respect the robots.txt standard.

Whether to block them is a strategic decision for your site:

Our generator lets you add a single-click block for all four major AI scrapers, with correct user-agent names that these crawlers officially recognise.

Common Robots.txt Mistakes That Kill Your Rankings

Even experienced developers make errors in robots.txt that have devastating SEO consequences. Here are the most common pitfalls:

Want Google to crawl your allowed pages faster?

A clean robots.txt lets the right bots in — but you still need Google to actually crawl and index those pages. Use our free Index Checker to verify your pages are showing up in Google search results.

Try Our Index Checker →

Frequently Asked Questions

Where do I upload the robots.txt file?

The robots.txt file must be placed in the root directory of your domain — accessible at https://yourdomain.com/robots.txt. In Next.js you can place it in the /public folder, or export it programmatically using a robots.ts route handler in the App Router.

Does blocking a page in robots.txt remove it from Google's index?

No — and this is a common misconception. Blocking crawling via robots.txt prevents Googlebot from visiting the page, but Google may still index a URL if it discovers it through external links, without being able to read the content. To fully remove a page from Google's index, you need a noindex meta tag on the page itself, in addition to (or instead of) a robots.txt rule.

How often should I update my robots.txt file?

Review your robots.txt whenever you launch new sections of your site, migrate to a new platform, or add new URL patterns. At minimum, audit it quarterly. After any CMS migration, always verify the file was correctly transferred — staging environments often have a blanket Disallow: / that must not be copied to production.