Using Windows Firewall to block a specific IP on Windows 10
Open Windows Firewall with Advanced Security by running wf.msc
. On the left, select Inbound Rules, then under the Action menu, choose New Rule.
- On the Rule Type page, choose Custom.
- On Program, choose "All programs."
- On Protocol and Ports, leave the default of Any.
- On Scope, select "These IP addresses" in the remote addresses section and add the problematic IP address in the Add dialog.
- On Action, choose "Block the connection."
- On Profile, leave the defaults of everything checked.
- Finally, on Name, give the rule a name and optionally a description.