Block Upload to Whatsapp web Using Microsoft Purview DLP Policy

Sheraz Mehmood 0 Reputation points
2026-08-25T19:33:22.9533333+00:00

I want to Block upload to whatsapp web, for which i follow below steps:

I go to settings Data Loss Prevention->Endpoint DLP settings->Browser and domain restrictions to sensitive data->Service Domains (Block)->(*.web.whatsapp.com,web.whatsapp.com) & Sensitive service domain groups(group contain same domains)

After that i created DLP policy

Condition: File Type is: Detects when a file or document is one of the following types. Word processing Spreadsheet Presentation Archive Mail OR Document Size equals or greater than 10KB.

Action: Audit or restrict activities on Devices->Manage Protected files access from unallowed browsers and upload to restricted cloud service domains(Block)->choose different restriction for sensitive service domains(added group in block mode)

After sync completed i open whatsapp web on Edge browser and try to upload file of size 1MB, but policy didn't work and file got uploaded. i just wanted to know where i went wrong that policy didn't trigger.

Microsoft Security | Microsoft Purview

1 answer

Sort by: Most helpful
  1. AI answer

    2026-08-25T19:33:45.8166667+00:00

    The likely issue is the rule conditions. For upload blocking to a restricted cloud service domain, the documented pattern is to use a rule that detects sensitive content and then apply Audit or restrict activities on devices with Upload to a restricted cloud service domain or access from an unallowed browser. The documented steps use Content contains with a Sensitive info type, not File type or Document size as the trigger.

    Check these areas:

    1. Service domains configuration
      • In Microsoft Purview portal > Data loss prevention > Settings > Data Loss Prevention > Endpoint settings > Browser and domain restrictions to sensitive data > Service domains:
      • Set Service domains to Block.
      • Add the WhatsApp Web domain under Add cloud service domain.
      • Save the configuration.
    2. Sensitive service domain group
      • In the same area, create a Sensitive service domain group.
      • Add the domain and select the correct Match type.
      • URL matching supports multiple websites and wildcards for subdomains.
    3. Policy scope
      • Create or edit the DLP policy so it is scoped only to Devices.
      • Set Admin units to Full directory.
    4. Rule design
      • On Define policy settings, use Create or customize advanced DLP rules.
      • Under Conditions, add Content contains.
      • Add a Sensitive info type.
      • Under Actions, add Audit or restrict activities on devices.
      • Under Service domain and browser activities, choose Upload to a restricted cloud service domain or access from an unallowed browser.
      • Set it to Audit only, Block with override, or Block as needed.
      • Use + Choose different restrictions for sensitive service domains and add the sensitive service domain group.
    5. Browser support
      • Domain restriction enforcement applies to uploads through Microsoft Edge, or Google Chrome / Mozilla Firefox only when the Microsoft Purview browser extension is installed.
      • Since testing was done in Edge, that part aligns with supported behavior.
    6. What to change in this case
      • Replace the current rule logic based on File Type or Document Size with a rule based on Content contains and a Sensitive info type.
      • Then retest the upload in Edge.
    7. Expected behavior
      • When the file matches the DLP rule and the upload target is a restricted service domain, the configured action should apply.
      • If a browser is configured as unallowed, users are prompted to open the file through Microsoft Edge.

    A practical test is to use a file that contains a known sensitive info type covered by the rule, then upload it to WhatsApp Web in Edge after policy sync completes.


    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.