During Build 2015, Microsoft made an announcement that Project Spartan which replaced Internet Explorer in Windows 10 is officially named Microsoft Edge. It is a WinRT-based browser. In the initial release, it won't support extensions or add-ons. So there can be no adblock extension or other tool to block ads in Edge for a while. Here is a trick which will allow you to block ads in the Microsoft Edge browser.
- Download the HOSTS.ZIP file from the winhelp2002.mvps.org site.
- Extract all files from the provided ZIP archive into any folder. Even the Desktop folder is suitable.
- Run the extracted mvps.bat file as administrator. It will modify your hosts file automatically; no manual editing is required. If you run this file once again as administrator, it will revert all the changes it made.
Restart the Edge browser. The changes will take effect immediately. Almost all ads will be gone from web pages that you open.
However, you might face another issue - the modified HOSTS file causes delays in the loading of websites. Web pages can open slower than usual. This happens because with a large hosts file, the client-side Windows DNS cache becomes less responsive. Here is another fix to avoid this issue:
- Open Registry Editor.
- Navigate to the following Registry key:
- Create a new DWORD value "MaxCacheTtl" and set the value to 1. This value indicates the TTL for positive DNS query responses. By lowering it to 1, it effectively disables the client-side DNS cache.
- Create a new DWORD "MaxNegativeCacheTtl" and set the value to 0. This is the TTL value for negative responses. By setting it to 0, negative responses won't be cached either.
- Restart your PC.
Note that the tweak above will increase network traffic for DNS queries to the server as the DNS client-side cache is disabled. However, it is not a big issue and you should not notice any network performance degradation from it.
You are done. Now you got rid of ads in Microsoft Edge (Spartan) browser. It will affect other apps as well, e.g. other web browsers you have installed. If you are not happy with this trick, you can restore the original HOSTS file by running the mvps.bat file once again as administrator and deleting the mentioned MaxCacheTtl and MaxNegativeCacheTtl Registry values.
Tell us your experience after doing this tweak. Do you experience any slowdown in browsing with Microsoft Edge?
All credits for this trick go to our friend, Christ123NT. Chris also wrote about a very useful way to disable ads in Skype without using third party tools.
Winaero greatly relies on your support. You can help the site keep bringing you interesting and useful content and software by using these options:
If you like this article, please share it using the buttons below. It won't take a lot from you, but it will help us grow. Thanks for your support!