File tree Expand file tree Collapse file tree 1 file changed +27
-1
lines changed
src/content/docs/cloudflare-one/policies/gateway/http-policies Expand file tree Collapse file tree 1 file changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -401,12 +401,38 @@ curl https://api.cloudflare.com/client/v4/accounts/{account_id}/gateway/rule \
401401
402402Block file uploads from Google Drive.
403403
404+ <Tabs syncKey = " dashPlusAPI" > <TabItem label = " Dashboard" >
405+
404406| Selector | Operator | Value | Logic | Action |
405407| ---------------- | ------------- | -------------------------------------- | ----- | ------ |
406- | Application | in | Google Drive | And | Block |
408+ | Application | in | _ Google Drive _ | And | Block |
407409| Upload Mime Type | matches regex | ` .* ` | And | |
408410| Host | is not | ` drivefrontend-pa.clients6.google.com ` | | |
409411
412+ </TabItem >
413+
414+ <TabItem label = " API" >
415+
416+ ``` bash
417+ curl https://api.cloudflare.com/client/v4/accounts/{account_id}/gateway/rule \
418+ --header " Content-Type: application/json" \
419+ --header " Authorization: Bearer <API_TOKEN>" \
420+ --data ' {
421+ "name": "Block Google Drive uploads",
422+ "description": "Block file uploads to Google Drive",
423+ "enabled": true,
424+ "action": "block",
425+ "filters": [
426+ "http"
427+ ],
428+ "traffic": "any(app.ids[*] in {554}) and http.upload.mime matches \".*\" and not(http.request.host == \"drivefrontend-pa.clients6.google.com\")",
429+ "identity": "",
430+ "device_posture": ""
431+ }'
432+ ```
433+
434+ </TabItem > </Tabs >
435+
410436### Block Gmail downloads
411437
412438Block file downloads from Gmail.
You can’t perform that action at this time.
0 commit comments