en-US windows computer

Prevent users and apps from accessing dangerous websites

Verified with Windows 11 25H2 — updated on July 30, 2026

Windows 11 25H2

Supported on: At least Windows Server 2016, Windows 10 Version 1709

Path in the GPO console

Computer Configuration\Administrative Templates\Windows Components\Microsoft Defender Antivirus\Microsoft Defender Exploit Guard\Network Protection

Description

Enable or disable Microsoft Defender Exploit Guard network protection to prevent employees from using any application to access dangerous domains that may host phishing scams, exploit-hosting sites, and other malicious content on the Internet. Enabled: Specify the mode in the Options section: -Block: Users and applications will not be able to access dangerous domains -Audit Mode: Users and applications can connect to dangerous domains, however if this feature would have blocked access if it were set to Block, then a record of the event will be in the event logs. Disabled: Users and applications will not be blocked from connecting to dangerous domains. Not configured: Same as Disabled.

Registry

HKLM Software\Policies\Microsoft\Windows Defender\Windows Defender Exploit Guard\Network Protection

Value name: EnableNetworkProtection

More options available

Options

EnableNetworkProtection enum
  • Disable (Default) -> 0 (default)
  • Block -> 1
  • Audit Mode -> 2

MDM / Intune (CSP)

./Device/Vendor/MSFT/Policy/Config/Defender/EnableNetworkProtection
Device Since Windows 10, version 1709 [10.0.16299] and later Official mapping (Microsoft Learn)

Microsoft Learn documentation Mapping data: Microsoft Learn (CC BY 4.0)

CSP values
  • 0 (Default) - Disabled.
  • 1 - Enabled (block mode).
  • 2 - Enabled (audit mode).

Export Builder

BETA

Configure the state, scope and options, then generate .reg, PowerShell, Intune and SCCM outputs — or add the setting to a multi-setting collection.

These exports write the registry — this is not a managed GPO.

.reg file

Windows Registry Editor Version 5.00

; Exported from gporais.com
; Policy: Prevent users and apps from accessing dangerous websites
; State: Enabled
; Supported on: At least Windows Server 2016, Windows 10 Version 1709

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows Defender\Windows Defender Exploit Guard\Network Protection]
"EnableNetworkProtection"=dword:00000001
"EnableNetworkProtection"=dword:00000000
More formats (PowerShell, Intune, SCCM)

PowerShell

# Exported from gporais.com
# Policy: Prevent users and apps from accessing dangerous websites
# State: Enabled
# Supported on: At least Windows Server 2016, Windows 10 Version 1709

$path = 'HKLM:\Software\Policies\Microsoft\Windows Defender\Windows Defender Exploit Guard\Network Protection'
New-Item -Path $path -Force | Out-Null
Set-ItemProperty -Path $path -Name 'EnableNetworkProtection' -Value 1 -Type DWord
Set-ItemProperty -Path $path -Name 'EnableNetworkProtection' -Value 0 -Type DWord

Building a multi-setting collection? Add this setting and generate combined .reg / PowerShell / GPO scripts.

Open the Builder

Embed this policy on your site

What to embed
Theme

Adds one script line: the theme follows your site’s appearance and the height fits the content. If your site blocks scripts, the embed follows the visitor’s system theme.

Preview