You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/cloudflare-one/policies/gateway/block-page.mdx
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ Gateway can display a global block page in the browser of any user whose traffic
30
30
To configure the global block page:
31
31
32
32
1. In [Zero Trust](https://one.dash.cloudflare.com), go to **Settings** > **Custom Pages**.
33
-
2. Under **Account Gateway block page**, select**Customize**.
33
+
2. Under **Account Gateway block page**, Gateway will display the current block page setting. Select**Customize**.
34
34
3. Choose whether to use the default Gateway block page, a [URL redirect](#redirect-to-a-block-page), or a [custom Gateway block page](#customize-the-block-page).
35
35
4. Select **Save**.
36
36
@@ -43,10 +43,16 @@ To redirect users to a non-Cloudflare block page:
43
43
1. In [Zero Trust](https://one.dash.cloudflare.com), go to **Settings** > **Custom Pages**.
44
44
2. Under **Account Gateway block page**, select **Customize**.
45
45
3. Choose **URL redirect**
46
-
4. Select **Save**.
46
+
4. Enter the URL you want to redirect blocked traffic to.
47
+
5. (Optional) Turn on **Send policy context** to send [additional policy context](#policy-context) to the redirected URL.
48
+
6. Select **Save**.
47
49
48
50
Gateway will now redirect users to a custom page when user traffic matches a Block policy with the block page configured.
Copy file name to clipboardExpand all lines: src/content/docs/cloudflare-one/policies/gateway/http-policies/index.mdx
+1-20Lines changed: 1 addition & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -95,26 +95,7 @@ The Redirect action allows you to redirect matched HTTP requests to a different
95
95
96
96
In **Policy URL redirect**, you can define what URL to redirect matched requests to.
97
97
98
-
When you turn on **Send policy context**, Gateway will append details of the matching HTTP request to the redirected URL as a query string. Not every context field will be included. Potential policy context fields include:
| User email | Email of the user that made the query. |`&[email protected]`|
105
-
| Site URL | URL of the original HTTP request. |`&site_uri=https%3A%2F%2Fmalware.testcategory.com%2F`|
106
-
| URL category |[Domain categories](/cloudflare-one/policies/gateway/domain-categories/) of the URL to be redirected. |`&request_categories=New%20Domains,Newly%20Seen%20Domains`|
107
-
| Original HTTP referer | Original HTTP referer header of the HTTP request. |`&referer=https%3A%2F%2Fexample.com%2F`|
108
-
| Rule ID | ID of the Gateway policy that matched the request. |`&rule_id=6d48997c-a1ec-4b16-b42e-d43ab4d071d1`|
109
-
| Source IP | Source IP address of the device that matched the policy. |`&source_ip=203.0.113.5`|
110
-
| Device ID | UUID of the device that matched the policy. |`&device_id=6d48997c-a1ec-4b16-b42e-d43ab4d071d1`|
111
-
| Application names | Name of the application the redirected domain corresponds to, if any. |`&application_name=Salesforce`|
112
-
| Account ID |[Cloudflare account ID](/fundamentals/setup/find-account-and-zone-ids/) of the associated Zero Trust account. |`&account_id=d57c3de47a013c03ca7e237dd3e61d7d`|
113
-
| Connection ID | ID of the proxy connection for which the redirect took effect. |`&connection_id=f8dc6fd3-a7a5-44dd-8b77-08430bb4fac3`|
114
-
| Request ID | ID of the HTTP request for which the redirect took effect. |`&request_id=f8dc6fd3-a7a5-44dd-8b77-08430bb4fac3`|
115
-
| Query ID | ID of the DNS query for which the redirect took effect. |`&query_id=f8dc6fd3-a7a5-44dd-8b77-08430bb4fac3`|
116
-
117
-
</Details>
98
+
<Renderfile="gateway/policy-context" />
118
99
119
100
When you turn on **Preserve original URL and query string**, Gateway will append the original path and query string to the redirected URL. For example, if the original URL is `example.com/path/to/page?query&string` and the redirect URL is `internalapp.com`, Gateway will redirect requests to `internalapp.com/path/to/page?query&string`.
When you turn on **Send policy context**, Gateway will append details of the matching request to the redirected URL as a query string. Not every context field will be included. Potential policy context fields include:
| User email | Email of the user that made the query. |`&[email protected]`|
14
+
| Site URL | URL of the original HTTP request. |`&site_uri=https%3A%2F%2Fmalware.testcategory.com%2F`|
15
+
| URL category |[Domain categories](/cloudflare-one/policies/gateway/domain-categories/) of the URL to be redirected. |`&request_categories=New%20Domains,Newly%20Seen%20Domains`|
16
+
| Original HTTP referer | Original HTTP referer header of the HTTP request. |`&referer=https%3A%2F%2Fexample.com%2F`|
17
+
| Rule ID | ID of the Gateway policy that matched the request. |`&rule_id=6d48997c-a1ec-4b16-b42e-d43ab4d071d1`|
18
+
| Source IP | Source IP address of the device that matched the policy. |`&source_ip=203.0.113.5`|
19
+
| Device ID | UUID of the device that matched the policy. |`&device_id=6d48997c-a1ec-4b16-b42e-d43ab4d071d1`|
20
+
| Application names | Name of the application the redirected domain corresponds to, if any. |`&application_name=Salesforce`|
21
+
| Account ID |[Cloudflare account ID](/fundamentals/setup/find-account-and-zone-ids/) of the associated Zero Trust account. |`&account_id=d57c3de47a013c03ca7e237dd3e61d7d`|
22
+
| Connection ID | ID of the proxy connection for which the redirect took effect. |`&connection_id=f8dc6fd3-a7a5-44dd-8b77-08430bb4fac3`|
23
+
| Request ID | ID of the HTTP request for which the redirect took effect. |`&request_id=f8dc6fd3-a7a5-44dd-8b77-08430bb4fac3`|
24
+
| Query ID | ID of the DNS query for which the redirect took effect. |`&query_id=f8dc6fd3-a7a5-44dd-8b77-08430bb4fac3`|
0 commit comments