GGfor Tools

AI Robots.txt Generator & Checker

Build AI crawler rules and test which robots.txt directives match a page.

Check existing robots.txt

Paste the file for the target site, or leave it empty to start a new one. Local text analysis only: no website is fetched. Limit: 100 KiB and 1,500 lines.

Use a path such as /articles/example?lang=en. For a full URL, only its path and query are tested; fragments are ignored.

Choose AI crawler policies

Keep leaves existing rules unchanged. Allow all or Block all replaces the selected token groups, including their path exceptions. An explicit group does not inherit wildcard restrictions. Review the preview before publishing.

Model training

Model training

AI search

AI search

AI search

User requests; robots.txt may not apply

User-requested retrieval

User requests; generally ignores robots.txt

Gemini training and grounding policy

Free AI robots.txt generator and checker

Control crawler preferences with separate policies for AI training, search and user-requested retrieval. This AI robots.txt generator edits selected bot groups, while the checker explains the rule and line that determine a test path. All processing happens in your browser.

How to check and generate AI crawler rules

  1. Paste the existing robots.txt for the correct scheme, hostname and port. Test a public page and a restricted path before making changes.
  2. Choose policies only for the bots you want to change. The training preset blocks GPTBot and ClaudeBot; it leaves every other choice unchanged.
  3. Generate a preview, compare the original and generated path results, then publish the reviewed file at /robots.txt. Test additional paths before replacing your live file.

Example: separate training and search preferences

User-agent: GPTBot
Disallow: /

User-agent: ClaudeBot
Disallow: /

User-agent: OAI-SearchBot
Allow: /

This example blocks two training crawlers and explicitly allows OpenAI search crawling. It is not a universal AI opt-out. An Allow-all group also removes wildcard path restrictions for that token, so adapt the example to your site.

How the robots.txt checker matches rules

The checker combines groups with the same product token, ignoring token case. It uses wildcard groups only when no exact token group exists. Paths are case-sensitive; the longest matching normalized rule wins, with Allow winning equal-length ties. It supports * and a final $, query strings and percent-encoded paths.

Empty directives do not restrict a path. The /robots.txt path is implicitly allowed. Unsupported directives and malformed lines produce warnings; results then need manual review. The generator stops instead of rewriting files with those warnings.

Frequently asked questions

Does blocking GPTBot block ChatGPT Search?

OpenAI documents GPTBot and OAI-SearchBot separately. A GPTBot-specific rule does not automatically apply to OAI-SearchBot. Check the effective search-bot rules, including any wildcard group, instead of assuming search is allowed.

Is Google-Extended only a training control?

No. Google-Extended covers Gemini training and certain grounding uses. It is a policy token, not a separate HTTP crawler identity. Google states that it does not control inclusion or ranking in Google Search. Review its combined effects before blocking it.

Do user-triggered AI visits always obey robots.txt?

No universal behavior should be assumed. OpenAI says robots.txt may not apply to ChatGPT-User, and Perplexity says Perplexity-User generally ignores it. Anthropic documents robots.txt controls for Claude-User. A matching Disallow rule is a policy result, not proof that a visit is blocked.

Can this verify AI access or protect private pages?

No. This tool does not request your site or check firewall rules, response headers or bot identity. Robots.txt is public guidance, not authentication. Use server access controls for private content; an allowed path does not guarantee crawling or citation.

Why does the generator ask for manual review?

Extensions such as Crawl-delay, Content-Signal and usage-policy tokens may have provider-specific behavior. This checker does not evaluate those extensions. Review them separately; do not delete meaningful directives just to remove a warning.