check CC_DENY option in csf firewall configuration file to block that particular country. Restart the firewall once modification is done

Click to expand...

I've blocked about 6, although reading between the lines CSF suggests only a small list, so I'm not sure i dare increase it much more.
My main question really was to determine id it stopped access to the admin side, but still allowed access to the http side.

It blocks any and all network traffic to your server from those IPs, and any traffic from your server toward those IPs.

If you have privileged services (like WHM on 2087) that only you need to access, it's much easier and more efficient to just whitelist your IP in csf.allow and remove port 2087 from the open TCP ports list.

Blocking countries to subvert abuse is only so effective. I tried the strategy for a long time when I was a forum admin seeing a ton of fake accounts. If I blocked RU, they'd sign up from CN. When I blocked CN, they signed up from proxies in the USA. The trick for me was just securing the signup form to resist bots a bit better. Any strategy to secure your data that doesn't involve blocking IP addresses is usually a better investment of your time.

You should virtually never use the ALLOW for country codes, it opens up your firewall entirely too much. Unless you are specifically denying spain IPs your site should be visible to them unless your hosting provider has blocked something in error.

You should also note that this will affect DNS so if you run a DNS server on your server you should probably note that they will get no DNS responses if they are in a blocked country showing inconsistencies across various DNS servers.