Business security
Account and sign-up protection, business flow protection, web page tamper protection, client-side security and block page customisation.
These pages in the Business and API security (业务与 API 安全) group protect sign-in, sign-up and multi-step business flows, watch page content and third-party scripts, and customise block pages. Viewing needs View protection policy, changes need Modify protection policy. For the API pages, see API security; for identity authentication, see Identity authentication.
Account protection
Account protection (账号防护) guards each site's login endpoints against brute force, credential stuffing and logins with leaked passwords. It needs a Professional or higher licence, or the add-on, and includes sign-up protection.
Add a login endpoint
Each site can have up to 8 login endpoints. Select Add login endpoint (添加登录接口) and work through three steps:
- Template: generic JSON endpoint, generic form, WordPress, Spring Security form login, Django admin, Laravel, OAuth2 password grant, Keycloak, HTTP Basic or custom.
- Request: path (starting with
/, with*only at the end), method, where the user name comes from (form field, JSON field, header or HTTP Basic) and the field name. For leaked-password detection, configure the password field and turn on Leaked password detection (泄露密码检测). The hash is computed in memory only, never logged or stored. - Outcome: conditions for failed and successful logins, by status code, redirect location, response header or body keyword. At least one condition is needed.
Protection settings
| Section | Fields | Defaults |
|---|---|---|
| Per IP (brute force) | Challenge threshold, ban threshold, window (seconds), ban duration (seconds) | 10, 30, 300, 1800 |
| Per account | As above | 5, 0, 900, 900 |
| Credential stuffing | Accounts per IP, window, site-wide failures, site-wide failure rate, site-wide failed accounts | 5, 600, 50, 60%, 30 |
The ban threshold must be higher than the challenge threshold. Under Action you choose the ban scope (login endpoint or whole site) and how user names are shown (masked, hash only or plain text).
Leaked credentials detection has three modes:
| Mode | Description |
|---|---|
| Off | Default |
| Offline hash database | Looks up the password's SHA-1 in a local hash database. The page shows how many entries are loaded; without a database nothing is found |
| Online (HIBP) | Sends the first 5 hex characters of the password's SHA-1 to Have I Been Pwned (k-anonymity); needs outbound access. Times out after 500 ms and lets the request through on failure |
On a match you can log only (default), challenge or block, and optionally add an Exposed-Credential-Check header for the application to act on.
The page counts login attempts, failure rate, challenges, blocks, brute-force and stuffing events and leaked-password logins, and lists affected accounts and attack sources. Site-wide credential stuffing raises a system alert (全站撞库攻击).
Sign-up protection
Sign-up protection on the same page covers sign-up, verification code and coupon endpoints, up to 8 per site:
- Rate thresholds: challenge, throttle and ban thresholds by IP, device fingerprint, JA4, phone number or email.
- Disposable email: a built-in list of disposable email domains, blocked by default, with extra domains to allow or block.
- Phone numbers: detects invalid numbers and risky number ranges (162, 165, 167, 170 and 171 by default), and bulk sign-ups from one number range.
- A challenge can be required first.
Business flow protection
Business flow protection (业务流程防护) enforces the order and timing of multi-step business flows per site, and can learn common flows from traffic.
- Identity source: the first available of API authentication identity, JWT claim (decoded, not verified), identity gateway session, cookie or header, falling back to IP and user agent.
- Sequences: up to 16 per site, each with 2 to 16 steps. A step is a method and path, an API asset or a business purpose (login, sign-up, SMS or verification code, password recovery, payment or order, coupon, search, upload, export). Skipping steps can be forbidden.
- Rules: must pass through first, time interval (minimum or maximum), count limit, forbidden order.
- Actions: log only, block, challenge or raise the risk score.
Learned flows shows common flows and unusual jumps as a flow chart, and can turn what was learned into rules. Violation types are missing prerequisite step, interval too short, interval too long, count exceeded, forbidden order and skipped step.
Web page tamper protection
Web page tamper protection (网页防篡改) takes a baseline of each protected page from the upstream and compares SHA-256 hashes periodically. It needs a Standard or higher licence, or the add-on.
| Setting | Description |
|---|---|
| Serve baseline copy when tampered | On by default: visitors get the baseline copy and an alert is raised. When off, alert only |
| Check interval | 30 to 86400 seconds, default 60 |
| Protected paths | One per line, with optional ignore patterns per path |
| Ignore patterns (site-wide) | Up to 20, to exclude dynamic content |
| Planned release window end | Content changes inside the window become the new baseline |
Path states are pending, normal, tampered, dynamic page, cannot protect and check failed. Pages whose content differs between two fetches are marked as dynamic and need ignore patterns. For a tampered path you can view the differences and Accept (接受) the change as the new baseline if it was a legitimate release.
Each site can protect up to 200 paths, 2 MiB per path. Fetches go only to the site's configured upstreams and are not affected by the online switch. Tampering raises a system alert (网页被篡改).
Client-side security
Client-side security (客户端安全) uses CSP to manage the scripts and outbound domains a page loads, and provides evidence for PCI DSS 6.4.3 and 11.6.1.
- Mode: discovery only (default), policy report-only or policy enforced.
- Discovery sampling: 10% by default.
- Payment page paths: up to 50, with security headers and key content compared periodically (every 24 hours by default).
- Fetch third-party scripts to check hashes: needs outbound access. Offline, third-party script integrity shows as unknown.
Entries in the Script inventory and Outbound domains can be authorised or rejected, with a reason. PCI evidence collects the inventory, approvals and payment page baselines. There are also Payment page baseline (支付页基线) and Active policy (生效策略) tabs. The first day after enabling is a learning period without new-script alerts. New scripts or connections, unauthorised scripts violating the policy and changes to payment page headers or content raise system alerts.
Block pages
Block pages (拦截页) customises the page returned to visitors in each blocking scenario, globally or per site.
| Scenario | Default status |
|---|---|
| Attack blocked, IP block list, geo block, ban, access rule block, challenge failed, replayed request | 403 |
| Rate limit | 429 |
| Waiting room | 200, or 503 |
For each scenario you can change the status (any 4xx except 401, 407 and 408, or 500, 502, 503 and 504), the title (up to 64 characters) and the message (up to 300 characters). At global scope you can use custom HTML: up to 32 KiB, it must contain {{request_id}} and must not contain scripts, frames, forms, event attributes or external resources. Placeholders include request_id, event_id, status, title, message, time, client_ip, host and path.
Select Edit theme (编辑主题) to open the theme settings. Theme sets light or dark (follow system, light, dark), the primary and information colours, a logo (PNG or JPEG, up to 64 KiB), footer text, the protection notice in the bottom-right corner and whether to show the requested domain. Site themes override the global theme field by field. Previews are available for desktop and mobile.
Block pages show an event ID. When a visitor reports being blocked, look up the event ID in Investigate. Non-browser clients receive a JSON response that includes event_id.
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.
API security
API discovery, risk items, OpenAPI validation, GraphQL policy, sensitive data and cross-border data flows, broken authorisation detection, plus API authentication, gRPC, WebSocket and LLM / MCP endpoint protection.