Blocked senders
Email Security marks all messages from these senders with a malicious disposition.
Blocked senders ensures messages from any sender is automatically marked as malicious, preventing them from reaching users' inbox.
Sometimes, the same email, IP address or domain always sends malicious emails to the company. In this case, you can add an email address, IP address or domain as a blocked sender. You can choose to enter a regular expression by turning Regular expression on.
To configure blocked senders:
- Log in to Zero Trust ↗.
- Select Email Security.
- Select Settings, go to Detection settings > Blocked senders.
- On the Detection settings page, select Add a sender.
- Select the Input method: Choose between Manual input, and Upload blocked sender list:
- Manual input:
- Sender type:
- Email addresses: Must be a valid email.
- IP addresses: Can only be IPv4. IPv6 and CIDR are invalid entries.
- Domains: Must be a valid domain.
- Regular expressions: Must be valid Java expressions. Regular expressions are matched with fields related to the sender email address (envelope from, header from, reply-to), the originating IP address, and the server name for the email. For example, you can enter
.*@domain\.com
to exempt any email address that ends withdomain.com
.
- Notes: Provide additional information about the blocked sender policy.
- Sender type:
- Upload blocked sender list: Upload a file no larger than 150 KB. The file cannot can only contain
Blocked_Sender
,Pattern Type,
andNotes
fields. The first row must be a header row. Refer to CSV uploads for an example file.
- Manual input:
- Select Save.
You can upload a file no larger than 150 KB. The file cannot can only contain Blocked_Sender
, Pattern Type,
and Notes
fields. The first row must be a header row.
An example file would look like this:
Blocked Sender, Pattern Type, Notesjohn.smith@gmail.com, EMAIL, John Smithexample.com, DOMAIN, Melanie Turner
To export all blocked senders:
- On the Detection settings page, select Sender. Selecting Sender will select all blocked senders.
- Select Export to CSV.
To export specific blocked senders:
- On the Detection settings page, select Value(s). Select the blocked senders you want to export.
- Select Export to CSV.
To edit a blocked sender:
- On the Detection settings page, select the blocked sender you want to edit.
- Select the three dots > Edit.
- Edit the blocked sender.
- Select Save.
To delete a blocked sender:
- On the Detection settings page, select the blocked sender you want to delete.
- Select the three dots > Delete.
- On the pop up message, select Delete.
To delete multiple blocked senders at once:
- On the Detection settings page, under Blocked senders, select the senders you want to delete.
- Select Action
- Select Delete.
Was this helpful?
- Resources
- API
- New to Cloudflare?
- Products
- Sponsorships
- Open Source
- Support
- Help Center
- System Status
- Compliance
- GDPR
- Company
- cloudflare.com
- Our team
- Careers
- © 2025 Cloudflare, Inc.
- Privacy Policy
- Terms of Use
- Report Security Issues
- Trademark