Forum Moderators: phranque
Welcome to WebmasterWorld [webmasterworld.com]!
.htaccess will do the job, but...
IP addresses are not assigned strictly by country, and you may have to cover many different ranges and sub-ranges if you wish to block only one country. This may entail several dozen lines of mod_access or mod_rewrite code.
There are alternatives, but some are more appropriate for one kind of problem than others.
Jim