How to Block an IP Address on Windows 11?

How to Block an IP Address on Windows 11?

The very first question that may appear on your mind, is why in the world you have to block IP addresses on Windows 11 or macOS. There could be a lot of reasons, suppose you may want to block an IP address to stop others and yourself from accessing a specific website. You can also block malicious IP addresses to protect your computer from hackers and bots online.

The question is can you really block IP addresses on your computer or no?

To give you a crystal clear answer, Yes, you can block IP addresses on your computer to access certain websites. If those websites have only a single IP address, then after blocking you won’t have any issue. However suppose if you want to block Facebook, then blocking Facebook could be a bit tricky, why because Facebook is using multiple IP addresses. So in simple words, you will have to block all of those IP addresses of Facebook. Also if disabling a simple IP address has blocked you from accessing that site, then it is very good for you. That time you don’t have to block other IP addresses or Facebook.

Steps to Block an IP Address on Windows 11

The simplest and yet the cleanest method that you can use to block an IP address on windows 11, window 10, and other versions of Windows, is the firewall.

Step #1. Find the IP address of the side that you want to block.

Suppose I want to block, the very first step would be that I have to find this website’s IP address. To find the IP address on windows 11, simply open CMD, and then inside the same day type pink

After running the command, you’ll see a reply from the IP address, inside the parenthesis you will see the IP address of that website. In my case, the IP Address of is

Find the IP address of a site

Step #2. Open the windows defender firewall.

Click on the search icon at the taskbar, and search for Windows defender firewall, after appearing simply open it.

Open windows defender firewall

On the Left Panel, click on Advanced Settings.

Block an IP Address

Open Advanced Settings of Firewall.jpg

Click on the Inbound rules then click the new rule.

Block an IP Address

Create New Inbound Rule.jpg

Apply the following steps next.

  1. On the Rule Type window, click custom and click next.
  2. Click Next on the Programs Page too.
  3. On the Next page which is the protocol and page, also click next.

Click on the Images to Zoom in.

Step #3. This is the step where we are going to insert the IP address to block it on the computer. First Click  on the “this rule is applied to These IP Address”, then click on Add, and insert the IP Address that you want to Block.

Block an IP Address

Insert Your IP Address

Once you added the IP address, simply click next.
Block an IP Address


Here you have to configure the action regarding the mentioned IP address, you have to simply select block which is the last option.
Block an IP Address

Block the connection

Here you have to specify, to block the mentioned IP address for which network, simply select all of them and then click Next.
Block an IP Address

Specify the Network.jpg

Give a description of the IP address that you have just blocked and then click next.
Block an IP Address


And now you can see that the rule has been set up inside the firewall the measured IP address is simply blocked. If you want to basically reverse it simply delete the rule.
Block an IP Address

Block Rule


This is how you can block an IP address on windows 11 using a firewall. I hope this article has been helpful to you and let me know your thoughts according to this post in the comment section.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.