Microsoft Edge lacks built-in options to block specific websites, which can be a challenge for users who want to restrict access to certain sites for themselves or others.
Blocking websites with the hosts file
Modifying the hosts file on your Windows system can effectively block access to specific websites across all browsers, including Microsoft Edge. This method redirects the domain names of unwanted sites to a null address, preventing them from loading.
Notepad. In the search results, right-click on Notepad and select Run as administrator.

Ctrl+O. This will open a file explorer window.C:\Windows\System32\Drivers\etc



127.0.0.1 followed by the website you want to block. For example, to block YouTube, add:127.0.0.1 youtube.com

Ctrl+S or by clicking File and selecting Save. Close Notepad when done.
This method blocks the website at the system level, preventing access from any browser on the computer. Note that if you use a VPN or proxy, the hosts file may not effectively block the site, and you’ll need to adjust your VPN settings accordingly.
Join readers who trust AllThings.How
Add us as a preferred source on Google so our practical guides show up first next time you search.
Add to Google Preferences →Blocking websites on Edge using an extension
Since Microsoft Edge doesn’t offer a native option to block websites, installing a browser extension is an alternative solution. Extensions like “Block Site” can help you restrict access to specific sites directly within the browser.






The page will refresh, and the website will be blocked. You will see a notification indicating that the site is blocked by the extension.


Enter after typing each URL to add it to the list.
While this extension helps block websites, keep in mind that anyone with access to your browser can remove sites from the block list or uninstall the extension, as it doesn’t offer password protection.
By using these methods, you can effectively block unwanted websites on Microsoft Edge, either by modifying the hosts file for system-wide blocking or by using an extension for browser-specific control.






