howto ban an ip address
You can ban IP address with firewall.
Most linux servers have iptables installed by default.
To block an IP access your server, use following command
iptables -A INPUT -s <IP> -j DROP
If you have software firewall like APF or CSF, use
apf -d <IP> csf -d <IP>