Restricting certain countries from joining my server?

Is there a way that I can restrict certain countries from joining my server?

http://forum.facepunch.com/showthread.php?t=1433362
http://forum.facepunch.com/showthread.php?t=1433422