If you are brave and insist on this approach, you will need to download an exhaustive list of country IP net blocks.

Using a reputable search engine to look for ip net blocks by country will return a pile of pages that will contain something usable. For instance, Taiwan (useful to know if you want to block spam) has more than 56000 net blocks. Many of these are of course contiguous, so you would have to process them to coalesce neighboring blocks.

See http://www.idefense.com/Intell/CI022702.html for an example. Unfortunately their data are stored in Excel files, but I'm sure if you look you'll be able to find someone who has zipped text on offer.

A sample from the above source gives something like this:

202.129.193.0 - 202.129.193.31 (CHEI-BING) Chei-Bing Co. Ltd.; i +nternet play game station; No3-9,Whaih-Ted st.,Pei-Toa,Taipei,TW,ROC; + TW 202.129.193.128 - 202.129.193.191 (DREAM-ISLAND) Dream island IN +TERNET COMPANY; Internet Play Game Station; No.419.WenHung Rd,.Taipei + Taiwan.R.O.C; TW 202.129.193.192 - 202.129.193.255 (KUEN-JIING) E-Cuntury Enterpr +ise Network Life House; Computer Sales and Game Zone Service Provider + and Coffee Shope; 1F, No.131-20 ,Sec.2,Keelung Rd.,Taipei; Taiwan,R. +O.C.; TW 202.129.193.32 - 202.129.193.63 (MAINLAND) MAINLAND Computer Com +pany; Internet Play Game Stateion Service; 1F,No60,Bai 3 Rd. street,K +eelung,Taiwan,R.O.C; TW 202.129.193.64 - 202.129.193.127 (GAME-HOUSE) Game-House interne +t information service and coffee shop; internet play game station; Su +ite B1,No.261,sec.2,Jincheng RD.,Tucheng City,Taipei,; Taiwan,R.O.C.; + TW 202.129.194.0 - 202.129.194.127 (INTERNET-PIONEER) INTERNET-PION +EER Co. Ltd.; Internet Play Game Stateion Service; 1F,No86-88,Sec 2,S +hpai Rd.,Taipei; Taiwan,R.O.C.; TW

Note that the above information is current as of February 2002, i.e., nearly one year out of date. It would be a non-trivial task to keep this up to date.


print@_{sort keys %_},$/if%_=split//,'= & *a?b:e\f/h^h!j+n,o@o;r$s-t%t#u'

In reply to Re: IP Origination (find good IP net block maps) by grinder
in thread IP Origination by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.