How to block country IP?

Is there a quick way to block country IPs? I want to block China and most of the countries around there as they are responsible for 99% of the spam posted on my sites.

With cPanel I did this through CSF (Configsecurity firewall) but I haven’t installed that on Virtualmin (it’s compatible with webmin) hence wondered if there was a way to do it directly - perhaps via the firewall? Any tips?

Cheers.