Prevent Microsoft Edge from bypassing CleanBrowsing DNS by disabling Secure DNS (DoH), enforcing browser policies, and restricting extensions.
Microsoft Edge includes a built-in Secure DNS (DNS-over-HTTPS) feature that can bypass your network's DNS configuration. When enabled, Edge sends DNS queries directly to a DoH provider (such as Cloudflare or Google), completely circumventing CleanBrowsing's content filtering.
To ensure CleanBrowsing works reliably, you need to either disable Edge's Secure DNS or configure it to use CleanBrowsing's own DoH endpoint.
Microsoft provides Group Policy administrative templates (ADMX/ADML files) for managing Edge settings across your organization.
Copy the policy template files to the appropriate Windows directories:
:: Copy the ADMX file
copy msedge.admx C:\Windows\PolicyDefinitions\
:: Copy the language file (English US example)
copy msedge.adml C:\Windows\PolicyDefinitions\en-US\
After copying, open the Group Policy Editor to verify the templates are loaded:
gpedit.msc, and press EnterIn the Group Policy Editor:
This prevents Edge from using encrypted DNS, ensuring all DNS queries go through your configured system DNS (CleanBrowsing).
Alternative: Force CleanBrowsing DoH
Instead of disabling DoH entirely, you can force Edge to use CleanBrowsing's DoH endpoint:
https://doh.cleanbrowsing.org/doh/family-filterAvailable CleanBrowsing DoH endpoints:
https://doh.cleanbrowsing.org/doh/family-filterhttps://doh.cleanbrowsing.org/doh/adult-filterhttps://doh.cleanbrowsing.org/doh/security-filterEdge includes its own DNS client that can operate independently of the system DNS resolver. To disable it:
This forces Edge to use the operating system's DNS resolver, which respects your CleanBrowsing DNS configuration.
Browser extensions can include VPN or proxy functionality that bypasses DNS filtering. To restrict extensions:
* to block all extensions by defaultTo allow specific trusted extensions, use the "Configure extension installation allow list" policy and add the extension IDs you want to permit.
If you prefer using the Windows Registry directly instead of Group Policy, save the following as a .reg file and import it:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge]
"DnsOverHttpsMode"="off"
"BuiltInDnsClientEnabled"=dword:00000000
"ForceGoogleSafeSearch"=dword:00000001
"ForceYouTubeRestrict"=dword:00000002
To apply via command line, run in an elevated Command Prompt:
reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v DnsOverHttpsMode /t REG_SZ /d "off" /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v BuiltInDnsClientEnabled /t REG_DWORD /d 0 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v ForceGoogleSafeSearch /t REG_DWORD /d 1 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v ForceYouTubeRestrict /t REG_DWORD /d 2 /f
After applying your changes, verify they are in effect:
edge://policy in the address barnslookup -type=txt debug.cleanbrowsing.org in Command Prompt to verify DNS is resolving through CleanBrowsingIf policies do not appear immediately, click "Reload policies" on the edge://policy page or restart the computer.