Skip to content
Nazmul Nikhil
Menu

Inconsistent AI Training Bot Policy (Ahrefs): Make Your robots.txt Say What You Mean

Ahrefs flags robots.txt files that block some AI training bots but allow others. Here's how to decide on a policy and apply it to every training bot.

Nazmul Nikhil

By

Head of SEO & Assistant Manager, Digital Marketing at Notionhive

Published 2 min read
Inconsistent AI Training Bot Policy (Ahrefs): Make Your robots.txt Say What You Mean
Photo: Nick Fewings on Unsplash

In short

Ahrefs flags "Inconsistent AI training bot policy" when your robots.txt treats AI training bots differently, for example blocking GPTBot but allowing ClaudeBot or CCBot. That usually happens by accident, when a blocklist was copied from an old article. Decide whether you want your content used for AI training, then apply that choice to every major training bot. Ahrefs doesn't publish the exact rule, so check the issue's info panel for the bots involved.

This issue isn't about whether you should allow AI training. It's about whether your robots.txt does what you think it does.

Common AI training bots

Bot or token Company
GPTBot OpenAI
ClaudeBot Anthropic
Google-Extended Google (controls use in Gemini; doesn't affect Google Search)
Applebot-Extended Apple
CCBot Common Crawl (a public dataset many models train on)
Meta-ExternalAgent Meta

New bots appear regularly, so review the list once or twice a year.

Pick a policy

  • Allow training: your content may shape how AI models describe your field and your brand. Most small businesses seeking visibility choose this.

  • Block training: you keep more control over your content. Blocking training bots doesn't block AI search bots like OAI-SearchBot, so you can still be cited.

Apply it consistently

To block all of the training bots above:

User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
User-agent: Applebot-Extended
User-agent: CCBot
User-agent: Meta-ExternalAgent
Disallow: /

Several User-agent lines in a row share the rules beneath them. To allow training, remove these groups entirely.

Where to edit: Yoast SEO > Tools > File editor or Rank Math > General Settings > Edit robots.txt (WordPress); the robots.txt.liquid template (Shopify); Site settings > SEO > robots.txt (Webflow); the Robots.txt Editor in the SEO dashboard (Wix); the root robots.txt file (custom builds).

Common mistakes

  • Blocking search bots by accident while blocking training bots. Keep OAI-SearchBot, Claude-SearchBot and PerplexityBot allowed if you want citations.

  • Relying on robots.txt alone. It's a request, not enforcement. Well-known AI companies say they follow it.

This guide isn't affiliated with or endorsed by Ahrefs.

Sources and references

TAGSAhrefs Site AuditAi training bot policyBlock gptbot robots.txtAi training opt out
Nazmul Nikhil

About the author

Nazmul Nikhil

Head of SEO & Assistant Manager, Digital Marketing at Notionhive

SEO and AI search consultant in Dhaka, Bangladesh, helping small and mid-size businesses in the USA, UK, Australia and Canada.

Need help with this?

Get it fixed with Generative Engine Optimization

I find the issues that cost you traffic and fix them, starting with the pages that matter most.

Keep reading

Related articles

All Site Audit Issues posts →

Get the next guide in your inbox

One email when a new SEO or AI search guide goes live.

Ready to grow?

Get a free audit of your website, or book a 30-minute call to talk through your goals.

Nazmul Hasan

Talk to Nazmul directly

Reply within 24h

WhatsApp +880 1682835118
nazmulnikhil@gmail.com