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

# Cloudflare Bot Detection

> Solutions for Cloudflare Access and Zero Trust bot detection

If you see a Cloudflare bot detection page in one of your test failures, you likely have [Cloudflare Bot Detection](https://www.cloudflare.com/application-services/products/bot-management/) enabled. Stably's AI runs in a headless browser, which is often detected as a bot by Cloudflare.

<img height="200" src="https://mintcdn.com/stablyai/gQcjGEzeMU3Scby6/images/cloud-flare-block.png?fit=max&auto=format&n=gQcjGEzeMU3Scby6&q=85&s=317a39396b14ed711f64601fa0b5b7fe" data-path="images/cloud-flare-block.png" />

## Cloudflare Access Users

You can allowlist our user agent in your Cloudflare settings.
You can set your custom User-Agent under the Browser Settings page in Stably.

<img height="200" src="https://mintcdn.com/stablyai/gQcjGEzeMU3Scby6/images/bot-detection/user-agent.png?fit=max&auto=format&n=gQcjGEzeMU3Scby6&q=85&s=a2a841f9b822b2c66c932727aebcaa26" data-path="images/bot-detection/user-agent.png" />

## Cloudflare Zero Trust Users

In Zero Trust environments, each action initiated by Stably needs to include a service token.

You can generate a service token in your Cloudflare console by following these instructions: [https://developers.cloudflare.com/cloudflare-one/identity/service-tokens/](https://developers.cloudflare.com/cloudflare-one/identity/service-tokens/).

Once you have a service token, you can add it to the `HTTP Headers` field in your Browser Settings.

<img src="https://mintcdn.com/stablyai/gQcjGEzeMU3Scby6/images/bot-detection/cloud-flare-service-token.png?fit=max&auto=format&n=gQcjGEzeMU3Scby6&q=85&s=cf79045f1062083603b519d7fdcc799d" width="1109" height="830" data-path="images/bot-detection/cloud-flare-service-token.png" />
