最終更新日:2026-08-21 17:57:32
Reading time: About 12 minutes
Prerequisites: The hostname has been onboarded, and the Bot Management master switch is enabled.
Web Bot Detection is a frictionless human-verification capability built for web page scenarios, designed to strengthen the identification of and defense against Bot traffic in browser environments. It applies to Web/H5 pages, including pages loaded through the built-in browser inside an app or mini program.
This feature works by injecting a lightweight JavaScript SDK (a few dozen KB) into the page to precisely collect browser-environment and interaction signals, which are then combined with server-side policies for a comprehensive risk assessment.
Key risk scenarios addressed:
Note: Once this feature is enabled, the cloud security platform automatically injects the JS SDK into the HTML pages returned by your site. Because this changes how page content is returned, it may conflict with certain frontend scripts, page compatibility settings, or browser environments. We recommend validating the feature in a test or staging environment before enabling it in production.
Web Bot Detection uses a closed-loop mechanism of "client-side page injection + environment/behavior collection + state correlation + cloud-based comprehensive decision-making."
, and go to the Policies editing page.Once this feature is enabled, the platform adds the following objects to your pages and requests. Please confirm these do not conflict with your business:
JS SDK embedded by the cloud security platform during the response phase:
| JS SDK | Cache Duration |
|---|---|
| /_fec_sbu/hxk_fec_[version].js | 30 days |
Cookies added by the cloud security platform during the request phase:
| Cookie Name | Duration | Applicable Protocol | Secure | HttpOnly |
|---|---|---|---|---|
| FECW | 10 years | HTTPS | √ | × |
| FECA | Session | HTTPS | √ | × |
| FECN | 10 years | HTTP | × | × |
| FECG | Session | HTTP | × | × |
In addition, the cloud security platform adds the following URL token to asynchronous API requests on this site:
| Token Name | Example |
|---|---|
| FECU | http://www.example.com/test.html?id=1&FECU=[value] |
Note: After enabling Web Bot Detection, page content, cookies, and some asynchronous request URLs may change. We recommend validating the following before enabling it in production:
- Page script compatibility
- Whether frontend resources load correctly
- Whether asynchronous API requests allow additional URL parameters
- Whether strict validation logic exists for cookies or URL parameters
- Whether this conflicts with CSP, caching policies, or other security configurations
Web Bot Detection includes the following 5 capability dimensions. Browser Feature Validation is the baseline capability and cannot be disabled on its own; the remaining capabilities can be enabled or disabled based on your business needs.
| Capability Dimension | Core Function | Configuration Recommendation |
|---|---|---|
| Browser Feature Validation | Verifies whether the client has the baseline capability to execute JavaScript and support cookies. When the action is set to **Deny**, this capability uses an adaptive handling approach: for typical GET requests, if verification fails, the platform generally issues a human-verification challenge first rather than blocking the request outright. Requests that pass the challenge are allowed through; requests that fail are then denied. |
Baseline capability, enabled by default, and cannot be disabled on its own. |
| Automated Tool Detection | Checks the client environment to verify whether the request originated from a known automation tool (including WebDriver, PhantomJS, and others). Abnormal requests are handled according to the configured action. | Recommended. Effectively defends against mid-to-advanced crawlers. |
| Cracking Behavior Detection | Identifies attacks that attempt to tamper with or bypass the core logic of the JS SDK. Abnormal requests are handled according to the configured action. | Recommended. Increases the cost of reverse-engineering for attackers. |
| Page Anti-Debugging | Interferes with the use of developer tools (F12), making frontend code analysis more difficult. | Enable as needed. Suitable for high-value or highly adversarial businesses. |
| Interactive Behavior Verification | Detects user interaction behavior on the page. Requests that do not meet the minimum interaction count required for the business are handled according to the configured action. Interaction behavior includes the count of keyboard, mouse, and touchscreen interactions, and does not involve any sensitive user information.
| Enable as needed. Suitable for sensitive endpoints that clearly require a user action to trigger (such as login or placing an order). When configuring Interactive Behavior Verification, we recommend verifying only one URI per rule. If you use a regex match, test it thoroughly to avoid matching unintended URIs. |
In certain business scenarios, you need to configure exceptions to keep your business running normally:
If a specific HTML page has JavaScript-injection compatibility issues, you can add a URI exception for it.
The JavaScript file delivered to the client by Web Bot Detection performs ongoing verification by dynamically appending a URI token to Ajax requests. Because Ajax requests are not cached by default, this can cause the request to be answered repeatedly, increasing bandwidth usage — so the system excludes these requests from verification by default.
If your website receives requests from any of the following clients, you need to configure an exception under Custom Request Exceptions based on the request characteristics before using Web Bot Detection, to prevent these requests from being mishandled by Web Bot Detection and disrupting normal business operation.
Custom Request Exceptions:
- Name: Enter a name for the exception rule.
- Rule Description (optional): Enter a description of the rule.
- Match Conditions: Enter match conditions based on your application’s needs. You can configure multiple match conditions, which are combined with AND logic. A single match condition can contain multiple values separated by a delimiter, which are combined with OR logic.
To ensure a smooth business transition while maximizing security effectiveness, we recommend the following three-step approach: