Turn on Cross-Site Scripting Filter
Activer le filtre anti-script de site à site
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.
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\Lockdown_Zones\0HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\0- 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_LocalMachineLockdown
$k = 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\0'
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 DWordDisable
# Disable: inetres/IZ_PolicyTurnOnXSSFilter_Both_LocalMachineLockdown
# 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_LocalMachineLockdown
$k = 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\0'
Remove-ItemProperty -Path $k -Name '1409' -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"
Options (1)
| Label | Control | Registry value | REG type | Constraints / details | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Turn on Cross-Site Scripting (XSS) FilterActiver le filtre anti-script de site à site (XSS)IZ_Partname1409 | Drop-down listenum | 1409 | REG_DWORD | Required · Default choice (UI): #1
|