Open in the explorer

Turn on Cross-Site Scripting Filter

Activer le filtre anti-script de site à site

Type
Computer and user
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Internet Explorer › Internet Control Panel › Security Page › Intranet Zone User Configuration › Policies › Administrative Templates › Windows Components › Internet Explorer › Internet Control Panel › Security Page › Intranet Zone FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Internet Explorer › Panneau de configuration Internet › Onglet Sécurité › Zone intranetFR: Configuration utilisateur › Stratégies › Modèles d'administration › Composants Windows › Internet Explorer › Panneau de configuration Internet › Onglet Sécurité › Zone intranet
Supported on
At least Internet Explorer 8.0 FR: Au moins Internet Explorer 8.0
ADMX file
inetres.admx
Internal name
inetres/IZ_PolicyTurnOnXSSFilter_Both_Intranet

Explanation

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.

French text from Windows 11 26H2

Ce paramètre de stratégie détermine si le filtre anti-script de site à site (XSS) détecte et évite l’injection de script de site à site dans les sites Web de cette zone.

Si vous activez ce paramètre de stratégie, le filtre XSS est activé pour les sites de cette zone. En outre, le filtre XSS tente de bloquer les injections de script de site à site.

Si vous désactivez ce paramètre de stratégie, le filtre XSS est désactivé pour les sites de cette zone. En outre, Internet Explorer ne bloque pas les injections de script de site à site.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1
HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1
Value name
not defined in the ADMX

Enable / disable values: not defined in the ADMX (see the options below).

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.

Computer (HKLM)

Enable

# Enable: inetres/IZ_PolicyTurnOnXSSFilter_Both_Intranet
$k = 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Turn on Cross-Site Scripting (XSS) Filter
# Possible options:
#   Enable = 0
#   Disable = 3
Set-ItemProperty -Path $k -Name '1409' -Value 3 -Type DWord

Disable

# Disable: inetres/IZ_PolicyTurnOnXSSFilter_Both_Intranet
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": inetres/IZ_PolicyTurnOnXSSFilter_Both_Intranet
$k = 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1'
Remove-ItemProperty -Path $k -Name '1409' -ErrorAction SilentlyContinue

User (HKCU)

Enable

Disable

Revert to "Not configured"

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Turn on Cross-Site Scripting (XSS) FilterActiver le filtre anti-script de site à site (XSS)IZ_Partname1409Drop-down listenum1409REG_DWORD
Required · Default choice (UI): #1
LabelValue
EnableREG_DWORD = 0
DisableREG_DWORD = 3

Availability