Skip to content

How to Block a Website on Microsoft Edge

Use different methods to learn how to block a website in the Microsoft Edge browser. You can use the Edge extension or host file on a Windows/Mac computer.

Do you want to block unwanted and unsafe sites or remove unproductive/offensive pages in the Edge browser to safeguard your children? Then you can use the site blocker extensions or edit and customize the system host file, as Edge does not have any pre-loaded features to block sites. Content blocker extension is easy to follow and use.

Block a Website on Edge browser

Some websites on the internet can be highly intimidating and may contain inappropriate stuff for children. Thus, most people restrict their children from accessing the internet, while some smartly block particular websites for prevention.

If you use Microsoft Edge, you won’t find an option to block any website to prevent access. Hence, most Microsoft Edge users are curious enough to know how to block a website on Microsoft Edge.

Microsoft Edge hasn’t yet introduced any in-built function specifically to block websites. Nevertheless, using your command prompt, there is a workaround to block websites on the browser. And this trick works not only for Edge but for all web browsers absolutely for free.

I’ve listed two ways to block a website, the best you can do is use an extension and block the website from accessing the Microsoft Edge browser.

Sites Blocker Extension

Earlier, there wasn’t an alternative to attach extensions on Microsoft Edge, but with the latest Microsoft Edge Chromium, you can combine extensions. Hereabouts, how to prevent websites by the site blocker extension.

Here are the steps to install the site blocker extensions:

  1. Launch Microsoft Edge on the computer.
  2. Click on the Menu horizontal 3dots icon from the top right-hand Edge.
  3. Choose the Extensions tab from the menu list.
    Microsoft Edge Extensions Tab
  4. Click on the Get extensions for Microsoft Edge button.
    Get extensions for Microsoft Edge
  5. Type block sites on the search box and hit Enter.
    Block Site Edge Extension
  6. Click on the Get button and then Add extension button against any extension.
    Add Block Site extension on Microsoft Edge
info icon
Note: You can download any, as they all operate similarly. You can try different extensions to find out which suits you the best.

When the extension is installed, start a website you wish to block (e.g., tap on the Block Site icon at the top. The last step is tapping the Confirm button.

Block Current Site Microsoft Edge

Promptly, you notice a black screen whenever you start Facebook, which means restricted access. To unblock back, tap on the Block Site icon from the top edge of the screen and click OK.

Using System Host File

During this process, you must execute some easy addition to the Windows hosts file. Host file editing is the most straightforward technique to block websites on Microsoft Edge or any other web browser. This is an accessible approach to restrict people of all generations from viewing content you don’t want to see.

  1. Tap the Windows key button and search for cmd.
  2. Right-click on Command Prompt and choose the option Run as administrator.
  3. In the command line window, type notepad c:\WINDOWS\system32\drivers\etc\hosts and hit the Enter button.
    Windows OS command prompt to open host file
  4. Switch to the Notepad app, and at the end of the text, type
  5. After giving space, type the website name you wish to block.
    Hosts file in Windows OSFor example, For every website you wish to block, repeat this step.
  6. Open File from the notepad menu bar and hit Save to keep the file.
  7. Close notepad and command prompt.

If you cannot edit the host file, we recommend you download Notepad++ (freeware software) to edit this file. As this is a critical system file, you will need special software/permissions to edit this file. With Notepad++, you can edit and save this file effortlessly.

For Mac, you can use the Terminal app and run the following code to edit the Host file: sudo nano /etc/hosts/ and add the same script. You should save the file and restart the system for the blocker to work.

Bottom Line

Making good use of the internet is crucial, mostly in cases of children. However, certain websites containing ill-suited ads or content might create a negative impact on the usage of the internet. As a result, it is always a wise decision to block such websites on your browser.

Microsoft Edge does not yet have any built-in functionality for blocking websites. However, you can use your command prompt to block websites in the browser as a workaround. This method is entirely free and works not only for Edge but for all web browsers.

The steps mentioned above will help you do so in your Microsoft Edge browser. Since experimenting with the command prompt must be alarming; therefore, you are advised to follow these steps very carefully.

Lastly, if you've any thoughts or feedback on How to Block a Website on Microsoft Edge, then feel free to drop in below comment box. You can also report the outdated information.

Please share the article if you find it helpful:

Disclosure: This page may contain affiliate links, which means we may receive compensation for your purchases using our links; of course at no extra cost to you (indeed, you may get special discounts).

Rahul Verma

Rahul is a Computer Science Engineer with a MBA degree. He is keenly interested in the field of tech and cryptocurrency. He has 6+ years of technical content writing experience, mainly experimenting with and troubleshooting computer and mobile operating systems. Connect him on LinkedIn.

Share us your thoughts and feedback

Your email address will not be published. Required fields are marked *