How to Block Websites on Microsoft Edge? [Easy Guide]
Blocking websites on Microsoft Edge can be done in multiple ways, depending on your needs. If you want to completely restrict access across all browsers, editing the hosts file is the most reliable method. On the other hand, if you prefer a more user-friendly and customizable solution, using an extension inside Microsoft Edge is a better choice.
The hosts file method works at the operating system level, meaning it blocks websites not just in Edge, but also in other browsers like Chrome or Firefox. However, it requires administrative permissions and careful editing.
Extensions, on the other hand, are easier to manage. They allow you to block or allow websites with just a few clicks and often include additional features such as password protection, scheduling, and usage tracking.
Let’s learn all the easy methods!
Quick Process to Block a Website on Microsoft Edge

To block websites on Microsoft Edge, you can edit the hosts file on your Windows computer or use a browser extension from the Edge Add-ons store. Editing the hosts file prevents access system-wide, while extensions allow flexible, browser-specific blocking with scheduling and customization options.
Below are the most effective step-by-step methods you can follow.
Method 1: Block Websites Using the Hosts File
Step 1: Open Notepad as Administrator
First, you need to open Notepad with administrative privileges. This is necessary because the hosts file is a protected system file.
Click on the Start menu and search for Notepad. Right-click on it and select Run as administrator. If prompted, confirm the action.
Opening Notepad in admin mode ensures that you will be able to save changes later without encountering permission errors.
Step 2: Access the Hosts File
Once Notepad is open, click on File, then select Open. Navigate to the following path:
C:\Windows\System32\drivers\etc
In this folder, you will find a file named hosts. If you do not see it, make sure to change the file type from “Text Documents” to All Files.
The hosts file is used by Windows to map domain names to IP addresses. By modifying it, you can block access to specific websites.
Step 3: Add Website Entries to Block
Scroll to the bottom of the hosts file and add a new line for each website you want to block.
For example:
127.0.0.1 facebook.com
127.0.0.1 www.facebook.com
This redirects the website to your local machine, effectively blocking it.
You can repeat this process for any number of websites. Make sure there are no typos, as even small mistakes can prevent the block from working.
Step 4: Save the Hosts File
After adding the entries, click File and then Save.
Since you opened Notepad as an administrator, the file will save without any issues. If you encounter an error, double-check that Notepad was launched with admin rights.
Step 5: Flush DNS Cache
To ensure the changes take effect immediately, you should clear your DNS cache.
Open Command Prompt as administrator and type:
ipconfig /flushdns
Press Enter. This step removes cached data and forces your system to use the updated hosts file.
Now, when you try to access the blocked website in Microsoft Edge, it will no longer load.
Method 2: Block Websites Using Microsoft Edge Extensions
Step 1: Open Microsoft Edge Add-ons Store
Launch Microsoft Edge and click on the three-dot menu in the top-right corner.
Go to Extensions and select Open Microsoft Edge Add-ons website. This is where you can find tools specifically designed to enhance your browsing experience.
Step 2: Search for a Website Blocking Extension
In the search bar, type Block Site or Website Blocker.
Popular options include tools that allow you to block specific URLs, set time limits, and even restrict access with a password.
Choose an extension that suits your needs and click on Get to install it.
Step 3: Install and Enable the Extension
After clicking Get, confirm the installation by selecting Add extension.
Once installed, the extension icon will appear in the toolbar. Click on it to access its settings.
Most extensions are easy to configure and offer guided setup options.
Step 4: Add Websites to the Block List
Open the extension settings and locate the option to block websites.
Enter the URLs you want to restrict, such as:
facebook.com,
youtube.com
Save the changes. The extension will now prevent access to these sites whenever you browse using Microsoft Edge.
Step 5: Customize Blocking Settings
Many extensions offer additional features such as scheduling, keyword blocking, and password protection.
You can set specific times during which websites are blocked or restrict access entirely.
This flexibility makes extensions ideal for productivity and parental control purposes.
Method 3: Use Microsoft Family Safety for Parental Control
Step 1: Set Up a Microsoft Account
To use parental controls, you need a Microsoft account. If you do not already have one, create it through the official Microsoft website.
This account will allow you to manage settings across devices.
Step 2: Access Microsoft Family Safety
Visit the Microsoft Family Safety dashboard and sign in.
Add a family member and assign them a child account if you want to restrict their browsing activity.
Step 3: Enable Content Filters
Navigate to the content filters section and turn on web and search filtering.
You can then add specific websites to the blocked list.
This method works well for parents who want to ensure safe browsing for children.
FAQs
Can I block websites on Microsoft Edge without extensions?
Yes, you can block websites without extensions by editing the hosts file on your Windows system. This method blocks access across all browsers.
Is blocking websites using the hosts file safe?
Yes, it is completely safe if done correctly. Just make sure you only modify the necessary entries and avoid deleting existing lines.
Can I unblock websites later?
Yes, you can easily unblock websites by removing the entries from the hosts file or disabling them in your extension settings.
Do extensions slow down Microsoft Edge?
Most modern extensions are lightweight and do not significantly affect performance. However, installing too many extensions may slow down your browser.
Which method is best for beginners?
Using an extension is the easiest method for beginners because it does not require technical steps and offers a user-friendly interface.
