Most of the time, we need to look to block individual IP addresses on the server for a reason. We already covered Windows Firewall and Advanced Security in the previous article to block/allow specific Ports/Programs; we can block individual IP addresses through the same option.
In this article, you will learn about: How to block specific IP address in Windows?
1. Log in to Windows Server → Start → Administrative Tools → Windows Firewall with Advanced Security.
2. Navigate to Windows Firewall with Advanced Security → Inbound Rules.
3. Here, we need to add new Firewall Rule → Click on New Rule.
4. In Rule Tpe → Select “Custom“
5. In Program, select “All Program” → Click on Next.
6. In Protocol and Scope, keep everything default → Click on Next.
7. In Scope → Which remote IP addresses does this rule apply to? → Select These IP Address → Click on Add.
8. Enter the IP address or Range of IP address which you would like to block → Click on Ok.
9. Now in Scope, click on Next.
10. In the Action tab, select “Block the connection” → Next.
11. In the Profile tab, you need to select the below options and click “Next“,
Domain: This applies to when the computer connected to the corporate domain.
Private: This applies to when the computer connected to the private network.
Public: This applies to when the computer connected to the public network.
12. In the Name section, you need to specify Name for your Custom Rule → Finish.