---
title: "HTTP 202 on Every Scan Probe: Fix the AWS WAF Challenge That Hides Your Site From AI Agents"
slug: aws-waf-challenge-202-ai-agents
published: 2026-11-19T13:13:05.20557+00:00
updated: 2026-11-19T13:13:05.20557+00:00
author: "M Asif Rahman"
author_url: https://ar.bd
category: "AI Readiness"
tags: check:E1, check:C1, check:D1, check:C2, AWS WAF, HTTP 202, bot protection, AI crawlers, troubleshooting
description: "HTTP 202 on every AIScan check means an AWS WAF Challenge answered for your site. See what 6 of 861 scanned sites scored and how to exclude discovery files."
url: https://aiscan.site/blog/aws-waf-challenge-202-ai-agents
---

If every row of your scan says `HTTP 202`, the scanner never reached your site. A firewall rule answered for it, and the pattern (202 on every path, real or not) is the one AWS documents for an AWS WAF **Challenge** action. In our scan database, the six sites answering this way score 8 out of 100 on average, and the fix is one exclusion for your discovery files.

## Quick summary

| Question | Short answer |
|---|---|
| What is the 202? | According to the [AWS WAF developer guide](https://docs.aws.amazon.com/waf/latest/developerguide/waf-captcha-and-challenge-actions.html), a Challenge answers a request that has no valid token with status 202, the header `x-amzn-waf-action: challenge` and, for clients that accept HTML, a JavaScript page |
| Who gets stuck? | Any client that runs no JavaScript: GPTBot, ClaudeBot, PerplexityBot, `curl`, and our scanner |
| How bad is it? | 6 of 861 scanned sites, mean score 8, five of them at 4 (scan database, 19 November 2026) |
| How do I confirm it? | `npx aiscan-cli yoursite.com`, then one `curl` for the header |
| What is the fix? | Keep the Challenge for pages, exclude `/robots.txt`, `/llms.txt`, sitemaps and `/.well-known/` from it |
| Time needed | About 15 minutes in the web ACL, plus a re-scan |

## Why a Challenge looks like an empty site

A Challenge is a silent test for browsers. AWS WAF holds the request, sends back a small script, and the script earns a token (the `aws-waf-token` cookie) and resubmits. A person never notices. In its own words, the AWS guide says the scripts "can only be handled properly by a client that's expecting HTML content".

A crawler is not that client. It reads the 202 as the answer. [RFC 9110 §15.3.3](https://www.rfc-editor.org/rfc/rfc9110.html#name-202-accepted) defines 202 as "accepted for processing, but the processing has not been completed", so nothing tells the crawler to try again with a cookie. It gets a script tag where your robots.txt, your llms.txt and your homepage should be.

The damage goes past a low score. We served a 202 challenge page from a local test server and pointed Python's standard robots.txt parser at it:

```text
python 3.11.18
/robots.txt 202 challenge text/html; charset=UTF-8 135 bytes
/llms.txt 202 challenge text/html; charset=UTF-8 135 bytes
/no-such-page-123 202 challenge text/html; charset=UTF-8 135 bytes
can_fetch GPTBot /private/ -> True
can_fetch ClaudeBot /private/ -> True
site_maps -> None
```

The parser found no rules in the HTML, so every `Disallow` you wrote is gone for that client, and so is your sitemap line. A 403 fails the other way round in the same library, which we covered in [Python's parser treating a 403 as disallow-all](https://aiscan.site/blog/robots-txt-403-python-robotparser-disallow-all).

## What the scan database shows

These figures are from the AIScan production database on 19 November 2026: the latest site scan per host on rubric 2026.08.2, 861 hosts, our own site excluded. No host is named and none was re-probed for this post.

Six hosts returned 202 to seven or eight probes each. This is what their reports hold:

| Check | What it requests | Result on the six hosts |
|---|---|---|
| D1 robots.txt | `/robots.txt` | fail on 5 (`HTTP 202`), pass on 1 |
| C2 llms.txt | `/llms.txt` | fail on 6 |
| C1 Markdown | homepage with `Accept: text/markdown` | fail on 6 (`202 (text/html)`) |
| E1 404 handling | a nonsense path | fail on 6 (`HTTP 202, 197 bytes, text/html`) |
| E3 and C3 | homepage HTML | fail on 6 (0 words, no title, no h1) |
| P1 to P4 | `/.well-known/` files | info on 6 (`HTTP 202`) |

Five of the six score 4. The sixth scores 29, and the difference is one file: its robots.txt came back 200 with 2,277 bytes and rules for 15 AI agents, so D1 and B2 passed. Somebody there had already excluded one path from the Challenge. Excluding the rest is the same job.

One caveat. A scan stores status, size and content type, not response headers, so the stored data cannot prove those six sit behind AWS WAF. A 202 on a path that does not exist is the pattern AWS documents, and the `curl` check below settles it for your own site.

The same table shows how the scanner grades a firewall answer on the E1 probe:

| Response to a nonsense URL | Hosts | E1 grade |
|---|---|---|
| 404 with a useful body | 638 | pass |
| 200 (soft 404) | 82 | fail |
| 403 | 43 | partial |
| 429 | 31 | partial |
| 202 | 6 | fail |

A 403 or a 429 earns partial credit because the scanner recognises a block. A 202 is graded like a [soft 404](https://aiscan.site/blog/soft-404-agent-discovery-problem), although the cause is the same firewall. We have reported that as a scanner inconsistency. Until it changes, read E1 on a 202 site as "blocked", not as a broken 404 page. The wider picture of firewalls answering for sites is in our [blocked probes study](https://aiscan.site/blog/blocked-probe-share-of-failures).

## Step 1: Confirm it is a Challenge

Run the scan first. It runs about 20 checks and shows the status each one received:

```bash
npx aiscan-cli yoursite.com
```

Look at D1, C1, C2 and E1 on the [discoverability](https://aiscan.site/docs/checks/discoverability) and [content](https://aiscan.site/docs/checks/content) rows. If their evidence reads `HTTP 202`, check the header by hand:

```bash
curl -s -o /dev/null -D - https://yoursite.com/robots.txt | grep -i -E '^HTTP|x-amzn-waf-action'
```

Expected output on a challenged site:

```text
HTTP/2 202
x-amzn-waf-action: challenge
```

A `405` with `x-amzn-waf-action: captcha` is the CAPTCHA action, which fails crawlers the same way. A 202 with no `x-amzn-waf-action` header is another product, and this guide's rule syntax will not apply.

## Step 2: Find the rule that issues it

Open your web ACL logs and read the fields whose names start with `terminatingRule`, which is where AWS's Bot Control guide says the acting rule is recorded. There are two usual sources.

- **A rule you wrote** with the action set to Challenge, often matching every request.
- **The Bot Control managed rule group at the targeted level.** Verified on 19 November 2026 in the [Bot Control rule listing](https://docs.aws.amazon.com/waf/latest/developerguide/aws-managed-rule-groups-bot.html): `TGT_VolumetricIpTokenAbsent` applies Challenge to clients that are not verified bots after "5 or more requests from a single client in the last 5 minutes" without a token. A crawler reading robots.txt, a sitemap and three pages crosses that line.

## Step 3: Exclude the discovery files

Pick the path that matches the source.

**Path A: Bot Control.** Add a scope-down statement to the managed rule group so it skips discovery files. According to AWS's own [scope-down example](https://docs.aws.amazon.com/waf/latest/developerguide/waf-bot-control-example-scope-down-dynamic-content.html), fetched from the developer guide on 19 November 2026, the pattern is a regex pattern set inside a `NOT` statement. Create a regex pattern set holding this pattern:

```text
^/(robots\.txt|llms(-full)?\.txt|sitemap[^/]*\.xml|\.well-known/.*)$
```

Then reference it in the rule's JSON:

```json
"ScopeDownStatement": {
  "NotStatement": {
    "Statement": {
      "RegexPatternSetReferenceStatement": {
        "ARN": "<your regex pattern set ARN>",
        "FieldToMatch": { "UriPath": {} },
        "TextTransformations": [{ "Priority": 0, "Type": "NONE" }]
      }
    }
  }
}
```

**Path B: your own Challenge rule.** Wrap its existing statement in an `AndStatement` with the same `NotStatement`, so the rule matches only when the path is not a discovery file.

Both paths leave the Challenge on your pages. That is a choice: AI crawlers can then read your rules and your llms.txt but still cannot read articles. If you want them to read pages too, Path B needs a second exclusion for the user agents you trust, and those strings are easy to forge, so pair it with a [rate limit that exempts discovery files](https://aiscan.site/blog/rate-limit-ai-crawlers-without-blocking).

## What not to change

- **Do not switch the web ACL to Allow for these paths without thinking about order.** An Allow rule ends evaluation, so your rate-based rules stop applying to them. A scope-down keeps the other rules running.
- **Do not count on the verified-bot label for AI crawlers.** According to the same AWS rule listing, `CategoryAI` "applies the action to all matches, regardless of whether the bots are verified or unverified", and its action is Block. If Bot Control is on and you want AI crawlers, AWS's documented route is a rule action override of **Count** on `CategoryAI`, then your own label-matching rule after the group.
- **Do not judge the result in a browser.** Your browser holds a token and will show a normal page before and after.

## Verify the fix

1. Run `npx aiscan-cli yoursite.com` again. D1, C2 and E1 should stop showing `HTTP 202`.
2. By hand: `curl -s -o /dev/null -w '%{http_code}\n' https://yoursite.com/robots.txt` should print `200`. The same command on `/llms.txt` should print `200`, or `404` if you publish none.
3. A nonsense path such as `/no-such-page-123` will still print `202` while pages stay challenged. That is expected with this fix, and E1 will keep failing until the grading issue above is resolved or you exclude more paths.

AIScan cannot see inside your web ACL. It reports the status and size each probe received, and it does not name the firewall. Repeat the check after any change to the web ACL or a new version of a managed rule group.

Next: scan the site, read the D1, C2 and E1 rows, and work through the rest of the report with the [fix guides](https://aiscan.site/guides).

