Friday, December 9, 2022

How to Block any IP Address on Windows and Mac

- Advertisement -


What to Know

  • In Windows Defender Firewall: Advanced Settings > Inbound Rules > New Rule > Custom. Repeat for Outbound Rules.
  • On Mac: Use Terminal to create a rule within the PacketFilter Configuration file or block the IP tackle on your community through your router.
  • Block malicious IP addresses to defend your pc from hackers. To block some web sites, chances are you’ll want to block a number of IP addresses.
- Advertisement -

This article explains how to block an IP tackle on a Windows or Mac pc.

- Advertisement -


Can You Block an IP Address?

- Advertisement -

You can block IP addresses on your pc in order for you to deny entry to particular web sites and providers. Some web sites use a couple of IP tackle. For instance, Facebook has a number of IP addresses, so you will want to block all of them. Disabling particular person IP addresses could also be useful if Facebook is not working for you.

You might want to block an IP tackle to stop your self or different customers from accessing particular web sites. You also needs to block malicious IP addresses to defend your pc from hackers and bots.

If you need to block an IP tackle throughout your total community, you may block web sites on your router and arrange parental controls in your community.


How Do I Block an IP Address From My Computer?

You can block an IP tackle on a Windows PC utilizing Windows Firewall:

  1. Find the IP tackle of an internet site you need to block.

  2. In Windows Search, sort Windows Firewall and choose Windows Defender Firewall to open it.

    Windows Defender Firewall in Windows Search

  3. Select Advanced Settings.

    Advanced Settings in Windows Defender Firewall

  4. Select Inbound Rules, then choose New Rule.

    Inbound Rules and New Rule in Windows Defender Firewall

  5. Select Custom, then choose Next. Select Next on the next two screens to proceed.

    Custom and Next in Windows Defender Firewall Rules

  6. Under Which distant IP addresses does this rule apply to, select These IP Addresses and choose Add.

    These IP Addresses and Add in Windows Defender Firewall Rules

  7. Select This IP tackle or subnet, enter the IP tackle, and then choose OK.

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

  8. Add as many IP addresses as you want, then choose Next.

    Next in Windows Defender Firewall Rules

  9. Select Block the connection, then choose Next.

    Block the connection and Next in Windows Defender Firewall Rules

  10. Make certain all of the packing containers below When Do These Rules Apply? are checked and choose Next.

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

  11. Give a reputation and description for the blocked IP tackle, then choose Finish.

    Facebook and Finish in Windows Defender Firewall Rules

  12. Select Outbound Rules, then choose New Rule and repeat steps 5-11.

    Outbound Rules and New Rule in Windows Firewall Defender

  13. To unblock the IP tackle, go to Inbound Rules, right-click the title of the rule you created and choose Delete. Go to Outbound guidelines and do the identical.

    Delete in Windows Defender Firewall Inbound Rules

How to Block an IP Address on Mac

The easiest method to block IP addresses on a Mac is to block them in your total community through your router. If you need to block an IP tackle on simply your Mac, use the Terminal to create a brand new rule in your PacketFilter Configuration file:

  1. Open Terminal and enter the next to open the PacketFilter Configuration file:

    $ sudo vim /and so on/pf.conf

    class=”ql-syntax”>

  2. Enter the next, changing IP tackle with the tackle you need to block (for instance, 69.63.176.13):

    block drop from any to IP ADDRESS

    class=”ql-syntax”>

    To block a variety of addresses, substitute any with an IP tackle. For instance:

    block drop from 66.220.144.0 to 66.220.159.255

    class=”ql-syntax”>

  3. Enter the next to allow the packet filter and load the rule you created:

    $ pfctl -e -f /and so on/pf.conf

    class=”ql-syntax”>

  4. The IP tackle is blocked. To disable the rule, enter this command:

    $ pfctl -d

    class=”ql-syntax”>

Was this web page useful?




Source link

- Advertisement -

More articles

- Advertisement -

Latest article