Data Loss Prevention
With Cloudflare Data Loss Prevention (DLP) and Secure Web Gateway, you can inspect HTTP traffic for the presence of sensitive data such as social security numbers and credit card numbers. DLP scans the entire HTTP body, which may include uploaded or downloaded Microsoft Office documents (Office 2007 and later), chat messages, forms, and other web content. Visibility varies depending on the site or application. DLP does not scan non-HTTP traffic such as email, nor does it scan any traffic that bypasses Cloudflare Gateway (for example, traffic that matches a Do Not Inspect rule).
To perform DLP filtering, first configure a DLP Profile with the data patterns you want to detect, and then build a Gateway HTTP policy to allow or block the sensitive data from leaving your organization. Gateway will parse and scan your HTTP traffic for strings matching the keywords or regexes specified in the DLP profile.
Prerequisites
- Enrolled in the DLP Beta program
- Enabled Gateway HTTP filtering
1. Configure a DLP Profile
- In the Zero Trust dashboard, go to Gateway > DLP Profiles.
- Choose a predefined DLP Profile and select Configure.
- Enable one or more Detection entries according to your preferences. The DLP Profile matches using the OR logical operator — if multiple entries are enabled, your data needs to match only one of the entries.
- Select Save profile.
2. Create a DLP policy
DLP Profiles may be used alongside other Zero Trust rules in a Gateway HTTP policy. To start logging or blocking traffic, create a policy for DLP:
In the Zero Trust dashboard, go to Gateway > Policies > HTTP.
Select Create a policy.
Build an HTTP policy using the DLP Profile selector. For example, the following policy prevents users from uploading sensitive data to any location other than an approved corporate application:
Policy name Only allow SSN uploads to Workday Selector Operator Value DLP Profiles in U.S. Social Security Numbers
Application not in Workday
Action Block Select Create policy.
DLP scanning is now enabled. To fine-tune your DLP policy, refer to our configuration tips.
3. View DLP logs
By default, Gateway logs all HTTP requests in the Gateway Activity log. To view DLP logs:
- In the Zero Trust dashboard, go to Settings > Network.
- Verify that Activity logging is turned on, and check that Gateway HTTP logs is set to capture traffic.
- Next, go to Logs > Gateway > HTTP.
- Select Filter.
- Choose an item under one of the following filters:
- DLP Profiles - shows the requests which matched a specific DLP profile.
- Policy - shows the requests which matched a specific DLP policy.
You can expand an individual row to view details about the request.