Recently I was asked to make a site visible to visitors of only a certain country. There's several ways to do this, the easiest being to modify the .htaccess file for your site. I found a site which allows you to generate a list of IP ranges by country. From there, it is a simple matter of modifying or creating an .htaccess file to place in your site's root. To deny access from a certain IP range:
order allow,deny deny from 220.127.116.11/19 deny from .... allow from all
and to include from only a certain IP range:
order deny,allow deny from all allow from 18.104.22.168/19 allow from ....