To block an IP address from accessing your VPS using IP tables follow these steps:
1. Log into your VPS using an SSH client such as Putty
2. Type the following command, replacing xx.xx.xx.xx with the actual IP address you wish to block:
iptables -A INPUT -s xx.xx.xx.xx -j DROP
3. To save the iptables settings, enter the following command