Cloudflare Docs
Cloudflare Zero Trust
Visit Cloudflare Zero Trust on GitHub
Set theme to dark (⇧+D)

Common HTTP policies

The following policies are commonly used to secure HTTP traffic.

​​ Block content categories

Block content categories which go against your organization’s acceptable use policy.

Selector Operator Value Action
Content categories in Adult Themes, Gambling Block

​​ Block applications

Block content categories which go against your organization’s acceptable use policy.

Selector Operator Value Action
Application in Netflix Block

​​ Check user identity

Configure access on a per user or group basis by adding identity-based conditions to your policies.

Selector Operator Value Action
Application in Salesforce Block
User Group Names in Contractors

​​ Enforce device posture

Require devices to have certain software installed or other configuration attributes. For instructions on setting up a device posture check, refer to the device posture section.

Selector Operator Value Action
Passed Device Posture Checks in Minimum OS version Allow

​​ Enforce session duration

Require users to re-authenticate after a certain amount of time has elapsed.

​​ Isolate high risk sites in remote browser

If you are using the Browser Isolation add-on, refer to our list of common Isolate policies.

​​ Bypass inspection for self-signed certificates

When accessing origin servers with certificates not signed by a public certificate authority, you must bypass TLS decryption.

Selector Operator Value Action
Domain in internal.site.com Do Not Inspect

​​ Block file types

Block the upload or download of files based on their type.

Selector Operator Value Action
Upload File Type in Microsoft Office Word Document (docx) Block
Download File Type in PDF (pdf) Block

​​ Block Google Drive downloads

Block file downloads from Google Drive. You can also Block file uploads to Google Drive.

Selector Operator Value Action Operator
Application in Google Drive Block And
URL Path & Query matches regex .*(e=download|export).* Block

​​ Block Gmail downloads

Block file downloads from Gmail.

Selector Operator Value Action Operator
Host is mail-attachment.googleusercontent.com Block And
URL Path & Query is /attachment/u/0 Block

Refer to the HTTP policies page for a comprehensive list of other selectors, operators, and actions.