Custom Response Page

최신 업데이트:2026-03-26 10:14:10

Configuring the Block Response Page

Reading time: About 5 minutes
Prerequisites: None

Navigation path: Security Settings > Policies > [Target Hostname] > [UI: 待确认] Basic Settings > Block Response Page

Overview

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 Steps

  1. Go to Security Settings > Policies, select the target hostname to enter the editing page
  2. Select the General Settings tab
  3. Locate the Block Response Page configuration area
  4. Configure the following fields:
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)
  1. Click Deploy at the bottom to apply the configuration

Available Variables in the Response Body

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...

Configuration Example

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.

이 문서의 내용이 도움이 되었습니까?
아니오
정상적으로 제출되었습니다.피드백을 주셔서 감사합니다.앞으로도 개선을 위해 노력하겠습니다.