[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 207.46.134.221 | grep -i "country:"
as the -i will force it to ignore case.

Cheers,
Samantha

> 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 207.46.134.221 | 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