Specifies whether to block requests from public websites to devices on a user's local network. (obsolete)
Cette stratégie n'a pas de traduction française dans les modèles de l'éditeur ; le texte original est en anglais.
Explication
OBSOLETE: This policy is obsolete and doesn't work after Microsoft Edge 144.
Local Network Access restrictions prevent public websites from making
requests to devices on a user's local network without explicit user permission.
If you enable this policy, Microsoft Edge blocks
any request that would otherwise trigger a DevTools warning
due to Local Network Access checks.
These requests are denied without prompting the user.
If you disable or don't configure this policy, Microsoft Edge handles
these requests using the default behavior, which may include showing warnings in DevTools
and allowing the request to proceed depending on the context.
Note: This feature improves local network security by deprecating direct access to private IP addresses from public websites
unless explicitly granted by the user. For more information about Local Network Access, see https://wicg.github.io/local-network-access/.
Starting in version 140, Microsoft Edge introduces support for policies that manage Local Network Access behavior on a per-URL basis.
You can configure exceptions to allow specific URLs to bypass Local Network Access restrictions.
You can also block specific URLs from making Local Network Access requests.
Registre
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\EdgeHKEY_CURRENT_USER\Software\Policies\Microsoft\Edge- Nom de la valeur
LocalNetworkAccessRestrictionsEnabled
| État | Valeur écrite |
|---|---|
| Activé | REG_DWORD = 1 |
| Désactivé | REG_DWORD = 0 |
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/LocalNetworkAccessRestrictionsEnabled
$k = 'HKLM:\Software\Policies\Microsoft\Edge'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'LocalNetworkAccessRestrictionsEnabled' -Value 1 -Type DWordDésactiver
# Désactiver : msedge/LocalNetworkAccessRestrictionsEnabled
$k = 'HKLM:\Software\Policies\Microsoft\Edge'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'LocalNetworkAccessRestrictionsEnabled' -Value 0 -Type DWordRevenir à « Non configuré »
# Revenir à « Non configuré » : msedge/LocalNetworkAccessRestrictionsEnabled
$k = 'HKLM:\Software\Policies\Microsoft\Edge'
Remove-ItemProperty -Path $k -Name 'LocalNetworkAccessRestrictionsEnabled' -ErrorAction SilentlyContinueUtilisateur (HKCU)
Activer
Désactiver
Revenir à « Non configuré »
Application
Microsoft Edge (+ Edge Update, WebView2) (Microsoft) — modèles de novembre 2026
Modèles officiels téléchargés le 12 novembre 2026.