Fix Microsoft Defender Safe Links Not Blocking Email URLs
Question details
The user needs to troubleshoot a Safe Links policy that is not blocking malicious URLs or rewriting some plain-text links.

- Product
- Microsoft Defender for Office 365
- Device & OS
- not provided
- Scenario
- A Microsoft 365 administrator is checking URL protection for email recipients covered by a Safe Links policy.
- Observed behavior
- Some email links are rewritten, but malicious URLs may not be blocked and plain-text links may not be rewritten.
Identify an affected recipient, the Safe Links policy that should apply, and a recent example message. Sign in to the Microsoft Defender portal with an account authorized to review or change the policy.
Check Safe Links policy coverage and URL protection settings
Use this approach first to confirm that the intended policy applies to the affected recipient and protects email links.
In the Microsoft Defender portal, go to Email & collaboration > Policies & rules > Threat policies > Safe Links.
Select the policy and confirm that it is enabled and includes the affected user, group, or domain. Check exclusions and the priority of other applicable Safe Links policies.
Open the policy's protection settings and verify that Safe Links protection for email is enabled. Review URL exceptions and click-protection settings for entries that could affect the test URL.
Send a new test message to the affected recipient using Microsoft's documented Defender for Office 365 demonstration links. Check the message and click behavior without using a real malicious URL.

Disable and re-enable the Safe Links rule
Try resetting the rule if its configuration is correct but new messages still show unexpected behavior.
Check Microsoft 365 service health and contact support
Use this path if the policy settings and rule reset do not resolve the issue.
Use WPS Office for compatible documents and spreadsheets
WPS Office is a free, lightweight, easy-to-use Office alternative with a familiar interface and Microsoft Office format compatibility for a smoother move between apps. It does not replace or repair Microsoft Defender Safe Links.

Frequently Asked Questions
Why is a rewritten Safe Links URL not blocked?
Rewriting indicates that Safe Links processed the URL; blocking depends on the link's verdict and the applicable policy settings. Review the policy and URL exceptions in the Microsoft Defender portal under Threat policies > Safe Links.
How do I check whether a Safe Links policy applies to a user?
Open the policy under Email & collaboration > Policies & rules > Threat policies > Safe Links. Check its included users, groups, and domains, as well as exclusions and the priority of other applicable policies.
Why might a plain-text email link not be rewritten?
Message format, policy settings, and URL exceptions can affect rewriting. Check the applicable Safe Links policy and compare a new plain-text test message with Microsoft's documented demonstration links.
Can I reset a Safe Links rule with PowerShell?
Yes. Connect to Exchange Online PowerShell, run Disable-SafeLinksRule -Identity "RuleName", and then run Enable-SafeLinksRule -Identity "RuleName". The rule's protection is temporarily unavailable while it is disabled.




