Creating a Reference Table to Configure Protection Metrics in Batches
You can create a reference table to batch configure protection metrics of a specific type such as Path, User Agent, IP, Params, Cookie, Referer, and Header. A reference table can be used by CC attack protection rules, precise access protection rules, bot protection rules, anti-crawler protection rules, and global protection whitelist rules.
Application Scenarios
When you configure a CC attack protection rule, bot protection rule, anti-crawler rule, global protection whitelist, or precise protection rule, if you set the Logic field in Condition List to Include any value, Exclude any value, Equal to any value, Not equal to any value, Prefix is any value, Prefix is not any value, Suffix is any value, or Suffix is not any value, you can select an appropriate reference table from the Content drop-down list.
Constraints
Edition: This function is only supported in standard, professional, and enterprise editions for cloud mode.
Prerequisites
- You have connected your website to WAF. For details, seeAccess Management.
- If you use a dedicated WAF instance, make sure it has been upgraded to the latest version. For details, see Upgrading the Version of a Dedicated WAF Instance.
Creating a Reference Table
- Log in to the WAF console.
- Click
in the upper left corner and select a region or project. - (Optional) If you have enabled the enterprise project function, in the upper part of the navigation pane on the left, select your enterprise project from the Filter by enterprise project drop-down list. Then, WAF will display the related security data in the enterprise project on the page.
- In the navigation pane on the left, choose .
- In the policy list, click the name of the target policy to go to the protection rule configuration page.
You can also go to the page, locate the target domain name, and click the number next to the protection policy in the Policy column to go to the protection rule configuration page.
- Select CC Attack Protection, Bot Protection, Precise Protection, or Global Protection Whitelist.
- Click Reference Table Management in the upper left corner of the list.
To add a reference table to a bot rule, click the Custom Protected Objects tab and click Reference Table Management in the upper left corner of the list.
- On the Reference Table Management page, click Add Reference Table.
- In the Add Reference Table dialog box, specify the parameters by referring to Table 1. Figure 1 Adding a reference table
Table 1 Parameter description Parameter
Description
Example Value
Name
Name of the reference table.
test
Type
Type of the reference table to be detected.
- Path: A URL to be protected, excluding a domain name
- User Agent: A user agent of the scanner to be protected
- IP: An IP address of the visitor to be protected. NOTICE:
- In cloud mode, IPv6 protection is available only in the professional and enterprise editions.
- You can configure 0.0.0.0/0 and ::/0 IP address ranges to block all IPv4 and IPv6 traffic, respectively.
- Params: A request parameter to be protected
- Cookie: A small piece of data to identify web visitors
- Referer: A user-defined request resource
For example, if the protected path is /admin/xxx and you do not want visitors to be able to access it from www.test.com, set Value to http://www.test.com.
- Header: A user-defined HTTP header.
- Request Body: data contained in an HTTP request.
- Response Code: status code returned to the request.
- Response Body: response message body
- Response Header: response header.
Path
Value
Value of the corresponding Type. Wildcards are not allowed.
You can add multiple values in batches and use line breaks as separators.
/buy/phone/
Rule Description
Description of the rule.
-
- Click OK. You can then view the added reference table in the reference table list.
- After the preceding configurations are complete, you can view the added reference table in the reference table list.
- To delete or modify a reference table, click Delete or Modify in the Operation column of the reference table.
Related Operations
- To modify a reference table, click Modify in the row containing the reference table.
- To delete a reference table, click Delete in the row containing the reference table.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot