en-US windows computer user

Turn off the WebSocket Object

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

Windows 11 25H2

Supported on: At least Internet Explorer 10.0

Path in the GPO console

Computer Configuration\Administrative Templates\Windows Components\Internet Explorer\Security Features\AJAX

Description

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.

Registry

HKLM Software\Policies\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_WEBSOCKET
HKCU Software\Policies\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_WEBSOCKET

Value name: iexplore.exe

Enabled: iexplore.exe = 0

Disabled: iexplore.exe = 1

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 off the WebSocket Object
; State: Enabled
; Scope: Computer (HKLM)
; Supported on: At least Internet Explorer 10.0

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_WEBSOCKET]
"iexplore.exe"=dword:00000000
More formats (PowerShell, Intune, SCCM)

PowerShell

# Exported from gporais.com
# Policy: Turn off the WebSocket Object
# State: Enabled
# Scope: Computer (HKLM)
# Supported on: At least Internet Explorer 10.0

$path = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_WEBSOCKET'
New-Item -Path $path -Force | Out-Null
Set-ItemProperty -Path $path -Name 'iexplore.exe' -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