The short answer#
To block a phishing domain on every managed device, add it to Microsoft Defender for Endpoint as a domain indicator with the action Block. Two settings make the block work. Custom network indicators must be on for the tenant, and network protection must run in block mode on each device. Microsoft Edge then enforces the indicator through Microsoft Defender SmartScreen, and network protection enforces it in other browsers and apps.
Microsoft says a new indicator can take up to 48 hours to reach devices, and that most blocks take effect in under two hours (Microsoft Learn).
Prerequisites#
- Defender for Endpoint Plan 1 or Plan 2, with the devices to protect onboarded. Microsoft lists both plans for custom indicators (Microsoft Learn).
- Custom network indicators turned on in the Microsoft Defender portal, under Settings > Endpoints > General > Advanced features. Without it, Defender stores indicators but does not enforce them.
- Microsoft Defender Antivirus in active mode, with real-time protection, behavior monitoring, and cloud-delivered protection on.
- Network protection in block mode for browsers other than Edge and for other apps. In Intune, set Enable network protection to Enabled (block mode) in an endpoint security antivirus policy. On a single device, run:
Set-MpPreference -EnableNetworkProtection EnabledMicrosoft recommends running network protection in audit mode first, to find apps that block mode would stop (Microsoft Learn). Network protection is opt-in on Windows Server and needs -AllowNetworkProtectionOnWinServer $true as well.
Add the indicator#
- In the Microsoft Defender portal, go to Settings > Endpoints > Indicators.
- Select the URLs/Domains tab, then Add item.
- Enter the domain, for example
examp1e-login.com, and choose when the indicator expires. - Set the action to Block and add a description that says why the domain is blocked.
- Choose the scope: all devices, or the device groups that should enforce the block.
- Review the summary and select Save.
For more than a few domains, import a CSV from the same tab or submit indicators through the Defender for Endpoint indicators API.
To test the effect on users first, use Warn instead of Block. Warn shows a warning that the user can bypass. When several indicators match one domain, Defender applies Allow first, then Warn, then Block, so an Allow indicator for the same domain overrides your block.
Domain protection
Detect adversary infrastructure while it is being staged.
Have I Been Squatted helps security teams detect lookalike domains, certificate and DNS changes, and staging infrastructure, investigate the evidence, and coordinate takedowns.
Limits to plan for#
- Propagation: up to 48 hours, usually under two hours. A domain used in a live campaign needs another control in the meantime, such as removing the email or blocking the domain at the DNS resolver. See DNS filtering.
- Indicator count: 15,000 indicators per tenant, and Microsoft does not raise the limit.
- HTTPS in other browsers: network protection reads the domain from the TLS handshake. In browsers other than Edge, QUIC and Encrypted Client Hello must be turned off, or the block does not apply. A full URL path over HTTPS can only be blocked in Edge, so block the domain instead.
- IP addresses: indicators accept only external, single IP addresses, not ranges.
- Logging: Defender decides after the connection opens, so advanced hunting can show a
ConnectionSuccessevent for a site that was blocked. Look for the block events too.
Choose which domains to block#
A Block indicator stops one domain. Phishing campaigns move to a new domain when the old one is blocked, so the value of the list depends on how fast new domains reach it. Good sources:
- Domains in phishing emails that staff report. Take the domain from the link, not the display text.
- Lookalikes of your own domains. Attackers register lookalike domains that copy your brand, often days before the first email. Domain monitoring finds them in new registrations and certificate transparency logs.
- Threat intelligence feeds that you trust and can explain to users who hit a block.
Do not block a domain you or your vendors use. Check each lookalike before you block it. Some are parked, some belong to legitimate businesses, and a few are defensive registrations your own company owns.
Keep the list current with Have I Been Squatted#
Have I Been Squatted can submit the indicators for you. Automated domain blocking covers how the same approach works across gateways, DNS resolvers and SIEMs. The Block in Defender for Endpoint response, part of the Network Enforcement add-on, submits each lookalike domain that a matched rule cites as a Block indicator in your tenant.
- A rule decides what is blocked. Connecting a tenant blocks nothing on its own. The rule sets the conditions, such as a lookalike of your domain classified as phishing.
- Your own domains are never blocked. The monitored domain and its subdomains never become indicators.
- Narrow permissions. The Microsoft Entra application holds
Ti.ReadWrite, which limits it to indicators it created. It cannot see or change indicators your team made, and it has no access to devices, alerts, or tenant settings. - Indicators do not expire. An expiry could unblock a domain just before attackers reuse it. Have I Been Squatted instead keeps at most 1,000 of its own indicators per tenant, ordered by when a rule last cited each domain, so it stays well under Defender's limit.
- Device groups. Indicators apply to every device, or to up to 10 named device groups.
To see whether any device reached a domain before the block, and whether the block held, see how to find the malicious domains your devices connect to. The Microsoft Defender for Endpoint integration guide covers setup, and Network Enforcement lists the other controls a rule can block in.
Frequently asked questions#
Why does a blocked domain still open in Microsoft Defender for Endpoint?#
Check that custom network indicators are enabled, that the device is in the indicator's scope, and that no Allow indicator overrides the block. For browsers and apps outside Edge, check that network protection is in block mode. A new indicator can also take time to reach the device.
How long does a domain block take to reach devices?#
Microsoft says most indicators take effect in under two hours, with some taking up to 48 hours. During an active phishing campaign, also remove the lure from mailboxes or block the domain at the DNS resolver.
Can Defender block a single HTTPS page?#
Microsoft Edge can enforce an indicator for a full HTTPS URL. In other browsers, use a domain indicator and check the network protection requirements for that browser.