CC and bot protection
Rate limits and templates, adaptive CC, the waiting room, tiered challenges and advanced bot protection, verified crawlers and reverse DNS, and AI crawler control.
In the Access and CC protection group, Rate limits (频率限制), Challenges (人机验证) and AI crawlers (AI 爬虫) deal with high request rates and automated traffic. The waiting room is configured in the site details. Viewing needs View protection policy, changes need Modify protection policy.
Rate limits
Rate limits have three tabs: Rules, Limited clients (受限客户端) and Adaptive (自适应). Rules are matched in order, and the first rule that blocks wins.
Rule fields:
| Field | Description |
|---|---|
| Match conditions | A condition builder, or an expression of up to 1024 characters |
| Exclude static assets | On by default; JS, CSS, images and fonts are not counted |
| Count by | Source IP, source IP and path, header, cookie, JWT claim, API key, client certificate, identity gateway session, or a combination of 2 to 4 of these |
| Window | Sliding, hourly, daily or monthly |
| Period and threshold | The sliding period is 1 to 86400 seconds |
| Count only these response statuses | Optional, for example only 403 and 404 |
| Return quota headers | Optional; returns RateLimit and RateLimit-Policy |
| Action | Block (429 or 403), challenge (not available with calendar windows) or log only |
| Action duration | 0 to 604800 seconds, default 300. 0 means throttling mode |
| Site overrides | Change the threshold or disable the rule for a site |
New rules default to source IP, 100 requests in 10 seconds, log only. Templates cover high request rate, high attack rate, high error rate and login brute force. Preview impact (预览影响) before saving warns if the rule would block a large number of legitimate requests.
Limited clients lists active, ended and lifted limits. You can lift one rule's limit on an IP, or every limit on that IP.
In a multi-node deployment, rate limits count per node by default and across the cluster once a shared store is configured; see Multi-node and high availability.
Adaptive CC
Adaptive CC learns each site's traffic baseline and detects surges. Turning it on needs a Standard or higher licence.
- Action: alert only (default) or act automatically.
- Sensitivity: low, medium (default) or high. Minimum rate defaults to 20 requests per second; below it, nothing counts as a surge.
- Traffic can be grouped by path.
- Automatic actions can be combined: throttle high-rate clients, challenge (web pages only or all requests) and the waiting room. To use the waiting room, set the site's waiting room to activate on surges.
- Planned events: set a time window and multiplier for known peaks such as promotions, optionally pausing automatic actions.
States are learning, normal, surge and off. You can Relearn (重新学习), mark a surge as normal (认可为正常) or End action (结束处置). After ending an action, that path group is not acted on automatically for 30 minutes. Surges raise a system alert (CC 攻击激增).
Waiting room
The waiting room is configured in the site details under Sites and nodes. Set a concurrency limit; visitors above it queue and are admitted first come first served or by random draw. It can be always on or activate only on surges. See Sites and nodes.
Challenges
Challenges run locally with no third-party service. They are tiered by risk: invisible PoW, harder PoW, interactive verification (slider puzzle, rotation, icon selection, with an accessible option), and finally block. Apps and single-page applications can complete verification through the SDK token endpoint.
The page shows the challenge flow, tier statistics and challenge events, and lets you preview the challenge page. A passed challenge is valid for 30 minutes by default, and each puzzle is single-use within 5 minutes. With Site switches (站点开关), turning challenges off for a site makes requests that would be challenged go straight to block.
Advanced bot protection
Open Advanced bot protection (高级 Bot 防护) on a site; the drawer is titled "Bot protection: site name".
| Setting | Description | Default |
|---|---|---|
| Challenge method | Smart tiering, at least PoW, or always interactive | Smart tiering |
| Risk thresholds | Score boundaries for invisible, interactive and block, 1 to 101, where 101 means never | invisible below 30, interactive from 60, block from 90 |
| Interactive puzzles | Slider puzzle, rotation, icon selection | Slider puzzle and rotation |
| High-risk puzzle | Puzzle used at higher risk | Icon selection from 75 |
| Puzzle difficulty | Easy, standard or hard | |
| PoW difficulty | 5000 | |
| Validity | 1 to 1440 minutes | 30 |
| Challenge page language | Follow browser or Chinese | |
| Headless browser detection | Block and suspect thresholds | 90 and 70 |
| Replay protection | Requires a single-use nonce on given path prefixes; block or log when it is missing or reused |
Replay protection needs a Standard or higher licence, or the bot replay protection add-on.
Verified crawlers
Verified crawler detection confirms search engine and other crawlers by official IP ranges and reverse DNS. The official ranges are built in and updated offline through signed rule bundles, with a notice when they are more than 90 days old.
- Reverse DNS: off, auto (default) or always. Reverse DNS needs outbound access, so offline deployments use IP ranges only.
- Exemptions: verified crawlers are exempt from challenges, dynamic protection and bot scoring by default. Attack detection is never exempted.
- Categories: search engines, ad quality checks and user-triggered fetches (default), plus AI agents and AI training or answering.
- Rate limits: relaxed (default, threshold multiplied by 10), exempt or unchanged.
If your internal DNS returns NXDOMAIN for reverse lookups of external addresses, set reverse DNS to Off. Otherwise crawlers that can only be verified by reverse DNS (Baidu, Bing and others) are classed as fake, with the event bot_fake and a bot score of 100.
AI crawlers
The AI crawlers page has four tabs: Traffic dashboard, Site policy, Crawler list and Signature directory. The dashboard shows AI crawler requests, their share of all traffic, impersonation attempts and blocks.
Site policy:
- Requests declaring themselves as AI crawlers default to log only; impersonation (failed verification) defaults to block.
- Actions can be set by purpose: model training, AI search or answers, user-triggered fetches, AI agents and other. Settings for individual crawlers take priority over purpose.
- Actions are allow, log only, block, challenge, and allow only robots.txt and specified paths.
AI crawlers are verified by official IP ranges, reverse DNS or Web Bot Auth signatures. The crawler list and a snapshot of the signature directory are updated offline through signed rule bundles. In online mode you can fetch signature directories over the network; offline, you can import JWKS (Ed25519 keys only).
Access control
Allow and block lists and IP groups, access rule conditions and actions, geo access, the threat intelligence library, JA4 lists and bans.
Business security
Account and sign-up protection, business flow protection, web page tamper protection, client-side security and block page customisation.