AI access fix guides · AWS CloudFront and WAF

AWS WAF and CloudFront blocking AI assistants: the fix

If your CloudFront or load balancer uses AWS WAF Bot Control, one rule inside it is the usual reason AI bots are turned away.

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. The rule called CategoryAI

AWS says CategoryAI inspects for AI bots, its action is Block, and it applies whether the bot is verified or not. Most other category rules leave verified bots alone. AWS also says that bots a user can call directly are treated by these rules like unverified ones.

This is why an allow rule placed after Bot Control may never help: the block happens inside the rule group first.

2. Stop CategoryAI from blocking

AWS lets you override the action of a single rule inside a rule group.

  1. Open the web ACL (protection pack) attached to your distribution.
  2. Edit the Bot Control rule group's settings.
  3. Under the rule action overrides, set CategoryAI to Count. Count records the request and lets the other rules keep deciding.
  4. Save, then watch the logs.

If you still want to refuse training bots, add your own Block rule that matches their names (GPTBot, ClaudeBot) in the User-Agent header.

3. Other rules that can still refuse them

4. Allow chosen assistants by name and address

Perplexity's own steps for AWS WAF work the same way for any maker:

  1. Create an IP set for each bot from the maker's published list.
  2. Create a rule with an AND statement: the IP set match, plus a string match on the User-Agent header containing the bot's name.
  3. Set the action to Allow, add it to your web ACL, and give it a priority that runs it before the rules that would block.

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.

If you switched protection on inside CloudFront

In the CloudFront console choose your distribution, open the Security tab, and find the bot requests section, where Enable Bot Control lives. With it on, you can set how unverified bots are handled by category. AWS says Bot Control costs extra.

Check again

  1. Run the free AI access check on the same page.
  2. If you allowed assistants by name and address, expect the checker to keep saying blocked. It sends each name from our own server, which is not on the maker's list. That is your rule working.
  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:
CloudflareVercelNetlifyShopifyWordPressrobots.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.