Skip to content
Cloudflare Docs

Common policies

The following in-line DLP policies are commonly used to secure data in uploaded and downloaded files.

The Allow action functions as an implicit logger, providing visibility into where your sensitive data is going without impacting the end user experience. The following example scans for your enabled Financial Information profile entries when users upload or download data to file sharing apps.

SelectorOperatorValueLogicAction
DLP ProfileinFinancial InformationAndAllow
Content CategoriesinFile Sharing

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

SelectorOperatorValueLogicAction
Upload File TypesinMicrosoft Office Word Document (docx)AndBlock
Download File TypesinPDF (pdf)

For more information on what file formats DLP can scan, refer to Supported file types.

Block uploads/downloads for specific users

Section titled “Block uploads/downloads for specific users”

You can configure access on a per-user or group basis by adding identity-based conditions to your policies. The following example blocks only contractors from uploading/downloading Financial Information to file sharing apps.

SelectorOperatorValueLogicAction
DLP ProfileinFinancial InformationAndBlock
Content CategoriesinFile SharingAnd
User Group NamesinContractors

Many Android applications (such as Google Drive) use certificate pinning, which is incompatible with Gateway inspection. If needed, you can create a Do Not Inspect policy so that the app can continue to function on Android:

  1. Set up an OS version device posture check that checks for the Android operating system.

  2. Create the following HTTP policy in Gateway:

    SelectorOperatorValueLogicAction
    ApplicationinGoogle DriveAndDo Not Inspect
    Passed Device Posture ChecksinOS Version Android

Android users can now use the app, but the app traffic will bypass DLP scanning.

In your DLP logs, you may find that certain sites are a common source of noise. To exempt these sites from DLP scanning:

  1. Create a list of hostnames or URLs.

  2. Exclude the list from your DLP policy as shown in the example below:

    SelectorOperatorValueLogicAction
    DLP ProfileinFinancial InformationAndBlock
    ApplicationinGoogle DriveAnd
    Domainnot in listDo not DLP - SSN