I am getting a lot of spam visitors (most probably faked) to my websites from a certain country (Ukraine) and I want to block this country because they are wasting my bandwidth for nothing. Is this an easy task with htaccess or something like that? Awstats can list visitors based on their country, that makes me think that it is possible to identify a visitor's country and then blocking it should be easy.

I wish we didn't have such webmasters in the world but unfortunately we have and I fear that we will always have.