What platform you are using and what are those spam traffic?
Well, if you have access to WHM/Cpanel, and if you can install CSF Firefwall, you can in fact, use the firewall to specifically block IP or the entire IP block via the firewall.
CSF also allows you to block access from specific country as well - but you will need to look through their configuration file for that setting - you can block traffic from specific country by entering the 2 letter country code.