IP Address-based Rate Limiting
If no proxy is used between WAF and web visitors, limiting source IP addresses is an effective way to detect attacks. IP address-based rate limiting policies are recommended.
Attack Examples
Attackers can use several hosts to continuously send HTTP POST requests to website www.hwexample.com. Those malicious requests will use up website resources, such as the website connections and bandwidth. As a result, the website fails to respond normal requests and its competitiveness decreases sharply.
Protective Measures
- Based on the access statistics, check whether a large number of requests are sent from a specific IP address. If yes, it is likely that the website is hit by CC attacks.
- Log in to the management console and route website traffic to WAF. For details, see Connecting a Domain Name to WAF.
- Locate the row containing the domain name (website) you want to apply the policy to. In the Policy column, click Configure Policy. On the displayed page, in the CC Attack Protection area, verify that CC attack protection is enabled. Clicking
can change the status. Figure 1 shows an example. - Then, add a CC attack protection rule. Specify a path, set Rate Limit Mode to Per IP address, Rate Limit based on service features, and Protective Action to Verification code to prevent blocking legitimate users. Figure 2 shows the settings.
- Path: Part of the URL without the domain name
- Prefix match: A path ending with * indicates that the path is used as a prefix. For example, if the path to be protected is /admin/test.php or /adminabc, set Path to /admin*.
- Exact match: The path to be entered must match the path to be protected. For example, if the path to be protected is /admin, set Path to /admin.
- The path supports prefix and exact matches only and 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 /.
- Rate Limit Mode: Select Per IP address to distinguish a single web visitor based on the IP address.
- Rate Limit: Number of requests allowed from a website visitor in the rate limiting period. The visitor's access request is denied if the limit is reached.
- Protective Action: To prevent legitimate requests from being blocked, select Verification code.
- Verification code: A verification code is required if your website visitor's requests reaches Rate Limit you configured. WAF allows requests that trigger the rule as long as the website visitors complete the required verification.
- Block: Requests are blocked if the number of requests exceeds the configured rate limit.
- Log only: Requests are logged only but not blocked if the number of requests exceeds the configured rate limit.
- Path: Part of the URL without the domain name
If the number of access requests exceeds the configured rate limit, the visitors are required to enter a verification code to continue the access.

Last Article: Overview
Next Article: Cookie-based CC Attack Protection



Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.