Home  >  Article  >  How to block website access using firewall on Windows 11/10

How to block website access using firewall on Windows 11/10

王林
王林forward
2023-05-20 22:46:1310518browse

There are many websites on the internet trying to attack your system and you may end up losing your data. Additionally, if you want certain websites not accessible to other users on your system, you may want to use Windows Firewall to block those websites or IP addresses from being accessed on your system. We explain in a simple way how to block websites using firewall in this article. Please read on.

How to block website access using firewall on Windows 11

Step 1: Visit any IP finder website on your browser such as IPVOID.

Step 2: This will open in a new tab.

Step 3: Now enter the website you want to block on your system.

Step 4: Then, click the Find Website IP button as shown below.

如何在 Windows 11 / 10 上使用防火墙阻止网站访问

Step 5: After retrieving the IP addresses of the website, select them and copy and paste them on notepad or any other editor tool for future reference.

如何在 Windows 11 / 10 上使用防火墙阻止网站访问

Step 6: After writing down the IP address, close the IPVOID tab on your browser.

Step 7: To open the Run dialog box, press the Windows R key on your keyboard.

Step 8: Type firewall.cpl in the Run box and press the Enter key to open the Windows Firewall window.

如何在 Windows 11 / 10 上使用防火墙阻止网站访问

Step 9: In the Windows Firewall window, click Advanced Settings on the left panel as shown below.

如何在 Windows 11 / 10 上使用防火墙阻止网站访问

Step 10: Under Windows Defender Firewall, right-click Outbound Rules and select New Rule## from the context menu #,As follows.

如何在 Windows 11 / 10 上使用防火墙阻止网站访问

Step 11: Select the

Customize radio button and click Next to continue as shown below.

如何在 Windows 11 / 10 上使用防火墙阻止网站访问

Step 12: In the next window, make sure the

All Programs radio button is selected and click Next to continue .

如何在 Windows 11 / 10 上使用防火墙阻止网站访问

Step 13: In the Protocols and Ports window, keep everything and click

Next to continue.

如何在 Windows 11 / 10 上使用防火墙阻止网站访问

Step 14: Select these IP addresses under Which remote IP addresses this rule applies to button as shown below.

Step 15: Next, click the

Add button to enter the IP address.

如何在 Windows 11 / 10 上使用防火墙阻止网站访问

Step 16: In the small IP address window, select the

This IP address or subnet radio button, and then in the text box below it Enter the IP address in the field as shown below.

Step 17: Once completed, click the "

OK" button.

如何在 Windows 11 / 10 上使用防火墙阻止网站访问

Step 18: If you want to enter multiple IP addresses, repeat the Add IP Address process.

Step 19: After entering all IP addresses, click

Next to continue.

如何在 Windows 11 / 10 上使用防火墙阻止网站访问

Step 20: Now, select the

Block connection option and click Next to continue.

如何在 Windows 11 / 10 上使用防火墙阻止网站访问

Step 21: In the next window, make sure

all three checkboxes (Domain, Private, and Public) are selected, then Click Next.

如何在 Windows 11 / 10 上使用防火墙阻止网站访问

Step 22: Finally, give your outbound rules a name so you can find them for disabling in the future.

Step 23: Finally, click the Complete button, as shown in the picture below.

如何在 Windows 11 / 10 上使用防火墙阻止网站访问

Step 24: Now if you try to access a website that is blocked by the firewall, you will see the following results on your browser.

如何在 Windows 11 / 10 上使用防火墙阻止网站访问

that's all. Here’s how you can block any website using Windows Firewall on your Windows 11 PC.

The above is the detailed content of How to block website access using firewall on Windows 11/10. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:yundongfang.com. If there is any infringement, please contact admin@php.cn delete