devi usare un database tipo ip2country http://www.ip2country.com/

dai un'occhiata qui: http://darcas.net/index.php/2007/07/...fica-di-un-ip/