Ouvrir dans l'explorateur

List of URL patterns for which developer tools are blocked

Cette stratégie n'a pas de traduction française dans les modèles de l'éditeur ; le texte original est en anglais.

Type
Ordinateur et utilisateur
Chemin GPO
Configuration ordinateur › Stratégies › Modèles d'administration › Microsoft Edge Configuration utilisateur › Stratégies › Modèles d'administration › Microsoft Edge EN : Computer Configuration › Policies › Administrative Templates › Microsoft EdgeEN : User Configuration › Policies › Administrative Templates › Microsoft Edge
Pris en charge sur
Microsoft Edge version 148, Windows 7 or later
Fichier ADMX
msedge.admx
Nom interne
msedge/DeveloperToolsAvailabilityBlocklist

Explication

This policy specifies URL patterns where developer tools are blocked. For information about the URL format, see https://go.microsoft.com/fwlink/?linkid=2095322.

Developer tools availability is evaluated for each target being inspected. URL patterns are matched against the target's URL, such as a page, a subframe represented by a separate target, an extension, or a web application. Frames that share a target follow that target's policy result.

If you configure this policy and don't configure the 'DeveloperToolsAvailabilityAllowlist' (List of URL patterns where developer tools are allowed) policy, developer tools are blocked for targets whose URLs match a pattern in this blocklist. If a target's URL doesn't match, availability is determined by the 'DeveloperToolsAvailability' (Control where developer tools can be used) policy. For example, a subframe represented by a separate target can't be inspected if its URL matches this blocklist, while the main-page target remains inspectable if its URL isn't blocklisted and the fallback policy allows inspection.

If you configure both this policy and the 'DeveloperToolsAvailabilityAllowlist' policy, the allowlist takes precedence. A target whose URL matches the allowlist is allowed, even if it also matches this policy. A target whose URL matches this policy but not the allowlist is blocked. If a target's URL matches neither list, the 'DeveloperToolsAvailability' policy determines availability.

If you disable or don't configure this policy, developer tools availability is determined by the 'DeveloperToolsAvailabilityAllowlist' and 'DeveloperToolsAvailability' policies.

This policy applies to developer tools, direct Chrome DevTools Protocol (CDP) connections (for example, using --remote-debugging-port or --remote-debugging-pipe), and CDP connections through the chrome.debugger extension API. The 'RemoteDebuggingAllowed' (Allow remote debugging) policy controls whether remote debugging can start. When remote debugging is allowed, this policy still restricts which targets can be inspected.

This policy supports up to 1,000 entries.

On Android, this policy controls inspection of targets through remote debugging. It does not enable on-device developer tools.

Example value:

https://contoso.com
contoso.com
https://ssl.server.com
contoso.com/bad_path
https://server.contoso.com:8080/path
.exact.hostname.com
*
file://*

Registre

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Edge
HKEY_CURRENT_USER\Software\Policies\Microsoft\Edge
Nom de la valeur
non défini dans l'ADMX

Valeurs d'activation / désactivation : non défini dans l'ADMX (voir les options ci-dessous).

PowerShell

Commandes PowerShell qui écrivent dans le registre ce que la stratégie écrirait. Les valeurs entre chevrons (<…>) sont à remplacer.

Écrire directement dans le registre contourne la stratégie de groupe : si une GPO gère cette valeur, elle sera réécrite au prochain gpupdate ; sinon la valeur reste en place (effet « tatouage »). Préférez une GPO ou, en local, LGPO.exe. Exécutez PowerShell en administrateur pour HKLM. Certaines stratégies demandent un redémarrage ou gpupdate /force.

Ordinateur (HKLM)

Activer

# Activer : msedge/DeveloperToolsAvailabilityBlocklist
$k = 'HKLM:\Software\Policies\Microsoft\Edge\DeveloperToolsAvailabilityBlocklist'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# List of URL patterns for which developer tools are blocked
# Liste non additive : les valeurs existantes de la clé sont d'abord effacées
if (Test-Path -Path $k) { (Get-Item -Path $k).Property | ForEach-Object { Remove-ItemProperty -Path $k -Name ([WildcardPattern]::Escape($_)) -ErrorAction SilentlyContinue } }
$values = @('<valeur1>', '<valeur2>')  # Remplacez les valeurs par les vôtres
$i = 1
foreach ($v in $values) { Set-ItemProperty -Path $k -Name ('' + $i) -Value $v -Type String; $i++ }

Désactiver

# Désactiver : msedge/DeveloperToolsAvailabilityBlocklist
# Aucune valeur n'est écrite à l'état « Désactivé » (rien de défini dans l'ADMX)

Revenir à « Non configuré »

# Revenir à « Non configuré » : msedge/DeveloperToolsAvailabilityBlocklist
$k = 'HKLM:\Software\Policies\Microsoft\Edge\DeveloperToolsAvailabilityBlocklist'
Remove-Item -Path $k -Recurse -Force -ErrorAction SilentlyContinue

Utilisateur (HKCU)

Activer

Désactiver

Revenir à « Non configuré »

Options (1)

LibelléContrôleValeur de registreType REGContraintes / détails
List of URL patterns for which developer tools are blockedDeveloperToolsAvailabilityBlocklistDescListe (tableau)listSoftware\Policies\Microsoft\Edge\DeveloperToolsAvailabilityBlocklistValeurs nommées « » + n°REG_SZ (valeurs sous la clé)

Application

Microsoft Edge (+ Edge Update, WebView2) (Microsoft) — modèles de novembre 2026

Modèles officiels téléchargés le 12 novembre 2026.