tencent cloud

Web Application Firewall

Single Scene

ダウンロード
フォーカスモード
フォントサイズ
最終更新日: 2026-11-09 15:30:51
AI翻訳・品質チェック済み
Single Scene is suitable for scenarios where BOT protection policies need to be quickly and uniformly configured for all paths under a domain. When you switch to Single Scene, the Multi-Scene Mode configurations under the domain are retained but do not take effect, and only the Single Scene protection configuration takes effect. To create and activate multiple scenario configurations at the same time, switch to Multi-Scene Mode.

Switching to Single Scene

1. Log in to the WAF console and choose BOT Management > BOT Rule Configuration in the left sidebar.
2. On the BOT rule configuration page, select the domain to protect in the upper-left corner, and click BOT Protection. On the BOT protection page, click Switch to Single Scene in the upper-right corner.
3. In the confirmation window, click OK to switch to Single Scene.
Note:
After you switch to Single Scene, the system automatically enables basic protection (default monitor mode and strict protection level) and supports custom adjustments.
4. After you switch to Single Scene, you can view the scene ID of the current Single Scene. Traffic that passes through this scenario will have the scenario ID recorded in logs.

Basic Protection

The basic protection module has built-in BOT detection rules continuously maintained by security experts, with a false positive rate below 0.05%. It can identify suspicious BOT characteristics and enables monitoring mode globally by default. On the Single Scene page, the following configurations are supported:
1. Click to switch the global protection mode to Monitor, Redirect to, JS validation, CAPTCHA, or Block. When you select Redirect to, enter the complete URL for redirection. Requests matching the rule will be redirected to the specified URL. To adjust the handling action for a single rule, see Modify Rule for details.
2. Select the protection level as Strict or Normal from the drop-down list.
Strict Mode: Strict mode is the default. After switching, switches for all low-risk, medium-risk, high-risk, and ultra-high-risk rules are enabled.
Normal Mode: After switching, switches for all medium-risk, high-risk, and ultra-high-risk rules are enabled.
3. On the basic rules page, you can view details of system-preconfigured basic rule sets or add custom rules.
Traffic Rules: System-preconfigured traffic rules can detect and protect against multiple types of BOTs, including crawler, malicious scanning, DDoS, traffic brushing, and account enumeration types. You can also filter them by BOT type.
Client Rules: Client rules take effect only on requests for which you have configured access. Make sure that access configuration is complete. For details, see the BOT multi-platform protection documentation. System-preconfigured client rules perform risk detection across dimensions such as device, application, network, and behavior.

Custom Rules
: Click Add Rule to open the custom rule dialog box. Configure protection rules based on access characteristics. The parameters are described in the following table. After confirming that the content is correct, click OK.
Parameter
Description
Rule Name
Enter the rule name. It cannot exceed 50 characters.
Rule Description
Enter the rule description. It cannot exceed 256 characters.
On/Off
The enablement status of the rule. After the switch is turned off, the rule does not take effect.
Condition
Select a match field, logical operator, and enter the match content to perform actions on requests that meet the match conditions. Each rule supports selecting up to 10 match fields, and the effective logic among multiple match fields is AND. When you hover over a specific match condition, you can view the corresponding field description. For details about match condition fields, see Match Field Description.
Execution Action
Monitor: Session requests that meet the matching conditions will be monitored and logged. You can view the monitored session information in the custom type section of BOT details.
JS validation: Requests that meet the matching conditions will undergo JavaScript validation and be logged.
Note:
JS validation is supported only in the Enterprise edition and above, or on WAF instances with BOT protection enabled. If your current edition does not support it, upgrade the instance edition and enable BOT protection. For details, see Upgrade Method.
Redirect to: Session requests that meet the matching conditions are redirected to a specified URL. However, redirection is supported only to URLs under the current domain.
CAPTCHA: This feature is used only in browser access scenarios. Session requests that meet the matching conditions will undergo a Captcha challenge. If the challenge fails, a block action is performed. If the challenge succeeds, normal access is allowed. Click Global settings for CAPTCHA next to Human-Computer Verification to further configure the number of Captcha retries, the allowlist duration, and the block duration.
Note:
The CAPTCHA feature includes three verification methods: Slider CAPTCHA, Frictionless verification, and Voice Verification Captcha. Voice Verification Captcha is supported only in non-Chinese mainland regions.
Block: When you select the block action, you can configure the response page content returned for requests matching the rule and customize the response page. Session requests that meet the matching conditions will be blocked. Block results can be viewed in Attack Logs, and real-time information about blocked IP addresses can be viewed in IP Blocking Status.
Delay Penalty:
Session requests that meet the matching conditions will be penalized by the WAF for a period of time. Subsequent requests during the penalty period will be blocked. Normal access automatically resumes after the penalty period ends.
Configure the Penalty Duration, which supports a range of 1-5000 milliseconds. After you enable the delay penalty, the request response time increases. Therefore, configure it appropriately based on the request timeout settings of your business.
Trust: Session requests that meet the matching conditions will be allowed. No logs are recorded for allowed requests.
Multi-action hybrid policy: Configure multiple action types and set differentiated handling actions for different effective scopes.
Priority
Enter an integer from 1 to 100. A smaller value indicates a higher execution priority of this rule. For the same priority, a later creation time indicates a higher priority.
Custom Tag
Normal: The access traffic is identified as originating from a normal human.
Friendly bot: Identifies the traffic from this access source as a BOT that is friendly/legitimate to the website.
Suspicious bot: The traffic from this access source is identified as suspected BOT, but whether it is harmful to the website cannot be determined.
Malicious bot: Identifies the traffic from this access source as a BOT that generates malicious traffic/unfriendly access requests to the website.
Effective Method:
Permanent: Takes effect permanently.
Scheduled Effectiveness: It takes effect according to the specified daily time periods.
Weekly Granularity Effective: It takes effect according to specific days and time periods each week.
Monthly Granularity Effective: It takes effect according to specific dates and time periods each month.
Action: Can be set to Trust, Monitor, Redirect to(redirect to a specific website URL), CAPTCHA, or Block.
4.
Modify
Rule:
Traffic Rules and Client Rules: Select one or more rule IDs to batch switch protection actions to Monitor, Redirect to, JS validation, CAPTCHA, or Block. You can also batch enable or disable rules to adjust their effective status.
Custom Rules: Go to the custom rule editing page to individually adjust the protection action, switch status, and other configurations of each rule.

Browser Bot Defense

For detailed feature descriptions of browser bot defense, see Protection Module. In Single scene, you can adjust the protection mode of browser bot defense based on business scenarios.
1. In the browser bot defense module on the BOT Protection page, click the Browser Bot Defense On/Off to enable browser bot defense.
2. Click Protection Mode to switch among four protection modes: Monitor, Redirect to, CAPTCHA, and Block, adjusting the execution action for matched traffic. When you select Redirect, enter the complete URL for redirection. Requests matching the rule will be redirected to the specified URL.

Bot Analytics

For detailed feature descriptions of bot analytics, see Protection Module. In Single scene, you can adjust the submodule switches and action policies of bot analytics based on actual business scenarios.
1. In the Bot Analytics module on the BOT Protection page, click Configuration to open the bot analytics settings sidebar. Traffic that matches Bot Analytics will have the matched action policy ID recorded.
2. On the Bot analytics configuration page, you can enable/disable the analysis switches of the four submodules. After a submodule is disabled, its corresponding policies are no longer analyzed and are not included in the BOT score evaluation.
3. You can click Configure now in each submodule for detailed configuration. For specific configuration methods, see Protection Module.
Note:
The configuration modified here is a global configuration, and after modification, it takes effect for all scenarios under the current domain.
4. In the Mode, you can quickly switch protection modes or use a custom mode. The score ranges, execution actions, and tags of each mode can also be modified.
Configuration Item
Description
Mode Settings
Provides four handling modes: relaxed, moderate, strict, and custom. Among them, relaxed, moderate, and strict are preset modes, corresponding to recommended classifications and handling policies for BOTs of different threat levels. Preset modes can be modified, and once modified, they become custom modes.
Score Range Settings
The total score of score ranges is 0 to 100. Up to 10 entries can be added for each score range. The configured score interval is left-closed and right-open. Score ranges cannot overlap. A score interval can be left empty, and when it is empty, no handling action is performed for that score range.
Action Settings
Can be set to trust, monitor, redirect to (redirect to a specific website URL), CAPTCHA, or block.
Tag Settings
Can be set to friendly BOT, malicious BOT, normal, or suspicious BOT.
5. After confirming that the content is correct, click Save.

Appendix

Match Field Description

Field Type
Field
Field Description
Scope
Request path
Request URL range where the policy takes effect
HOST
Domain name range of client requests where the policy takes effect
BOT type
BOT type where the policy takes effect
Request content
Header value
Specific value of a parameter in an HTTP request
GET parameter value
Specific value of a query string parameter passed to the server via the GET method
POST parameter value
Specific value of a parameter in a form field or request body submitted to the server via the POST method
COOKIE parameter value
Specific value of a Cookie set by the Set-Cookie header in HTTP
Parameter comparison of request
Match and compare the value of a specified parameter in the request. If the parameter does not exist or its value is empty, the request is considered as not hitting the rule.
Session feature
Average session speed
Average session speed = total number of sessions / session duration.
Total sessions
Total number of visits within a session
Session duration
Session duration = session end time - session start time.
Robots.txt
Whether a url in the session contains robots.txt.
Number of regions (cities) include in the session
Number of distinct regions (cities) involved in a session.
Request characteristics
Most used URL
The most requested URL is the specified URL.
Request prefix URL
URL of the referring page of the request
URL duplication (%)
URL duplication ratio = number of occurrences of the most requested URL / total number of requests in the session.
Total URL types
Number of unique URLs in a session after deduplication
Requested parameters (%)
The most requested parameter is the specified parameter.
Most used parameter
Parameter duplication ratio = number of occurrences of the most requested parameter / total number of requests in the session.
COOKIE
COOKIE duplication rate
(Number of non-empty cookies - number of cookie types) / number of non-empty cookies
COOKIE exist
Number of non-empty cookies / total number of requests in the session
COOKIE abuse
Whether COOKIE abuse exists.
Most used COOKIE
The Cookie that appears most frequently in a session is the specified Cookie.
Client-Side Security Flag
Tag generation time
Generation time of the device risk tag included in the request
Credible identifier existence
Existence of the device risk tag included in the request
HTTP Header
Request method
Proportion of occurrences of each request method in a session
HTTP protocol version
Proportion of occurrences of each HTTP protocol version in a session
Status code
Proportion of occurrences of each response status code in a session
IP characteristics
Access source IP address
Access source IP address of the request
IP type
Type of the access source IP address, classified based on threat intelligence tags.
IP owner
Carrier to which the access source IP address belongs
IP contains session count
Number of sessions per access source IP address
IP location
Region to which the access source IP address belongs
UserAgent
Most used UA
The most requested UA is the specified UA.
UA type
Number of UA types in a session
UA exist
Number of non-empty UAs / total number of requests in the session
UA type
UA type, classified based on different UA types in the UA policy
UA randomness index
Variance of UA frequencies, measuring the degree of dispersion
Referer
Most used Referer
The most requested Referer is the specified Referer.
Percentage of repeated Referers
(Number of non-empty Referers - number of Referer types) / number of non-empty Referers
Referer exist
Number of non-empty Referers / total number of requests in the session
Referer abuse
Whether Referer abuse exists
Session settings
Session ID exists
Whether a token exists
Session ID validity
Whether the token is valid
SessionID
token value
Session IPs
Number of IPs in a session request
Session ID set
token value set
AI BOT
AI BOT Type
AI BOT type
AI BOT Manufacturer
AI BOT vendor
AI BOT Role
AI BOT role

ヘルプとサポート

この記事はお役に立ちましたか?

フィードバック