Readers24
Tools

Robots.txt Generator

Generate a clean robots.txt directive file in-browser with customizable User-agent rules, Disallow paths, optional AI scraper bot blocks (GPTBot, Claude-Web, CCBot), and Sitemap declaration.

SEO ToolsRuns Locally in Browser 100% Free • No Sign-Up
/admin/private/api
robots.txt Preview
# Robots.txt generated by Readers24.com
User-agent: *
Allow: /
Disallow: /admin
Disallow: /private
Disallow: /api

# Block AI Scrapers and Training Bots
User-agent: GPTBot
Disallow: /

User-agent: Claude-Web
Disallow: /

User-agent: CCBot
Disallow: /

Sitemap: https://www.readers24.com/sitemap.xml

How to Use Robots.txt Generator

1

Configure Default User-Agent & Disallow Paths

Keep '*' for all crawlers (or enter a specific bot name), then add or remove Disallow folders like /admin, /private, or /api.

2

Toggle AI Crawler Blocking & Sitemap URL

Check or uncheck the AI Web Crawlers option (adds Disallow: / blocks for GPTBot, Claude-Web, and CCBot) and enter your full sitemap.xml URL.

3

Copy or download robots.txt

Download robots.txt and upload it to your domain root (https://yourdomain.com/robots.txt).

Practical Use Cases

  • Block automated crawlers from wasting crawl budget on /api/, /admin/, /dashboard/, and /login/ routes.
  • Protect editorial articles or private assets from common AI model training crawlers like GPTBot, Claude-Web, and CCBot.
  • Point search engines directly to your XML Sitemap location at the bottom of robots.txt.
  • Quickly bootstrap a permissive Allow: / robots.txt configuration when launching a brand-new Next.js or WordPress website.

Real Input & Output Examples

Standard Web App Robots File with AI Bot Blocks

Allows public crawling while protecting internal app directories and declaring sitemap.xml.

Sample Input
User-agent: * | Disallow: /admin, /api | Block AI: Checked | Sitemap: https://www.readers24.com/sitemap.xml
Actual Output
User-agent: *
Allow: /
Disallow: /admin
Disallow: /api

User-agent: GPTBot
Disallow: /
User-agent: Claude-Web
Disallow: /
User-agent: CCBot
Disallow: /

Sitemap: https://www.readers24.com/sitemap.xml

Open Permissive Configuration for Public Blogs

Unchecking AI blocks and clearing custom disallowed paths creates an open crawler policy.

Sample Input
User-agent: * | Disallow: (empty) | Block AI: Unchecked | Sitemap: https://example.com/sitemap.xml
Actual Output
User-agent: *
Allow: /

Sitemap: https://example.com/sitemap.xml

Features, Supported Standards & Limitations

Interactive Disallow Path Manager

Add paths via button or Enter key and click any chip's trash icon to remove unwanted directory restrictions immediately.

Dedicated AI Crawler Toggle

Optionally injects standardized User-agent Disallow: / sections for GPTBot, Claude-Web, and CCBot.

Root-Relative Allow & Sitemap Output

Pairs clean Allow: / defaults with an explicit Sitemap: directive ready for root deployment.

Direct robots.txt Download

Exports plain UTF-8 text formatted exactly as expected by Googlebot, Bingbot, and RFC 9309 robots exclusion parsers.

Supported Formats, Standards & Inputs

  • RFC 9309 Robots Exclusion Protocol directives (User-agent, Allow, Disallow, Sitemap)
  • Standard wildcard bot matching (*) and specific crawler tokens
  • UTF-8 plain-text robots.txt download

Limitations & Compatibility

  • Does not generate Crawl-delay directives or custom per-bot rule blocks beyond the default User-agent and the three bundled AI bot blocks (GPTBot, Claude-Web, CCBot).
  • Disallow in robots.txt blocks crawling, NOT necessarily indexing—to de-index an existing URL, serve HTTP 404/410 or an HTML noindex tag while keeping it crawlable.
  • Malicious scrapers may ignore robots.txt because the protocol is voluntary.
Privacy & Execution ArchitectureAll parsing, conversion, formatting, and generation for this tool executes locally inside your web browser with zero server storage.
Read Privacy Policy

Related Workflow Tools

Complementary utilities commonly paired with Robots.txt Generator

Frequently Asked Questions

Where must robots.txt be hosted on my website?

Search engines only check the root path: https://yourdomain.com/robots.txt. Putting it inside a subdirectory like /blog/robots.txt is ignored.

If I add Disallow: /private in robots.txt, will Google remove /private if it was already indexed?

Not always. Blocking Googlebot from crawling prevents Google from seeing any <meta name="robots" content="noindex"> tag on that page. Keep pages crawlable with noindex until Google drops them from search results.

Should I ever disallow /_next/static/, /css/, or /js/ folders?

No. Modern crawlers render JavaScript and CSS to evaluate mobile usability and layout; blocking static scripts or stylesheets can hurt search rankings.

Does checking 'Block AI Web Crawlers' block Google Search indexing?

No—it adds blocks specifically for GPTBot, Claude-Web, and CCBot, leaving User-agent: * with Allow: / untouched for Googlebot and Bingbot.

How can I verify my live robots.txt and sitemap after uploading?

Validate your XML sitemap first with XML Sitemap Validator, and check HTTP 200 OK status on /robots.txt using HTTP Status Checker.