Try using a foreign IP database and block on that.  This company, 
http://www.maxmind.com/, provides a relatively cheap text DB of all foreign and domestic ips and country codes of which you can redirect / block based on that.  They also provide source code.