# Robots.txt Generator & Tester

> Build robots.txt rules, block AI crawlers and test any URL against them. Runs entirely in your browser, so nothing is uploaded.

Source: https://toffeekit.com/tools/robots-txt-generator

**Category:** [SEO](https://toffeekit.com/category/seo) · **Price:** Free · **Runs:** in your browser, nothing is uploaded

Open the tool: https://toffeekit.com/tools/robots-txt-generator

**Also useful for:** robots.txt, robots txt generator, robots tester, disallow, block gptbot, block ai crawlers, claudebot, google-extended, crawl-delay, user-agent

## What you can do

- **Block AI training bots** — Keep GPTBot, ClaudeBot, Google-Extended and others out, but stay in search. ([open with this preset](https://toffeekit.com/tools/robots-txt-generator?preset=ai))
- **WordPress robots.txt** — Hide wp-admin while keeping admin-ajax reachable. ([open with this preset](https://toffeekit.com/tools/robots-txt-generator?preset=wordpress))
- **Block a staging site** — Disallow everything for every crawler. ([open with this preset](https://toffeekit.com/tools/robots-txt-generator?preset=block))

## How it works

1. Pick a preset such as Block AI training, WordPress or Online store.
2. Edit each group: type User-agents or click the bot buttons, then Add rule for Allow or Disallow paths.
3. Add your Sitemap URLs and copy or save the robots.txt output.
4. In Test a URL, enter a User-agent and a URL or path to see if it is Allowed or Blocked and which line decided it.

## FAQ

### How do I block AI crawlers with robots.txt?

Add a group with User-agent lines for GPTBot, ClaudeBot, Google-Extended, CCBot and others, followed by Disallow: /. The Block AI training preset does this while keeping search engines allowed.

### Does blocking Google-Extended remove my site from Google Search?

No. Google-Extended only controls use of your content for Gemini training and grounding. Googlebot still crawls and ranks your pages.

### Which rule wins when Allow and Disallow both match?

Google uses the most specific rule, meaning the one with the longest matching path. If an Allow and a Disallow are the same length, Allow wins.

### What do * and $ mean in robots.txt?

An asterisk matches any run of characters, and a dollar sign marks the end of the URL. For example, Disallow: /*.pdf$ blocks every URL ending in .pdf.

### Does Google support Crawl-delay?

No, Google ignores it. Bing and Yandex follow it. To slow Googlebot, temporarily return 429 or 503 responses.

### Is Robots.txt Generator & Tester free and private?

Yes. It's free with no sign-up or limits, and it runs entirely in your browser, so what you type or paste never leaves your device. It works on phones and computers alike.

## Privacy

Robots.txt Generator & Tester runs entirely in your browser. Your files and text are processed on your device and are never uploaded.

## Related tools

- [Meta Tag Generator](https://toffeekit.com/tools/meta-tag-generator) — Title, description, Open Graph and Twitter tags with live length checks.
- [SERP Snippet Preview](https://toffeekit.com/tools/serp-snippet-preview) — See your page in Google results, cut off by real pixel width.
- [Open Graph Preview](https://toffeekit.com/tools/open-graph-preview) — Preview link cards on X, Facebook, LinkedIn, Slack, Discord, WhatsApp and more.
- [Schema Markup Generator](https://toffeekit.com/tools/schema-markup-generator) — Build JSON-LD for FAQ, Product, Article, LocalBusiness, Event and more.
- [XML Sitemap Generator](https://toffeekit.com/tools/xml-sitemap-generator) — Turn a list of URLs or paths into a valid sitemap.xml, split at 50,000.
- [On-Page SEO Checker](https://toffeekit.com/tools/on-page-seo-checker) — Paste a page's HTML for a scored checklist of on-page SEO fixes.

