Skip to content

Commit 34ebabe

Browse files
committed
Add body phase selector
1 parent 4c1ec06 commit 34ebabe

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/content/changelog/dlp/2025-09-25-body-phase-selector.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ date: 2025-09-25
88

99
You can now more precisely control your HTTP DLP policies by specifying whether to scan the request or response body, helping to reduce false positives and target specific data flows.
1010

11-
In the Gateway HTTP policy builder, you will find a new optional selector called _Body Phase_. This allows you to define the direction of traffic the DLP engine will inspect:
11+
In the Gateway HTTP policy builder, you will find a new selector called _Body Phase_. This allows you to define the direction of traffic the DLP engine will inspect:
1212

1313
- _Request Body_: Scans data sent from a user's machine to an upstream service. This is ideal for monitoring data uploads, form submissions, or other user-initiated data exfiltration attempts.
1414
- _Response Body_: Scans data sent to a user's machine from an upstream service. Use this to inspect file downloads and website content for sensitive data.

src/content/docs/cloudflare-one/policies/gateway/http-policies/index.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,14 @@ You can match traffic based on **Application Controls**, which group multiple us
432432

433433
For more information, refer to [Application Granular Controls](/cloudflare-one/policies/gateway/http-policies/granular-controls/).
434434

435+
### Body Phase
436+
437+
The phase of an HTTP request. You can use this selector to specify whether to scan either the data sent in an HTTP request to your user's device or from your user's device to a destination. Policies without this selector will scan both the HTTP request and response bodies.
438+
439+
| UI name | API example |
440+
| ---------- | --------------------------------- |
441+
| Body Phase | `http.body_phase == \"download\"` |
442+
435443
### Content Categories
436444

437445
<Render

0 commit comments

Comments
 (0)