Windows Firewall provides you with a simple method to block any website URL or Ip. Here’re the exact steps you need to follow to do so.
As with every other operating-system, Windows 10 doesn’t block any website. So long as you have a browser, you can access any web site you would like without any restrictions whatsoever. However, there can be instances when you need to block a particular website, URL, or Ip. For instance, if you want to block a particular social networking site or some such, you should use the built-in Windows Firewall to block it. You don’t need to use any third-party blocking software. This is particularly useful for family PC where it’s quite common to share the pc with children.
So, without further ado, allow me to demonstrate the steps to block an internet site URL or an IP address in Windows Firewall.
Steps to bar Website or IP Address with Windows Firewall
To bar an internet site with Windows Firewall, you need to know its IP address(s). This is because Windows requires an IP address and doesn’t directly support the URLs. If you curently have an IP address, stick to the steps from the second section.
Discover the Ip of the Website
The first thing we have to do is find the Ip of the website. Thankfully, Windows has a built-in command called NSLookup that provides the IP address associated with a website. You will find the steps you need to follow.
First, open the Command Prompt window. Searching for this within the Start menu.
After opening the CMD window, execute the below command. Replace “example.com” with the actual website address you want to block.
nslookup example.com
You will see the IP addresses alongside “Addresses”.
Depending on the website, the command might show multiple IP addresses. In my case, I got 2 IP addresses for example.com.
To make things easier, I recommend you make a note of those IP addresses inside a text file.
Once you have the IP addresses, follow the next section to bar the IP address in Windows Firewall.
Block Ip in Windows Firewall
Open the beginning menu.
Search and open “Windows Defender Firewall” in the Start menu.
Click the “Advanced Settings” link on the left panel.
Right-click on the “Outbound Rules” option around the left panel.
Choose the “New Rules” option.
Pick the “Custom” option and click “Next”.
Choose the “All Programs” option and click on “Next”.
Select “Any” in the “Protocol type” dropdown menu.
Click “Next” to continue.
Choose the “These IP addresses” option under the “Remote IP Addresses” section.
Click on the “Add” button underneath the same section.
Select the “This Ip or subnet” option.
Type the Ip in the field and click on “Ok”.
If you have multiple IP addresses, follow steps 11 through 13 to add them. In my case, I added two IP addresses.
After adding the IP addresses, click “Next” to carry on.
Here, choose the “Block the connection” option and click on “Next”.
Now, select all of the checkboxes and click “Next”.
Name the rule nevertheless, you want.
Click “Finish”.
You can see the newly added rule in the primary window.
From now on, Windows Firewall will block the IP Addresses and also the website in Windows 10 based on the configured rule. If someone attempts to access the blocked website or IP addresses, they’ll be greeted with “Your Internet access is blocked” or “Windows Firewall is blocking the IP address/website” message.
If you wish to unblock the web site or Ip in Windows Firewall, follow steps 1 through 3 in section two, find the specific rule, right-click on it, and select the “Disable Rule” option. If needed, you can also delete the rule by selecting the “Delete” option.
That’s all.