John Rudd wrote: > I know there used to be a nice convenient set of RBL's based upon > countries, such that you could easily track an IP address back to > which country it came from. But, IIRC, that RBL went under. > > 1) Does anyone know of a convenient command line tool (perl library > being ideal) that lets you give it an IP address, and it tells you the > country and/or continent (and that's it)? > > 2) similarly, does anyone know of a command line tool where you can > give it a country and/or continent, and it will generate concise IP > addresses ranges (like A.B.C.D-E.F.G.H) that have been allocated to > that country/continent? (and by "concise", I mean compacted into as > few range statements as possible, to minimize the number of lines) > > (it's only slightly OT, because I plan to use this for fighting some > internal spam problems we've been having; but it wouldn't be part of > our spam assassin infrastructure)
You might start your search here: http://software77.net/cgi-bin/ip-country/geo-ip.pl Bill