There are many reasons why you may want to block visitors from a certain country.It could be that they are just wasting your bandwidth or for security reasons.People may want to block geographical regions from accessing their websites and blogs also because of spamming and attacks but mostly because the traffic from some countries is of no benefit to your website and these visitors are just wasting your bandwidth and making your site load slower for your real target country.
Blocking visitors from regions that are useless to your website can be easily done using the htaccess file but you will need to know the ip range that the visitors are arriving on your site from in order to deny them.To get the ip address of all the countries that you may wish to block from your server sounds like much work ,But on this site you can block a country, block by ip address, deny access by country. You will select which countries you wish to block and they will auto generate the code for you and all you need to do is paste the code into your htaccess file .
This will give unwanted visitors an ErrorDocument 403 Forbidden to keep your website traffic only from the countries you are targeting saving bandwidth or reducing spam.
how does this work in blogger/blogspot? Where do I paste this??
Sorry Blogger As far as I know You can’t unless you are using FTP publishing which will soon no longer be supported.To put this restriction in place you need access to the .htaccess file This is one of the reasons that many use a self hosted WordPress allthough blogger looks good on the outside it is still very restricted.
My site only needs traffic from business owners in my local area. International traffic was causing our bandwidth costs using this small trick we were able to restrict traffic to only Ireland.