Open in the explorer

Turn off the WebSocket Object

Désactiver l’objet WebSocket

Type
Computer and user
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Internet Explorer › Security Features › AJAX User Configuration › Policies › Administrative Templates › Windows Components › Internet Explorer › Security Features › AJAX FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Internet Explorer › Fonctionnalités de sécurité › AJAXFR: Configuration utilisateur › Stratégies › Modèles d'administration › Composants Windows › Internet Explorer › Fonctionnalités de sécurité › AJAX
Supported on
At least Internet Explorer 10.0 FR: Au moins Internet Explorer 10.0
ADMX file
inetres.admx
Internal name
inetres/IESF_DisableWebSocket

Explanation

The WebSocket object allows websites to request data across domains from your browser by using the WebSocket protocol. This policy setting allows administrators to enable or disable the WebSocket object. This policy setting does not prevent client-side communication across domains via other features in Internet Explorer 10. Also, this policy setting does not prevent a site from requesting cross-domain data through a server.

If you enable this policy setting, websites cannot request data across domains by using the WebSocket object.

If you disable or do not configure this policy setting, websites can request data across domains by using the WebSocket object. By default, the WebSocket object is enabled.

French text from Windows 11 26H2

L’objet WebSocket permet aux sites Web de demander des données sur plusieurs domaines à partir de votre navigateur via le protocole WebSocket. Ce paramètre de stratégie permet aux administrateurs d’activer ou de désactiver l’objet WebSocket. Ce paramètre de stratégie n’empêche pas la communication côté client sur plusieurs domaines via d’autres fonctionnalités dans Internet Explorer 10. En outre, ce paramètre de stratégie n’empêche pas un site de demander des données entre domaines via un serveur.

Si vous activez ce paramètre de stratégie, les sites Web ne peuvent pas demander de données sur plusieurs domaines via l’objet WebSocket.

Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, les sites Web peuvent demander des données sur plusieurs domaines via l’objet WebSocket. Par défaut, l’objet WebSocket est activé.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_WEBSOCKET
HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_WEBSOCKET
Value name
iexplore.exe
StateValue written
EnabledREG_DWORD = 0
DisabledREG_DWORD = 1

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/IESF_DisableWebSocket
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_WEBSOCKET'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'iexplore.exe' -Value 0 -Type DWord

Disable

# Disable: inetres/IESF_DisableWebSocket
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_WEBSOCKET'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'iexplore.exe' -Value 1 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": inetres/IESF_DisableWebSocket
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_WEBSOCKET'
Remove-ItemProperty -Path $k -Name 'iexplore.exe' -ErrorAction SilentlyContinue

User (HKCU)

Enable

Disable

Revert to "Not configured"

Availability