First you have to login to your Dedicated server 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.
You need help managing your dedicated server? We got it! SiteGround experts not only write helpful articles, but also manage the servers for our clients so they don’t have to read articles like this one.Learn more.