Disable file:// access in MS Edge

Adam Weight 72 Reputation points
2022-12-21T02:38:22.807+00:00

I am looking for a way to disable access to view files in MS Edge using the file:// protocol. We have an environment we need to highly restrict. Users have already been blocked from accessing or reading local or unc paths in File Explorer; however, those same user accounts are able to view the local and unc directories in MS Edge using File://

I have looked over every policy setting in the edge.admx files and nothing appears to disable this ability. Nor can I find anything online about how to disable it.

Windows for business Windows Client for IT Pros User experience Other
Microsoft Edge Microsoft Edge development
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Adam Weight 72 Reputation points
    2022-12-21T18:21:56.967+00:00

    Figured this out with an answer from another forum. Just add file://c:\ to the Block URL list in Edge GPO policies.

    1 person found this answer helpful.
    0 comments No comments

  2. Limitless Technology 44,751 Reputation points
    2022-12-22T14:41:50.273+00:00

    Hello there,

    If you set this policy 'DefaultFileSystemReadGuard' Setting you can list the URL patterns that specify which sites can't ask users to grant them read access to files or directories in the host operating system's file system via the File System API.

    You can find more about policies from here https://learn.microsoft.com/en-us/previous-versions/windows/edge-legacy/available-policies

    --------------------------------------------------------------------------------------------------------------------------------

    --If the reply is helpful, please Upvote and Accept it as an answer--

    0 comments No comments

  3. Lappsec 0 Reputation points
    2024-11-05T20:03:29.5733333+00:00

    Unfortunately just blocking file://c:\ can be bypassed pretty easily. For example, any of the following could work

    file://127.0.0.1/C$

    file://localhost/C$

    file://<computers-hostname>/C$

    file://<external-domain-name-that-resolves-to-127.0.0.1/C$

    The GPO state that wildcards with the file scheme don't work as intended (file://*) so it's unclear if there's a way to actually lock this down.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.