Configuring CC Attack Protection Rules
Scenarios
After website services are connected to AAD, you can configure Challenge Collapsar (CC) protection rules to restrict access to a specific URL on your website based on a unique IP address, cookie, or Referer field. AAD can accurately identify CC attacks and effectively mitigate CC attacks based on the protection rules you configured.
Prerequisites
Website services have been connected to AAD and Basic Web Protection has been enabled.
Procedure
- Log in to the management console.
- Follow the procedure in the following figure to enter the Protection Policies page. Figure 2 Entering the Protection Policies page
- Click the Web Attack Protection tab and select the domain name for which you want to configure a protection policy from the Select a domain name drop-down list. Figure 3 Web attack protection
- Set CC Attack Protection to
to enable the protection.
- Traffic Attack Protection is enabled by default.
- Before enabling CC Attack Protection, you need to enable Basic Web Protection.
- Click Add Rule.
- In the displayed dialog box, set required parameters. Table 1 describes the parameters. Figure 4 Adding a CC attack protection rule
Table 1 Parameters for adding a CC attack protection rule Parameter
Description
Example Value
Path
Specifies the URL to be protected against CC attacks. The value does not contain a domain name. It supports the following matching rules:
- Prefix match: Enter a value ending with an asterisk (*), and this value will be used as a prefix in the match. For example, if the path to be protected is /admin/test.php or /adminabc, you can set Path to /admin*.
- Exact match: Enter a value exactly the same as the path to be protected. For example, if the path to be protected is /admin, set Path to /admin.
NOTE:- The path does not support regular expressions.
- The path cannot contain two or more consecutive slashes, for example, ///admin. If you enter ///admin, the WAF engine converts /// to /.
/admin*
Rate Limit Mode
- Per IP address: A web visitor is identified by the IP address.
- Per user: A web visitor is identified by the cookie key value.
- Other: A web visitor is identified by the Referer field (user-defined request source).
NOTE:If you set Rate Limit Mode to Other, enter a complete URL containing the domain name in the Content text box for the referer field. The Content field supports prefix match and exact match only, and cannot contain two or more consecutive slashes, for example, ///admin. If you enter ///admin, the WAF engine converts it to /admin.
For example, if Path is /admin and you do not want visitors to access the page from www.test.com, set Content to http://www.test.com.
Per user
User Identifier
Specifies an attribute variable in the cookie that uniquely identifies the web visitor. You need to set this parameter if Rate Limit Mode is Per user. This value supports only the exact match and does not support regular expressions. If you do not set the cookie key value, WAF will automatically assign one.
For example, if a website uses the name field in the cookie to uniquely identify a web visitor, you can enter the name field for User Identifier.
name
Rate Limit
Specifies the number of requests allowed from a web visitor in the rate limiting period. Access from the visitor is denied once the limit is reached.
10 requests 60 seconds
Protective Action
Specifies the action to be taken once the maximum number of requests is reached. Options are Verification code and Block.
- Verification code: A verification code is displayed when the number of requests reaches the maximum limit within a specified period. Upon completing the verification, you are no longer restricted by the maximum number of requests allowed.
- Block: Requests are blocked if the maximum number of requests is reached.
NOTE:If Rate Limit Mode is Other, Protective Action can only be Block.
Block
Block Duration
Specifies the period within which access is blocked. An error page is displayed in this period.
600s
Block Page
Specifies the error page displayed when the maximum number of requests has been reached. This parameter is mandatory only when Protective Action is Block. Available options are Default settings and Customize.
- If you select Default settings, the default block page is displayed.
- If you select Customize, customize a page to be displayed.
Customize
Block Page Type
Specifies the type of the page you will customize. You can select application/json, text/html, or text/xml.
text/html
Page Content
Specifies the content to be displayed on the page you will customize.
<html><body>Forbidden</body></html>
- Click OK. The CC attack protection rule is displayed in the CC rule list.
Last Article: Configuring Traffic Control
Next Article: Adding a CNAME Record
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.