You can use IP Tables or a reject route.
Reject route ex:
/sbin/route add -host 200.x.x.x reject
list routes: route -n
remove block: route del 192.168.0.123 reject
or, you can use iptables to ban a range of IPs from your server, like so:
iptables -I INPUT -s 18.104.22.168/22.214.171.124 -j DROP