Can You Block an IP Address?

Some websites use more than one IP address.

For example,Facebook has multiple IP addresses, so you’ll need to block them all.

Windows Defender Firewall in Windows Search

Disabling individual IP addresses may be helpful if Facebook isn’t working for you.

You may want to block an IP address to prevent yourself or other users from accessing specific websites.

You should also block malicious IP addresses to protect your system from hackers and bots.

Advanced Settings in Windows Defender Firewall

How Do I Block an IP Address From My Computer?

In Windows Search, typeWindows Firewalland selectWindows Defender Firewallto open it.

SelectInbound Rules, then selectNew Rule.

Inbound Rules and New Rule in Windows Defender Firewall

SelectCustom, then selectNext.

SelectNexton the next two screens to proceed.

UnderWhich remote IP addresses does this rule apply to, chooseThese IP Addressesand selectAdd.

Custom and Next in Windows Defender Firewall Rules

SelectThis IP address or subnet, enter theIP address, and selectOK.

Add as many IP addresses as you like, then selectNext.

SelectBlock the connection, then selectNext.

These IP Addresses and Add in Windows Defender Firewall Rules

double-check all the boxes underWhen Do These Rules Apply?are checked and selectNext.

Give a name and description for the blocked IP address, then selectFinish.

SelectOutbound Rules, then selectNew Ruleand repeat steps 5-11.

This IP address or subnet and IP address in Windows Defender Firewall Rules

Go to Outbound rules and do the same.

There are websites that can help youfind your IP address.

it’s possible for you to also use theipconfigcommand in Windows Command Prompt orifconfigcommand in the Mac Terminal.

Next in Windows Defender Firewall Rules

Tochange your IP addresson Windows, go toControl Panel>internet and Sharing Center>Change adapter prefs.

On Mac, go toSystem Preferences>online grid>Advanced>TCP/IP>Manually.

Block the connection and Next in Windows Defender Firewall Rules

When Do These Rules Apply? and checkboxes in Windows Defender Firewall Rules options

Enter a name and select Finish in Windows Defender Firewall

Outbound Rules and New Rule in Windows Firewall Defender

Delete in Windows Defender Firewall Inbound Rules