How to Block Entire Top-Level Domains (TLDs) in Exchange Online
Question details
The user needs a method to block all incoming emails from specific top-level domains (such as .info, .biz, .club, and .fun) across their organization.

- Product
- Exchange Online
- Device & OS
- not provided
- Scenario
- Administrators attempting to block spam or unwanted traffic originating from entire top-level domains rather than individual sender addresses.
- Observed behavior
- Exchange Online rejects standalone top-level domains in the standard domain-blocking field, displaying an SMTP domain validation message because it requires a fully qualified domain format.
Ensure you have Exchange Administrator or Global Administrator privileges in your Microsoft 365 tenant to create and manage mail flow rules or anti-spam policies.
Create a Mail Flow Rule to Block TLDs
Use Exchange mail flow rules (transport rules) to identify and block incoming emails based on text patterns matching the sender's top-level domain extension.
Since the standard anti-spam block list requires complete domain names, a mail flow rule is the most effective native method to intercept emails from wildcard TLDs.
Log in to the Microsoft 365 admin center, expand 'Admin centers' on the left navigation menu, and select 'Exchange'.
In the Exchange admin center, select 'Mail flow' from the left pane and then click on 'Rules'.
Click the '+' icon (or 'Add a rule') and select 'Create a new rule'. Assign a descriptive name to the rule, such as 'Block Specific TLDs'.
Under 'Apply this rule if', select 'The sender', then choose 'address matches any of these text patterns'. In the pop-up window, enter the TLDs you want to block (for example, \.info$ or \.biz$) and add them to the list.
Under 'Do the following', select 'Block the message', and then choose whether to reject the message with an explanation or delete it without notifying anyone. Save the rule and ensure its status is toggled to 'Enabled'.

Use Microsoft 365 Defender Anti-Spam Policies (for Specific Domains)
If you identify the primary offending domains within a TLD, you can add their fully qualified domain names directly to the Anti-Spam block list.
Looking for a Free Office Suite?
While managing your Microsoft 365 Exchange email environment, you might be looking for cost-effective productivity software for your team. WPS Office is a robust, lightweight, and completely free alternative to Microsoft Office, providing powerful tools for everyday document tasks.
- 1. Download the Installer: Visit the official WPS Office website and click the Free Download button.
- 2. Install WPS Office: Run the downloaded executable file and follow the on-screen prompts to complete the installation.
- 3. Open and Create: Launch the application to seamlessly open your existing Microsoft Office files or start creating new documents.

Frequently Asked Questions
Why does Exchange Online reject '.info' as a standalone blocked domain?
Exchange Online's standard anti-spam domain block list uses strict SMTP domain validation. It requires a fully qualified domain name (like example.info) to precisely identify the sender's network, which is why isolated top-level extensions trigger a validation error.
Will blocking a top-level domain affect my legitimate emails?
Yes. If a legitimate client or vendor emails you from an address ending in a blocked TLD (like .biz or .online), their email will be rejected. It is recommended to add exceptions to your mail flow rule for trusted domains to prevent false positives.
Are mail flow rules the only method to block top-level domains?
Native to Exchange Online, mail flow rules (transport rules) are the best method to use text patterns or regular expressions to catch broad TLDs. Alternatively, third-party email security gateways configured in front of your Exchange tenant can also perform robust TLD blocking.




