Block JavaScript on specific sites

Define a list of sites, based on URL patterns, that aren't allowed to run JavaScript.

If you don't configure this policy, the global default value from the 'DefaultJavaScriptSetting' (Default JavaScript setting) policy (if set) or the user's personal configuration is used for all sites.

Example value:

https://www.contoso.com
[*.]contoso.edu

Supported on: Microsoft Edge version 77, Windows 7 or later

Block JavaScript on specific sites

Registry HiveHKEY_LOCAL_MACHINE or HKEY_CURRENT_USER
Registry PathSoftware\Policies\Microsoft\Edge\JavaScriptBlockedForUrls
Value Name{number}
Value TypeREG_SZ
Default Value

msedge.admx

Administrative Templates (Computers)

Administrative Templates (Users)