How to Block Websites using Firewall on Windows 11

Photo of author
Written By Larious

Larious is the Executive Editor of LowkeyTech. He is a tech enthusiast and a content writer. 

 

 

 

 

Last Updated on September 24, 2024 by Larious

The Windows Defender Firewall is turned on by default on Windows 10/11, but users can manually configure it as needed. On Techviral, we have already shared a guide on configuring a firewall to block internet access to the app.

This article will share another best Windows Firewall trick for blocking websites. You don’t need to install browser extensions or edit your system’s host file to block a website.

Block Websites using Windows Firewall in Windows 11

You can block distracting websites by creating a simple firewall rule. Below, we have shared a step-by-step guide on blocking websites using Windows Firewall. Let’s check it out.

1. Find the IP Address of the Website

The first step is to find the IP Addresses of the sites you want to block. For example, if you want to block Facebook, you need to find its IP Address.

It’s pretty easy to find a website’s IP Address. For that, you need to use websites like IPVOID. Here’s what you need to do.

1. First of all, visit IPVOID from your web browser.

2. Next, enter the website name in the text field and click on the Find Website IP button.

enter the website nameenter the website name

3. The site will list the IP Address. You need to note down the IP address.

note down the IP addressnote down the IP address

2. Creating a Firewall Rule to Block Websites

Once you get the IP Address, you need to create a Firewall rule to block websites. Here are some simple steps.

1. First of all, open the Windows 11 search and type in Windows Firewall. Open Windows Firewall from the list.

Open Windows FirewallOpen Windows Firewall

2. On the Windows Defender Firewall, click on the Advanced Settings option.

click on the Advanced Settingsclick on the Advanced Settings

3. On the left pane, click on the Outbound Rules.

click on the Outbound Rulesclick on the Outbound Rules

4. On the right pane, click on the New Rule button as shown below.

click on the New Rule buttonclick on the New Rule button

5. On the Rule type pop-up, select Custom and click on the Next button.

select Custom and click on the Next buttonselect Custom and click on the Next button

6. Select All programs and click on the Next button on the next page.

All programsAll programs

7. Don’t make any changes to the Protocol and Ports option. Just click on the Next button.

click on the Next buttonclick on the Next button

 

8. On the Remote IP Addresses field, select the These IP Addresses checkbox.

select the 'These IP Addresses' checkboxselect the 'These IP Addresses' checkbox

9. Now click on the Add button and add the IP Addresses you have copied. You need to enter every IP Address. Once you have done this, click on the Next button.

enter every IP Addressenter every IP Address

10. On the Action page, select Block the Connection and click on the Next button.

select Block the Connectionselect Block the Connection

11. On the Profile page, select all three options and click on the Next button.

select all three optionsselect all three options

12. Finally, enter the name & description of the new rule and click on the Finish button.

enter the name & descriptionenter the name & description

If you try to access the blocked website, you will see a page like this.

access the blocked websiteaccess the blocked website

How to Disable the Rule?

It’s pretty easy to disable the rule on Windows Defender Firewall. Follow the simple steps shared below.

1. Open Windows Defender Firewall and click on the Advanced Settings option.

click on the Advanced Settingsclick on the Advanced Settings

2. Select Outbound Rules on the left pane.

click on the Outbound Rulesclick on the Outbound Rules

3. On the Right pane, right-click on the Rule and select the Disable Rule option.

select the 'Disable Rule' optionselect the 'Disable Rule' option

This will disable the rule. Now, you will be able to access the blocked websites.

Other Ways to Block Websites on Windows 11?

If you use Google Chrome web browser, you can use several extensions to block websites. Extensions like Block Site, StayFocusd, etc., work great in blocking distracting websites.

Alternatively, you can edit the Hosts file on Windows 11 to block the sites that you never want to visit.

If you want a detailed guide on how to block a website using the Hosts file and how to use the website blocker extensions, check out this guide – Block a Website in Chrome.

The process might look lengthy, but it’s easy to follow. I hope this article helped you! Please share it with your friends also. If you have any doubts related to this, let us know in the comment box below.

Previous

How to Enable Music Haptics on iPhone (iOS 18)

Best TorrentGalaxy Alternatives in 2024 [Proxy Sites]

Next