Git Product home page Git Product logo

rir-ip's Introduction

ipverse-rir-ip

Drop-in replacement for the network lists previously available at ipverse.net based on Internet number resource usage data published by the Regional Internet Registries (RIR). The data is organized by country code (ISO 3166).

This repository is updated daily (if the underlying data changes).

Update notes

  • 2022-12-18: Fixed prefixes for some delegated networks as reported by RF3, see this thread for details

How to use

To download the delegated IPv4 networks for Switzerland, try:
$ curl https://raw.githubusercontent.com/ipverse/rir-ip/master/country/ch/ipv4-aggregated.txt

To download the delegated IPv6 networks for Switzerland, try:
$ curl https://raw.githubusercontent.com/ipverse/rir-ip/master/country/ch/ipv6-aggregated.txt

The data (IPv4 + IPv6 combined) is available in JSON format as well:
$ curl https://raw.githubusercontent.com/ipverse/rir-ip/master/country/ch/aggregated.json

The resulting JSON will look similar to this:

{
  "country": "Switzerland",
  "country-code": "CH",
  "delegation-status": [
    "allocated",
    "assigned"
  ],
  "mode": "aggregated",
  "subnets": {
    "ipv4": [
      "43.254.56.0/22",
      "45.115.72.0/22",
      "59.153.132.0/22",
    ],
    "ipv6": [
      "2001:df0:840::/48",
      "2001:df7:f980::/48",
      "2401:4b80::/32",
    ]
  }
}

Want moar IP addresses?

Instead of carpet banning an entire geographic region, it might be more effective to just ban specific internet providers based on their autonomous system number (ASN). Check out the ipverse-asn-ip repository for more information.

Migrating from ipverse.net?

While all download URLs pointing to ipverse.net are being redirected to the corresponding file in this Github repository, you may choose to directly download the data from the new location. Here's how to change the download-URL:

Old URL:
http://ipverse.net/ipblocks/data/countries/ch.zone
http://ipverse.net/ipblocks/data/countries/ch-ipv6.zone

New URL:
https://raw.githubusercontent.com/ipverse/rir-ip/master/country/ch/ipv4-aggregated.txt
https://raw.githubusercontent.com/ipverse/rir-ip/master/country/ch/ipv6-aggregated.txt

rir-ip's People

Contributors

trick77 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.