Block access to a list of URLs
Explanation
Defines a list of sites, based on URL patterns, that are blocked (your users can't load them).
Format the URL pattern according to https://go.microsoft.com/fwlink/?linkid=2095322.
You can define exceptions in the 'URLAllowlist' (Define a list of allowed URLs) policy. These policies are limited to 1000 entries; subsequent entries are ignored.
Blocking internal 'edge://*' and 'chrome-untrusted://*' URLs isn't recommended - this may lead to unexpected errors.
This policy doesn't prevent the page from updating dynamically through JavaScript. For example, if you block 'contoso.com/abc', users can visit 'contoso.com' and select on a link to visit 'contoso.com/abc', as long as the page doesn't refresh.
If you don't configure this policy, no URLs are blocked.
This policy doesn't work as expected with file://* wildcards.
Example value:
contoso.com
https://ssl.server.com
hosting.com/bad_path
https://server:8080/path
.exact.hostname.com
custom_scheme:*
*
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\EdgeHKEY_CURRENT_USER\Software\Policies\Microsoft\Edge- 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: msedge/URLBlocklist
$k = 'HKLM:\Software\Policies\Microsoft\Edge\URLBlocklist'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Block access to a list of URLs
# Non-additive list: existing values of the key are cleared first
if (Test-Path -Path $k) { (Get-Item -Path $k).Property | ForEach-Object { Remove-ItemProperty -Path $k -Name ([WildcardPattern]::Escape($_)) -ErrorAction SilentlyContinue } }
$values = @('<value1>', '<value2>') # Replace the values with your own
$i = 1
foreach ($v in $values) { Set-ItemProperty -Path $k -Name ('' + $i) -Value $v -Type String; $i++ }Disable
# Disable: msedge/URLBlocklist
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": msedge/URLBlocklist
$k = 'HKLM:\Software\Policies\Microsoft\Edge\URLBlocklist'
Remove-Item -Path $k -Recurse -Force -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"
Options (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Block access to a list of URLsURLBlocklistDesc | List (table)list | Software\Policies\Microsoft\Edge\URLBlocklistValues named “” + number | REG_SZ (values under the key) |
Application
Microsoft Edge (+ Edge Update, WebView2) (Microsoft) — November 2026 templates
Official templates downloaded on November 12, 2026.