[Dshield] IP Address --> Country Script
sama at snowplow.org
Wed Dec 17 14:51:29 GMT 2003
you can also do it as
whois 188.8.131.52 | grep -i "country:"
as the -i will force it to ignore case.
> You could try Bill Weinman's whois perl script from http://whois.bw.org. I
> was thinking of using this in an anti SPAM routine and The test results look
> good. combine it with grep and voila! e.g. whois 184.108.40.206 | grep
> "ountry:" returns Country: US. NB the grep "ountry:" is deliberate as
> Bill Weinmans's script return Country: or country depending on the neck of
> the woods being investigated.
More information about the list