Forum Moderators: phranque
You can use mod_access or mod_rewrite to forbid them from accessing content, but the requests will still show in your logs (and stats) with a 403-Forbidden response.
Blocking by IP address is simple. Blocking by 'country' is not at all straightforward, because IP addresses are not assigned by country, and because the assignments change constantly. Therefore, you'd need to sign up for a GeoIP service, and then use that to block access in httpd.conf or .htaccess (Read a lot on this subject before paying for it -- there are requirements for GeoIP that cannot be met on many inexpensive server accounts.)
Jim