How to block IPs on Windows Server 2012

Open Windows Firewall with Advanced Security

Click Inbound Rules

Click New Rule…

Chose Custom

Choose default values on Program and “Protocol and Ports” windows.

Choose default on Profile

Give a name of this rule and Finish