Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Block sites from making network requests to local network endpoints.
Supported versions
- Windows: ≥ 146
- macOS: ≥ 146
- Android: ≥ 146
- iOS: Not supported
Description
Controls which website origins are blocked from making Local Network Access requests to local network endpoints.
Network requests initiated from websites that match the specified URL patterns are blocked from issuing Local Network Access requests.
For origins not covered by the patterns specified in this policy, the user's personal configuration applies.
For detailed information about valid URL patterns, see Local network access in Microsoft Edge..
For more information about Local Network Access restrictions, see https://wicg.github.io/local-network-access/.
Multiple policies can list origins that affect requests to local network endpoints. If an origin matches more than one of the following policies, they take precedence in the following order:
- LocalNetworkBlockedForUrls
- LocalNetworkAllowedForUrls
- LoopbackNetworkBlockedForUrls
- LoopbackNetworkAllowedForUrls
- LocalNetworkAccessBlockedForUrls
- LocalNetworkAccessAllowedForUrls
This policy controls access to local network endpoints (private IP addresses) and can be used to block specific websites from accessing local network resources.
Supported features
- Can be mandatory: Yes
- Can be recommended: No
- Dynamic Policy Refresh: Yes
- Per Profile: Yes
- Applies to a profile that is signed in with a Microsoft account: No
Data type
- List of strings
Windows information and settings
Group Policy (ADMX) info
- GP unique name: LocalNetworkBlockedForUrls
- GP name: Block sites from making network requests to local network endpoints.
- GP path (Mandatory): Administrative Templates/Microsoft Edge/Network settings
- GP path (Recommended): N/A
- GP ADMX file name: MSEdge.admx
Example value
http://www.example.com:8080
[*.]example.edu
*
Registry settings
- Path (Mandatory): SOFTWARE\Policies\Microsoft\Edge\LocalNetworkBlockedForUrls
- Path (Recommended): N/A
- Value name: 1, 2, 3, ...
- Value type: List of REG_SZ
Example registry value
SOFTWARE\Policies\Microsoft\Edge\LocalNetworkBlockedForUrls\1 =
http://www.example.com:8080
SOFTWARE\Policies\Microsoft\Edge\LocalNetworkBlockedForUrls\2 =
[*.]example.edu
SOFTWARE\Policies\Microsoft\Edge\LocalNetworkBlockedForUrls\3 =
*
Mac information and settings
- Preference Key name: LocalNetworkBlockedForUrls
- Example value:
<array>
<string>http://www.example.com:8080</string>
<string>[*.]example.edu</string>
<string>*</string>
</array>
Android information and settings
- Preference Key name: LocalNetworkBlockedForUrls
- Example value:
["http://www.example.com:8080", "[*.]example.edu", "*"]