> ## Documentation Index
> Fetch the complete documentation index at: https://docs.waniwani.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# WaniwaniBot

> WaniwaniBot reads websites for the Waniwani readiness scan. This page tells you how to identify, allow or block WaniwaniBot.

WaniwaniBot is the readiness scanner and the test agent of Waniwani. WaniwaniBot reads a website when a Waniwani user starts a [readiness scan](https://docs.waniwani.ai/agent-traffic/readiness.md) or a journey for that website. WaniwaniBot does not read websites on a schedule. Waniwani does not keep copies of the pages to train models.

## User agent

```text theme={null}
WaniwaniBot/1.0 (+https://docs.waniwani.ai/bot)
```

The test agent can also open pages in a real browser. These requests send a Chrome user agent. These requests have the same signature as the other requests.

## Signed requests

WaniwaniBot signs each request with [Web Bot Auth](https://datatracker.ietf.org/doc/draft-ietf-webbotauth-httpsig-protocol/). Web Bot Auth is the HTTP Message Signatures profile for bots. Each request has these headers:

| Header | Value |
| - | - |
| `Signature-Agent` | `"https://app.waniwani.ai"` |
| `Signature-Input` | `sig1=("@authority" "signature-agent");created=…;expires=…;keyid="…";alg="ed25519";tag="web-bot-auth"` |
| `Signature` | `sig1=:…:` |

The key directory at `https://app.waniwani.ai/.well-known/http-message-signatures-directory` contains the public key. The `keyid` is the JWK thumbprint of that key. Each signature is valid for 60 seconds.

To verify a request, do these steps:

1. Get the key directory.
2. Find the key that has the same `keyid` as the request.
3. Verify the Ed25519 signature over `@authority` and `Signature-Agent`.

When Vercel or Cloudflare list WaniwaniBot as a verified bot, these platforms do this verification for you.

## One unsigned request

The check **Agents are not blocked** must see your website as an unknown AI agent sees it. For this check, the scan sends one request to `/`. This request has no signature and uses the `ChatGPT-User` user agent. All other requests have a signature and use the WaniwaniBot user agent.

## robots.txt

WaniwaniBot obeys your `robots.txt`. Before each request and before each redirect, WaniwaniBot reads the `robots.txt` of that host. If the rules disallow a path, WaniwaniBot does not read that path.

WaniwaniBot uses the group that has the bot name of the request. If no group has that name, WaniwaniBot uses the `*` group:

| Request | Group that WaniwaniBot obeys |
| - | - |
| Signed requests | `User-agent: WaniwaniBot`, else `*` |
| The unsigned request to `/` | `User-agent: ChatGPT-User`, else `*` |
| Pages opened in a browser | `*` |

If WaniwaniBot does not read the page of a check, the scan shows that check as **Not checked**. The score does not include that check. The check **Agents are not blocked** is different. If your `robots.txt` disallows the unsigned request to `/`, the check fails, because AI agents cannot read your home page.

The answer of `robots.txt` sets which paths WaniwaniBot reads:

| `robots.txt` answer | Paths that WaniwaniBot reads |
| - | - |
| Status 200 with rules | The paths that the rules allow |
| A 5xx status, a timeout, or no connection | No path on that host, as RFC 9309 requires |
| A status that is not 200 or 5xx, for example 404 | All paths |
| Status 200 with an HTML page | All paths |

## Allow WaniwaniBot

If your firewall or bot protection stops the scan, add a rule that allows WaniwaniBot:

* **Vercel and Cloudflare**: when the platform lists WaniwaniBot as a verified bot, the platform allows WaniwaniBot through challenge modes. Until that time, add a bypass rule for the user agent `WaniwaniBot`.
* **Other firewalls**: add a rule for the user agent `WaniwaniBot`. If your firewall can verify Web Bot Auth signatures, allow the requests that have a valid signature from `https://app.waniwani.ai`.

Then start the scan again.

## Block WaniwaniBot

To stop WaniwaniBot on all or part of your website, add a group to your `robots.txt`:

```text theme={null}
User-agent: WaniwaniBot
Disallow: /
```

To block WaniwaniBot at the firewall, add a rule that blocks the user agent `WaniwaniBot`. You can also block the requests that `https://app.waniwani.ai` signs. With each of these rules, a scan of your website reads only the paths that the rules allow.

## Contact

If you have questions about WaniwaniBot, send an email to [contact@waniwani.ai](mailto:contact@waniwani.ai).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.