Skip to Content
Documentation

SEO

AI crawlers

Allow or block OpenAI, Anthropic and Google AI crawlers separately for search and training with seo.crawlers in VitNode's generated robots.txt.

seo.crawlers adds a User-agent group to the generated robots.txt for each AI crawler you name. Use it to stay in AI search results while opting out of training, or the other way round.

This guide assumes SEO is set up.

Choose per bot

Each bot you leave out follows User-agent: *. Set a bot to false to give it its own Disallow: / group, or to true to give it an explicit allow group:

src/vitnode.server.config.ts
seo: {
  indexing: true,
  crawlers: {
    openai: { search: true, training: false },
    anthropic: { search: true, training: false },
    googleExtended: false,
  },
},
OptionBotUsed for
crawlers.openai.searchOAI-SearchBotChatGPT search results
crawlers.openai.trainingGPTBotOpenAI training data
crawlers.anthropic.searchClaude-SearchBotClaude search results
crawlers.anthropic.trainingClaudeBotAnthropic training data
crawlers.googleExtendedGoogle-ExtendedGemini training and grounding, as Google describes it

What robots.txt gets

The config above adds these groups after User-agent: *, shown for a site with English and Polish:

User-agent: OAI-SearchBot
Allow: /
Disallow: /admin
Disallow: /settings
Disallow: /pl/settings
Disallow: /modcp
Disallow: /pl/modcp
Disallow: /files
Disallow: /pl/files
Disallow: /login
Disallow: /pl/login
Disallow: /register
Disallow: /pl/register

User-agent: GPTBot
Disallow: /

User-agent: Claude-SearchBot
Allow: /
Disallow: /admin
Disallow: /settings
Disallow: /pl/settings
Disallow: /modcp
Disallow: /pl/modcp
Disallow: /files
Disallow: /pl/files
Disallow: /login
Disallow: /pl/login
Disallow: /register
Disallow: /pl/register

User-agent: ClaudeBot
Disallow: /

User-agent: Google-Extended
Disallow: /

An allowed bot gets the same Disallow lines as User-agent: * because a crawler obeys only the most specific group that names it. Without them, Allow: / alone would open the AdminCP to that bot.

What these rules can't do

Crawler rules state a policy that well-behaved bots follow. They do not block HTTP requests, and they do not cover fetches a person starts, such as asking an assistant to open one page. Google-Extended never changes how Google Search crawls or ranks the site.

On Cloudflare, check that the zone's managed robots.txt does not add conflicting rules; see robots.txt.

Check the result

Restart the app and look for the group of one bot:

curl -s http://localhost:3000/robots.txt | grep -A1 'User-agent: GPTBot'

With openai.training: false it prints User-agent: GPTBot followed by Disallow: /.