en-US windows computer user

Turn on Cross-Site Scripting Filter

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

Windows 11 25H2

Supported on: At least Internet Explorer 8.0

Path in the GPO console

Computer Configuration\Administrative Templates\Windows Components\Internet Explorer\Internet Control Panel\Security Page\Locked-Down Local Machine Zone

Description

This policy controls whether or not the Cross-Site Scripting (XSS) Filter will detect and prevent cross-site script injections into websites in this zone. If you enable this policy setting, the XSS Filter is turned on for sites in this zone, and the XSS Filter attempts to block cross-site script injections. If you disable this policy setting, the XSS Filter is turned off for sites in this zone, and Internet Explorer permits cross-site script injections.

Registry

HKLM Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\0
HKCU Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\0

More options available

Options

Turn on Cross-Site Scripting (XSS) Filter
1409 enum
  • Enable -> 0
  • Disable -> 3 (default)

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.

Scope

.reg file

Windows Registry Editor Version 5.00

; Exported from gporais.com
; Policy: Turn on Cross-Site Scripting Filter
; State: Enabled
; Scope: Computer (HKLM)
; Supported on: At least Internet Explorer 8.0

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\0]
"1409"=dword:00000003
More formats (PowerShell, Intune, SCCM)

PowerShell

# Exported from gporais.com
# Policy: Turn on Cross-Site Scripting Filter
# State: Enabled
# Scope: Computer (HKLM)
# Supported on: At least Internet Explorer 8.0

$path = 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\0'
New-Item -Path $path -Force | Out-Null
Set-ItemProperty -Path $path -Name '1409' -Value 3 -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