diff --git a/src/content/docs/cloudflare-one/policies/gateway/http-policies/common-policies.mdx b/src/content/docs/cloudflare-one/policies/gateway/http-policies/common-policies.mdx index 904d64790bfb86..14ee2c097db031 100644 --- a/src/content/docs/cloudflare-one/policies/gateway/http-policies/common-policies.mdx +++ b/src/content/docs/cloudflare-one/policies/gateway/http-policies/common-policies.mdx @@ -397,6 +397,42 @@ curl https://api.cloudflare.com/client/v4/accounts/{account_id}/gateway/rule \ +### Block Google Drive uploads + +Block file uploads from Google Drive. + + + +| Selector | Operator | Value | Logic | Action | +| ---------------- | ------------- | -------------------------------------- | ----- | ------ | +| Application | in | _Google Drive_ | And | Block | +| Upload Mime Type | matches regex | `.*` | And | | +| Host | is not | `drivefrontend-pa.clients6.google.com` | | | + + + + + +```bash +curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/gateway/rule \ +--header "Content-Type: application/json" \ +--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \ +--data '{ + "name": "Block Google Drive uploads", + "description": "Block file uploads to Google Drive", + "enabled": true, + "action": "block", + "filters": [ + "http" + ], + "traffic": "any(app.ids[*] in {554}) and http.upload.mime matches \".*\" and not(http.request.host == \"drivefrontend-pa.clients6.google.com\")", + "identity": "", + "device_posture": "" +}' +``` + + + ### Block Gmail downloads Block file downloads from Gmail.