can i block a website on edge

How To Block A Website On Microsoft Edge

By Steven Young
AD

Ever found yourself wishing you could block a website on Microsoft Edge? Perhaps you're trying to stay focused at work, avoid distractions at home, or even protect your kids from inappropriate content. Whatever your reason, blocking a website on Edge is easier than you might think. Let's dive into a step-by-step guide to help you achieve just that.

Before we begin, it's important to note that you can't block a website directly within the Edge browser itself. However, you can use the Windows hosts file, which redirects domain names to specific IP addresses, to effectively block websites. Here's how to do it:

Blocking a Website Using the Windows Hosts File

The Windows hosts file is a plaintext file that maps hostnames to their corresponding IP addresses. By adding a specific entry, we can redirect website requests to localhost, effectively blocking the site.

AD
How to block websites on your Microsoft Edge browser using Command Prompt
How to block websites on your Microsoft Edge browser using Command Prompt
How To Unblock Websites On School Chromebook | Access blocked websites
How To Unblock Websites On School Chromebook | Access blocked websites
How To Block Websites in Chrome [January 2021]
How To Block Websites in Chrome [January 2021]

To access and edit the hosts file, you'll need administrative privileges. Here's how you can do it:

Accessing the Hosts File

First, you need to open the hosts file in a text editor. For this, we'll use Notepad. Open Notepad and click on File > Open. Then, type the following in the File name field and click Open:

How to Block Adult Sites on all Web browsers & Network Devices.
How to Block Adult Sites on all Web browsers & Network Devices.
How to Unblock a Website at School or Office on Browser - Code Exercise
How to Unblock a Website at School or Office on Browser - Code Exercise
How to Access Blocked Websites (9 Ways)
How to Access Blocked Websites (9 Ways)

C:\Windows\System32\drivers\etc\hosts

To edit the file, you'll need to adjust a few settings. Click on File > Save as. In the 'Save as type' dropdown, select 'All Files', then change the file type to 'Text Document' and click Save.

AD

Blocking the Website

Now that you have access to the hosts file, you can add an entry to block the website. Open the hosts file in Notepad and add the following text at the bottom, replacing 'website.com' with the domain you want to block:

How To Block Websites on Google Chrome!
How To Block Websites on Google Chrome!
WordPress Site Not Indexing? 7 Hidden GSC Issues Blocking Your Pages
WordPress Site Not Indexing? 7 Hidden GSC Issues Blocking Your Pages
How to Block Websites on Chrome, Firefox, Edge, Safari, Android, and iOS - Make Tech Easier
How to Block Websites on Chrome, Firefox, Edge, Safari, Android, and iOS - Make Tech Easier
21 Ways to Access Blocked WebSites at School and Work
21 Ways to Access Blocked WebSites at School and Work
How to block websites using Google Chrome(easy way)
How to block websites using Google Chrome(easy way)
How to Block Adult Websites on My Phone
How to Block Adult Websites on My Phone

127.0.0.1 website.com

Press Ctrl + S to save the file and close Notepad. You may need to restart your browser or even your computer for the changes to take effect.

AD

Blocking Websites Through Your Router or Network

If you want to block a website across your entire network, including other devices, you can do so by configuring your router. Here's a simple way to do it:

Block websites with NextDNS: Chrome, Edge, Brave & Firefox
Block websites with NextDNS: Chrome, Edge, Brave & Firefox
How to block a website on Microsoft Edge on a MacBook
How to block a website on Microsoft Edge on a MacBook
How to Bypass Blocked Sites: 5 Methods to Try
How to Bypass Blocked Sites: 5 Methods to Try
a laptop computer sitting on top of a blue background with the words block website above it
a laptop computer sitting on top of a blue background with the words block website above it
Unblock websites at school
Unblock websites at school
The Ultimate Guide To Block Websites On Google Chrome (And Other Browsers)
The Ultimate Guide To Block Websites On Google Chrome (And Other Browsers)
WTF?
WTF?
How to Block a Website – The Ultimate Guide (2025)
How to Block a Website – The Ultimate Guide (2025)
an image with the words unblock and two images above it that say,'any website blocked by administrator
an image with the words unblock and two images above it that say,'any website blocked by administrator
How to Stop Websites from Stealing Your Images by Hotlinking
How to Stop Websites from Stealing Your Images by Hotlinking
How to Block Inappropriate Websites on Windows 10
How to Block Inappropriate Websites on Windows 10
How to Manage or Stop Notifications from the Edge browser on a Computer
How to Manage or Stop Notifications from the Edge browser on a Computer
10 Simple Steps to Block Websites on Your Android Device
10 Simple Steps to Block Websites on Your Android Device

First, you need to access your router's admin panel. Open your web browser and enter your router's IP address (usually something like 192.168.1.1) in the address bar. Log in with your admin username and password.

Accessing the DHCP Settings

Once you're logged in, look for the DHCP settings, usually under the 'Advanced' or 'Network' tab. Here, you should see a list of connected devices and their corresponding IP addresses and MAC addresses.

AD

To block a website, you'll need to set up a specific MAC address or static IP address. This is where you'd normally set up device-specific settings, like setting a static IP for a device. Instead, we'll use the 'Block' or 'DENY' option to block access for a specific IP address or MAC address.

Blocking the Website

Choose the 'Block' or 'DENY' option and enter the IP address or MAC address you want to block. Make sure to save your changes and exit the router's admin panel. Keep in mind that this will block all traffic on that IP or MAC address, not just the website you want to block. If you only want to block specific websites, you'll need to use more advanced configurations, like DNS filtering or Deep Packet Inspection.

Remember, blocking websites isn't a silver bullet for productivity or internet safety. It's important to teach responsible internet use habits and engage in open dialogue with your family or team about appropriate web use. But for those times when you need an extra layer of control, knowing how to block a website on Edge can be a lifesaver.

AD