We can choose DLP for credit card using the existing template, However it doesn’t block only the credit card pattern, It can only identify if the email contains “Credit Card” & the credit card number (Example: Please find my credit card number #1231315354564654. I have recently got some requirement where customer wanted to block only the number, So we can achieve this through transport rule, Here is how.


To create this transport rule:

1. Login to Office365 ECP

2. Mail Flow, then Select “Rules”

3. Click +, Create new and follow as mentioned below in the screenshot.

For your convenience below is the pattern & you can choose any action as per your requirement, I have selected quarantine.

These patterns will block all below formats (Screenshot taken from quarantine mailbox)

By Kingson Jebaraj

Microsoft MVP, Blogger, Owner and Publisher for Cloudexchangers.com, Microsoft TechNet Author, Solution Architect, Former Office365 Technical Lead for Microsoft(Partner) Extensive knowledge and experience in Microsoft Exchange and Cloud Messaging Services and has got more exposure on Messaging environment deployment,migration,designing and other project management activities, I have earned real time experience in handling multi-site distributed critical large environment of messaging system. Been awarded as an MVP (Microsoft Most Valuable Professional) for Office Servers and services from Microsoft for an exceptional real world contribution made through Microsoft forums and other Microsoft communities. Currently working as “Solution Architect” on Private/Public cloud and SaaS environment for Pacific Controls, UAE, Dubai. One of the largest TIER III certified green data center campus in the middle east.

One thought on “Office365 DLP to block Credit Card”

Comments are closed.