# Check AI crawler access on all versions

- Check 29.12 · Multilingual GEO and international reputation · Important
- Source: https://checklist-seo-geo.com/en/multilingual-geo-international-reputation/check-ai-crawler-access-all-versions
- Check on every domain, subdomain and language directory that robots.txt, CDN and firewall treat AI crawlers the way your policy intends.
- Updated on 2026-11-25
- Licence: CC BY 4.0. Credit “Checklist SEO & GEO” with a link to https://checklist-seo-geo.com/en/multilingual-geo-international-reputation/check-ai-crawler-access-all-versions.
- Plugin checklist-seo-geo: 1.3.1 · https://github.com/maximegaul/checklist-seo-geo

## In short

A multilingual site is rarely served by a single host: `example.com/fr/`, `de.example.com`, `example.be` or `example.ch` may each have their own robots.txt, their own CDN zone (Content Delivery Network) and their own firewall rules. This task consists of inventorying every version, then checking on each one that search crawlers and AI crawlers get the treatment decided in your policy: same permissions, same refusals, a 200 response. The deliverable is a host-by-crawler matrix with no red cells.

## Why it matters

Access rules do not carry over from one version to another:

- **robots.txt**: Google specifies that the rules in a robots.txt file apply only to the host, protocol and port where it is published, and that a file on a subdomain is valid only for that subdomain. Anthropic likewise asks site owners to repeat the rules aimed at its crawlers on each subdomain concerned.
- **CDN and firewall**: at Cloudflare, AI crawler access policies apply to the selected zone. A country-code domain, `example.de`, is another zone, with its own settings.
- **Geographic restrictions**: country blocking set on a single version keeps out crawlers, which crawl from other countries.

The common scenario: the French site, carefully configured, allows OAI-SearchBot and Claude-SearchBot; the German version, migrated later to a subdomain, kept a staging robots.txt with `Disallow: /`, or its Cloudflare zone blocks all AI crawlers by default. Assistants never cite the German version.

## What it improves

- **Citations in AI answers by market**: each version remains eligible for the assistants you want visibility in. A necessary condition, not a guarantee.
- **Consistent data policy**: a training opt-out decided for the brand also applies to the foreign versions.
- **Classic indexing**: the same checks cover Googlebot and Bingbot, whose index feeds Copilot.

## How to check

**1. Inventory the hosts.** List each domain and subdomain that serves a version: language selector, hreflang annotations, sitemaps, Search Console properties. Put them in `hosts.txt`, one base URL per line:

```txt
https://example.com
https://www.example.com
https://de.example.com
https://example.be
https://example.ch
```

**2. Compute the permissions matrix.** This Python script reads each host's robots.txt and shows whether each crawler may crawl a sample URL of the version:

```python
#!/usr/bin/env python3
# robots_matrix.py: python3 -I robots_matrix.py hosts.txt
import sys
import urllib.robotparser

AGENTS = [
    "Googlebot", "Bingbot",
    "OAI-SearchBot", "ChatGPT-User", "GPTBot",
    "Claude-SearchBot", "Claude-User", "ClaudeBot",
    "PerplexityBot", "Perplexity-User",
    "Google-Extended", "Applebot-Extended",
]
SAMPLE_PATH = "/"

with open(sys.argv[1]) as handle:
    hosts = [line.strip().rstrip("/") for line in handle if line.strip()]

print("host;" + ";".join(AGENTS))

for base in hosts:
    parser = urllib.robotparser.RobotFileParser(f"{base}/robots.txt")
    parser.read()
    cells = ["yes" if parser.can_fetch(agent, f"{base}{SAMPLE_PATH}") else "NO" for agent in AGENTS]
    print(base + ";" + ";".join(cells))
```

In a spreadsheet, every row should be identical, except for differences your policy provides for. The Python module does not apply the most-specific-rule logic the way Google does, and treats a robots.txt returning 401 or 403 as a full disallow: check borderline cases by hand.

**3. Test the HTTP response per crawler** on each host:

```bash
while read -r base; do
  for ua in "OAI-SearchBot/1.0" "Claude-SearchBot/1.0" "PerplexityBot/1.0" "Googlebot/2.1"; do
    code=$(curl -s -o /dev/null -w "%{http_code}" -A "Mozilla/5.0 (compatible; $ua)" "$base/")
    echo "$base $ua $code"
  done
done < hosts.txt
```

A `403` or `503` on a single version points to a rule specific to that host. Your test comes from your own IP address: the logs of each version confirm what the real crawlers receive. See [test HTTP responses for each crawler](https://checklist-seo-geo.com/en/ai-crawler-access-data-policy/test-http-responses-each-crawler) and [analyze AI crawler logs](https://checklist-seo-geo.com/en/ai-crawler-access-data-policy/analyze-ai-crawler-logs).

**4. Use Search Console.** In a domain property, the [robots.txt report](https://search.google.com/search-console/settings/robots-txt) shows the files found for the top 20 hosts, with their status and the date they were last crawled. Each country-code domain requires its own property.

## How to implement

### Before you start

Start from your written policy, set out in [define rules for search, training and user-triggered access](https://checklist-seo-geo.com/en/ai-crawler-access-data-policy/define-rules-search-training-user-triggered-access), and set a robots.txt template shared by all versions. Only two lines change from one version to another: the host-specific paths and the `Sitemap` line.

```txt
User-agent: *
Disallow: /compte/
Disallow: /panier/

User-agent: OAI-SearchBot
User-agent: Claude-SearchBot
User-agent: PerplexityBot
Disallow: /compte/
Disallow: /panier/

User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
User-agent: Applebot-Extended
Disallow: /

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

This template illustrates a “visibility yes, training no” policy: adapt it to yours. Crawler names change; check them in each vendor's documentation and in [list the AI crawlers you target](https://checklist-seo-geo.com/en/ai-crawler-access-data-policy/list-ai-crawlers-you-target).

For a version in a subdirectory (`/de/`), there is only one robots.txt: look for a forgotten `Disallow: /de/` line left after a phased launch.

### Apache

Versions: Apache 2.4.

When several domains share the same document root, a physical `robots.txt` file is served identically on every host, with the same `Sitemap` line. Serve one file per host from the virtual host configuration or the `.htaccess`:

```apache
RewriteEngine On

RewriteCond %{HTTP_HOST} ^(www\.)?example\.de$ [NC]
RewriteRule ^robots\.txt$ /robots/robots-example-de.txt [L]

RewriteCond %{HTTP_HOST} ^de\.example\.com$ [NC]
RewriteRule ^robots\.txt$ /robots/robots-de-example-com.txt [L]
```

Then look for user-agent or country blocking in every virtual host, not only the main site's:

```bash
grep -r -n -i -E "servername|serveralias|gptbot|oai-searchbot|claude|perplexity|geoip|maxmind" /etc/apache2/sites-enabled/ /var/www/*/.htaccess
```

Test, then reload: `sudo apachectl configtest && sudo systemctl reload apache2`.

### Nginx

Versions: Nginx 1.18 and later.

Serve one robots.txt per host with a `map` in the `http` context:

```nginx
map $host $robots_file {
    default            robots-default.txt;
    example.de         robots-example-de.txt;
    www.example.de     robots-example-de.txt;
    de.example.com     robots-de-example-com.txt;
}
```

Then, in each `server` block concerned:

```nginx
location = /robots.txt {
    root /var/www/robots;
    try_files /$robots_file =404;
}
```

Spot the rules that apply only to some hosts by reading the full configuration, `server` blocks included:

```bash
sudo nginx -T 2>/dev/null | grep -n -i -E "server_name|gptbot|oai-searchbot|claude|perplexity|geoip|deny"
```

Run `sudo nginx -t && sudo systemctl reload nginx` after any change.

### Cloudflare

Versions: Cloudflare dashboard, all plans, November 2026.

Each country-code domain is a separate zone: repeat these checks in each one, and compare them in a table.

1. **AI crawler access policies**: [`Security > Settings`](https://dash.cloudflare.com/?to=/:account/:zone/security/settings), `Bot traffic` filter, `AI Crawler and Agent access policies`. The `Search`, `Agent` and `Training` behaviors must have the same value in every zone, unless you decided otherwise.
2. **Managed robots.txt**: the `Enable Bot Preference Sync` option, on the same screen, adds `Disallow` rules at the top of the zone's robots.txt. If it is on in one zone and not in another, the two robots.txt files differ.
3. **[AI Crawl Control](https://dash.cloudflare.com/?to=/:account/:zone/ai)**: `Crawlers` tab, action per crawler.
4. **Custom rules**: in [`Security > Security rules`](https://dash.cloudflare.com/?to=/:account/:zone/security/security-rules), look for rules involving `ip.src.country`, `cf.client.bot` or a specific host. Within one zone, a rule may target a single subdomain:

```txt
(http.host eq "de.example.com" and ip.src.country ne "DE")
```

Such a rule blocks crawlers, which rarely crawl from Germany. See [check geographic restrictions](https://checklist-seo-geo.com/en/ai-crawler-access-data-policy/check-geographic-restrictions).

5. **Bot Fight Mode**: when enabled on a free zone, it cannot be bypassed with a rule. See [check CDN, Cloudflare and WAF](https://checklist-seo-geo.com/en/ai-crawler-access-data-policy/check-cdn-cloudflare-waf).

### AWS

Versions: AWS console, CloudFront and AWS WAF, November 2026.

With CloudFront, each version often has its own distribution. List them with their associated firewall and geographic restriction:

```bash
aws cloudfront list-distributions \
  --query "DistributionList.Items[].{Id:Id,Domains:Aliases.Items,WebACL:WebACLId,Geo:Restrictions.GeoRestriction.RestrictionType}" \
  --output table
```

Check each row:

- **Web ACL (AWS WAF)**: the same Bot Control rule group configuration everywhere. Its `CategoryAI` rule blocks AI crawlers by default; an exception set on a single web ACL leaves the other versions closed.
- **Geographic restriction**: a `whitelist` value (allow list) limited to the version's country keeps crawlers out. Set it in the [CloudFront console](https://console.aws.amazon.com/cloudfront/v4/home), on the distribution's `Security` tab.
- **robots.txt**: the object served by each distribution's origin (S3 bucket or server).

### Plesk

Versions: Plesk Obsidian 18.0.

In `Websites & Domains`, each domain and subdomain has its own document root, shown in its hosting settings. Open each version's `File Manager` and check its `robots.txt`. Then check, for each domain, the `Web Application Firewall` (ModSecurity) and any security extensions: a rule set or a list of blocked bots may differ from one subscription to another.

### cPanel

Versions: cPanel, Jupiter theme, November 2026.

The `Domains` page lists each domain and subdomain with its document root. Two versions that share the same document root share the same robots.txt: in that case, apply the per-host Apache rule in the `.htaccess`. cPanel's `ModSecurity` interface lets you turn the firewall on or off domain by domain: align the setting across all versions.

### Shared hosting

You only control the files: one robots.txt per document root and the `.htaccess`. If several domains point to the same root, use the per-host rewrite from the Apache section. If a test returns `403` on a single version without any rule of yours, the host's protection applies to that domain: see [check automatic blocking and CAPTCHAs](https://checklist-seo-geo.com/en/ai-crawler-access-data-policy/check-automatic-blocking-captchas).

### WordPress

Versions: WordPress 6.5 and later, WPML and Polylang, November 2026.

**Multisite.** Each site has its own virtual robots.txt and its own settings. A language site still set to “Discourage search engines from indexing this site” (`Settings > Reading`), often after its preparation phase, adds a `noindex` tag to all its pages: crawlers can access them, but no page is indexed or cited. Check the option on every site with WP-CLI:

```bash
wp site list --field=url | while read -r url; do
  echo "$url $(wp option get blog_public --url="$url")"
done
```

`1` is expected everywhere; `0` indicates a site closed to indexing.

**One installation, several domains** (WPML or Polylang with one domain per language). A physical `robots.txt` at the root is served on every domain. Delete it to go back to the virtual file, then adapt the `Sitemap` line to the host with the `robots_txt` filter, in a custom plugin or a child theme's `functions.php`:

```php
<?php

add_filter('robots_txt', function (string $output, bool $public): string {
    $allowedHosts = ['example.com', 'example.de', 'example.be'];

    $host = strtolower($_SERVER['HTTP_HOST'] ?? '');

    if (! in_array($host, $allowedHosts, true)) {
        return $output;
    }

    return $output . "\nSitemap: https://{$host}/sitemap_index.xml\n";
}, 20, 2);
```

Also check the AI crawler blocking options of your SEO plugin and your host, site by site.

### Shopify

Versions: Online Store 2.0 themes, Shopify Markets, November 2026.

The `robots.txt.liquid` template is shared by all the store's domains and market subfolders: a rule applies to every market. Still test each market domain with the commands from “How to check”.

### Laravel

Versions: Laravel 11 to 13.

Delete `public/robots.txt`, which the web server serves first, and generate the file based on the host:

```php
<?php

// routes/web.php
use App\Http\Controllers\RobotsController;
use Illuminate\Support\Facades\Route;

Route::get('/robots.txt', [RobotsController::class, 'show'])->name('robots');
```

```php
<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use Illuminate\Http\Response;

class RobotsController
{
    public function show(Request $request): Response
    {
        $host = $request->getHost();

        $sitemaps = config('robots.sitemaps');

        if (! array_key_exists($host, $sitemaps)) {
            abort(404);
        }

        $body = view('robots', ['sitemap' => $sitemaps[$host]])->render();

        return response($body, 200)->header('Content-Type', 'text/plain; charset=UTF-8');
    }
}
```

The `resources/views/robots.blade.php` view contains the shared template, ending with `Sitemap: {{ $sitemap }}`, and `config/robots.php` maps each host to its sitemap. Configure trusted hosts (`trustHosts` in `bootstrap/app.php`) so that `getHost()` does not depend on a spoofed header.

### Next.js

Versions: Next.js 15 and 16 (App Router).

`app/robots.ts` can read the request host; calling `headers()` makes the route dynamic:

```ts
// app/robots.ts
import type { MetadataRoute } from 'next'
import { headers } from 'next/headers'

const sitemaps: Record<string, string> = {
  'example.com': 'https://example.com/sitemap.xml',
  'example.de': 'https://example.de/sitemap.xml',
  'example.be': 'https://example.be/sitemap.xml',
}

export default async function robots(): Promise<MetadataRoute.Robots> {
  const host = (await headers()).get('host') ?? 'example.com'

  return {
    rules: [
      { userAgent: '*', disallow: ['/compte/', '/panier/'] },
      { userAgent: ['OAI-SearchBot', 'Claude-SearchBot', 'PerplexityBot'], disallow: ['/compte/', '/panier/'] },
      { userAgent: ['GPTBot', 'ClaudeBot', 'Google-Extended', 'Applebot-Extended'], disallow: '/' },
    ],
    sitemap: sitemaps[host] ?? sitemaps['example.com'],
  }
}
```

On Vercel, also check the project's firewall and any middleware that redirects based on country.

## Common mistakes

- **Auditing only the main domain**: country versions have their own robots.txt, CDN zone and Search Console property.
- **A physical robots.txt shared** between several domains: the `Sitemap` line points to the wrong domain and the rules cannot differ.
- **A staging robots.txt left online** on a version launched after the others.
- **A robots.txt returning an error on one host**: on a 5xx error, Google stops crawling for the first few hours, then falls back on the last cached version; a 404 counts as full permission, including for the crawlers you wanted to refuse.
- **Country blocking on the local version**: crawlers do not crawl from your customers' country.

## Frequently asked questions

### Does a robots.txt on the main domain apply to language subdomains?

No, a robots.txt applies only to the host, protocol and port where it is published. `de.example.com` needs its own file, as does `example.de`. Anthropic explicitly asks site owners to repeat the rules for each subdomain concerned. On the other hand, versions in subdirectories such as `/de/` and `/fr/` share the domain's robots.txt.

### Should you allow the same AI crawlers on every language version?

As a general rule, yes: the visibility and training policy is a brand decision that should apply to every version. An exception may be justified, for example a market where you no longer sell or a local legal constraint. In that case, document it in your policy, so that a deliberate difference is not mistaken for an oversight during the next audit.

### Do Cloudflare's AI crawler settings apply to all my domains?

No, Cloudflare's AI crawler access policies apply to the selected zone. Each country-code domain, such as `example.de` or `example.be`, is a separate zone that must be configured separately. Subdomains of the same zone share these policies, but a custom security rule may target a single host: review them all, filtering on the hostname.

### How do you quickly check the robots.txt files of all your domains?

To quickly check the robots.txt files of all your domains, list each host in a text file, then fetch each `robots.txt` with a `curl` loop that shows the HTTP code and the rules. A Python script using the `urllib.robotparser` module then produces a host-by-crawler matrix. Search Console's robots.txt report covers the top 20 hosts of a domain property.

## Resources

- [Google Search Central: How Google interprets the robots.txt specification](https://developers.google.com/search/docs/crawling-indexing/robots/robots_txt)
- [Search Console Help: robots.txt report](https://support.google.com/webmasters/answer/6062598?hl=en)
- [OpenAI: Overview of OpenAI crawlers](https://developers.openai.com/api/docs/bots)
- [Anthropic: Claude's crawlers and how to control them](https://support.claude.com/en/articles/8896518)
- [Perplexity: Crawlers and IP ranges](https://docs.perplexity.ai/docs/resources/perplexity-crawlers)
- [Cloudflare: AI crawler and agent access policies](https://developers.cloudflare.com/bots/additional-configurations/block-ai-bots/)
- [Cloudflare: Managed robots.txt](https://developers.cloudflare.com/bots/additional-configurations/managed-robots-txt/)

Next steps: [check cited URLs by language](https://checklist-seo-geo.com/en/multilingual-geo-international-reputation/check-cited-urls-language) and [measure AI crawler visits](https://checklist-seo-geo.com/en/geo-kpis/measure-ai-crawler-visits).
