A silly thing that shelled out to 'whois' and parsed the output looking for information about country of origin. Slow, inaccurate, buggy, and misguided. What you probably really want is some sort of geolocation tool, like http://www.maxmind.com/en/geolocation_landing.