Security Policy Errors

Fix Microsoft Defender Safe Links Not Blocking Email URLs

Rana GarciaRana Garcia Nov 14, 2026 869 views

Question details

The user needs to troubleshoot a Safe Links policy that is not blocking malicious URLs or rewriting some plain-text links.

Fix Microsoft Defender Safe Links Not Blocking Email URLs
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.
Before you start

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.

Solution 1Recommended

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.

1
Open Safe Links policies

In the Microsoft Defender portal, go to Email & collaboration > Policies & rules > Threat policies > Safe Links.

2
Review policy coverage

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.

3
Check protection settings

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.

4
Test a new message

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.

Check Safe Links policy coverage and URL protection settings
Link rewriting and blocking are different: A rewritten URL shows that Safe Links processed the link, but it does not mean the destination is malicious or will be blocked. Rewriting can also depend on message format, policy settings, and exceptions.
Free Microsoft Office alternative

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.

Create and edit documents, spreadsheets, and presentations in a familiar interfaceOpen and save common Microsoft Office formats, including DOCX, XLSX, and PPTXKeep security investigation notes and policy checklists in editable filesWork with a lightweight office suite that is free to download
microsoft office alternative - wps office

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.