perl script to generate ip address lists by country

Discussion in 'other security issues & news' started by darnok, Dec 17, 2009.

Thread Status:
Not open for further replies.
  1. darnok

    darnok Registered Member

    Dec 17, 2009
    There were few threads on this forum regarding this subject, I would like to share my work in this matter with you. There are free databases of IP matching to country, for example:
    IP-to-Country :
    MaxMind GeoLite Country :

    Yesterday I committed a perl script which uses above databases to generate ip address list of chosen country in PeerGuardian format (ranges) - format can be easily changed. The generated list is a merge of lists from two databases because, there are differences between them, in my opinion they nicely complete each other. To get script to work you need to download ip databases from above sites in csv format and place them in script dir.

    Well, I am opened for any criticism, suggestions or questions. I hope you will find this script useful.


    Attached Files:

    Last edited: Dec 18, 2009
Thread Status:
Not open for further replies.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.