[Dshield] IP Address --> Country Script

Samantha Fetter sama at snowplow.org
Wed Dec 17 14:51:29 GMT 2003

you can also do it as
whois | grep -i "country:"
as the -i will force it to ignore case.


> Alan,
> 	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 | 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.
> regards,
> Brian

More information about the list mailing list