최신 업데이트:2026-03-26 10:14:10
Reading time: About 5 minutes
Prerequisites: None
Navigation path: Security Settings > Policies > [Target Hostname] > [UI: 待确认] Basic Settings > Block Response Page
When a request is blocked by a security policy (such as WAF, Rate Limiting, IP/Geo Firewall, etc.), the platform returns a default block page. By configuring the Block Response Page, you can customize the default block page content to align with your brand image or provide more helpful information to end users.
Difference from Custom Response Actions:
- Block Response Page (this feature): Sets a global default block page for all rules that use the Block action
- Custom Response Actions: Configures custom response content for specific rules (e.g., Rate Limiting, Workflow Detection), with higher priority than the global default page
| Configuration Item | Description |
|---|---|
| Response Status Code | The HTTP status code returned to the client; defaults to 403 |
| Content-Type | The response content type, e.g., text/html |
| Response Body | Custom page content in HTML format (max 16 KB) |
The following variables can be referenced in the HTML response body. Their actual values are recorded in the attack logs, making it easier for users to locate the block event when providing feedback:
| Variable | Description | Sample Output |
|---|---|---|
{url} |
The full URL of the blocked request | https://example.com/login |
{client_ip} |
The client IP of the blocked user | 1.2.3.4 |
{time} |
The time when the block occurred | 2025-01-01 12:00:00 |
{event_id} |
The unique ID of the block event | b9c8775c... |
A user-friendly notice page for end users:
<!DOCTYPE html>
<html>
<head><title>Access Restricted</title></head>
<body>
<h1>Your request has been blocked by the security policy</h1>
<p>If you believe this is a false positive, please contact us with the following information:</p>
<ul>
<li>Event ID: {event_id}</li>
<li>Your IP: {client_ip}</li>
<li>Time: {time}</li>
</ul>
<p>Email: support@example.com</p>
</body>
</html>
Tip: When referencing static resources such as images in the response body, use absolute URLs to avoid loading failures caused by relative paths in block scenarios.