Allow or Block IP Addresses

For example, run the following command on your VPS or Dedicated Server via SSH:

ALLOW

iptables -A INPUT -s IP-ADDRESS -j ACCEPT

If using CSF:

csf -a IP-ADDRESS

DENY

iptables -A INPUT -s IP-ADDRESS -j DROP

If using CSF:

csf -d IP-ADDRESS

Note: replace IP-ADDRESS with the actual IP Address you want to block.

Author: Christopher Smith

I managed websites.

Leave a Reply

Your email address will not be published. Required fields are marked *