Custom Rules¶
Configuration Scenario¶
If you need to control access sources for business resources, Cloud Protection provides custom rule configuration. By configuring custom rules for client IPs, URLs, referers, client identifiers, etc., you can defend against high-frequency CC attacks and prevent malicious user scraping.
Configuration Guide¶
View Configuration¶
Log in to the Cloud Protection console, select [Domain Management] from the menu bar, click [Configure] next to the domain name to enter the domain configuration page. Under [Access Control], you can see the custom rules configuration, which is disabled by default:
Modify Configuration¶
- Modify Configuration
Click "Add Configuration" to enter the custom rules configuration page:
Custom Rules:
- Multiple custom rules can be added.
- Each custom rule can be individually enabled or disabled.
- Multiple custom rules can be prioritized, with smaller numbers indicating higher priority.
-
Match content cannot be empty. If the content is empty, enter a space instead.
-
Enable Configuration
Step 1: Enable the added custom rule:
Step 2: Enable the master switch for custom rules:
- Disable Configuration
Click the button next to the custom rule to disable the configuration:
Configuration Example 1:¶
Block proxy IP access:
Configuration method:
- Rule Name: Enter a custom rule name.
- Enable: Yes
- Rule Settings, Match Field: Proxy IP
- Match Mode: Not Equal
- Match Content: Enter a space (if empty)
- Action: Block
- Click OK
Configuration Example 2:¶
Block useragent containing "Baiduspider":
Configuration method:
- Rule Name: Enter a custom rule name.
- Enable: Yes
- Rule Settings, Match Field: Client UA
- Match Mode: Contains
- Match Content: Baiduspider
- Action: Block
- Click OK