AI access fix guides · Netlify

Netlify site blocking AI assistants: where to look

In the Netlify docs we read, we found no single switch that turns assistants away. A block usually comes from something added to the project.

Check my page first

What the checker shows

First, choose which visitors you mean

These are different visitors, and you can answer each one differently.

KindNamesWhat blocking it does
Fetches when a person asksChatGPT-User, Claude-User, Perplexity-UserSomeone asks the assistant about your page and it may not be able to open it.
SearchOAI-SearchBot, Claude-SearchBot, PerplexityBotYour pages may be left out of, or show up less in, that assistant's search answers.
TrainingGPTBot, ClaudeBotTells the maker not to use your pages to train its models. OpenAI says each of its settings is separate from the others.

robots.txt does not work the same for all of them: OpenAI says its rules may not apply to ChatGPT-User, and Perplexity says Perplexity-User generally ignores them, because a person asked for the page. Anthropic says its bots follow robots.txt, Claude-User included.

1. An edge function that refuses AI names (often status 401)

Netlify's own developer guide shows how to block AI bots with an edge function: it compares the visitor's User-Agent with a list of names and answers 401. The example list includes ChatGPT-User. Look through your project's edge functions, and any list they read, and take out the assistant names you want to let in.

2. A rate limit rule that targets a name (status 429)

Netlify rate limits can match an HTTP header, and the User-Agent is a header. Blocked requests get 429. Rules can be written in code on any plan, and some in the project settings. Check both for an assistant's name, or for a limit set very low.

3. Firewall Traffic Rules: addresses and countries (status 404)

These block or allow by IP address or location. A blocked visitor sees a Netlify 404 page, so it can look like a missing page. If you block a country or block everything by default, an assistant's servers may be caught.

  1. Go to Project configuration > Security > Firewall traffic rules. Team defaults are under Team settings > Access & security > Firewall traffic rules.
  2. Look for country blocks or a block-all default.
  3. Add an IP exception for the published addresses of the assistants you want.

Allow by name and address, not by name alone. Anyone can type an assistant's name into a request. The makers publish the addresses their bots come from, so a rule that asks for both is much harder to fake:

The lists change, so a rule with typed addresses needs updating from them.

Netlify's separate managed Web Application Firewall is an Enterprise feature. If you have it, read its log; in passive mode it blocks nothing.

4. robots.txt

Open /robots.txt on your site. If a build step writes it from a list of bot names, change the list, not the file. Lines for each assistant.

What Netlify itself says

Netlify can label visitors by type. Its docs call the on-demand kind ai-agent (ChatGPT-User and Claude-User are examples), and say it is generally not advisable to block or rate limit these requests, because a person asked for them. Bulk collection is a separate crawler type, so you can treat the two differently.

Check again

  1. Run the free AI access check on the same page.
  2. A "Can read" result means our visit under that name got the page with its text. It does not mean an assistant will mention your site.
  3. Your own firewall or server log is the proof either way: search it for the assistant's name and look at what was answered. Better still, ask the assistant to open the page and watch the log.

Other guides:
CloudflareVercelAWS CloudFront and WAFShopifyWordPressrobots.txt (and Webflow)Any other host, and script-only pages

Sources

Read on . Platforms rename menus; if a screen differs from this page, their page below is right.