How to block an IP address from accessing my Virtual Private Server?

April 17, 2015     0 comments

First you have to login to your VPS as root via SSH. Then execute the following command in order to block an IP address from accessing your server:

iptables -I INPUT -s <IP_ADDRESS> -j DROP

Note that you will have to do this each time your firewall is restarted.

How helpful was this article to you?

FraudLabs Pro Secured Seal