After you enable the block unavailable assets rule, you can configure blocking rules to hide interfaces such as static resources, health checks, and images that do not require protection from the asset list. Blocked API assets are no longer displayed and do not trigger risk event detection. The matching methods include regular expression matching, prefix matching, suffix matching, and substring matching. The block unavailable assets rule has no system-built rules. You must add custom rules yourself.
Adding Custom Rule
After you enable the block unavailable assets rule, you can customize the rule according to your business scenarios.
2. In the Add Rule window, configure the following parameters and click OK to create the rule.
3. After you add a rule, you can edit or delete the corresponding rule.
Configuration Item Description
Rule name: Supports custom input and must be unique.
Condition
Regular Match: Enter a regular expression for matching.
Start With: Enter a path prefix. For example, `/static` can match `/static/js/app.js`.
End With: Enter a path suffix. For example, `.jpg` can match `/uploads/photo.jpg`.
Inclusion Match: Enter a string contained in the path. For example, `version` can match `/api/v1/version/check`.
Content: Enter the corresponding content based on the selected matching method.
On/Off: Controls whether to enable or disable this rule. The default setting is On.