Coder Social home page Coder Social logo

ipranges's Introduction

IP ranges

Lists IP ranges of misc internet services. Currently, updated only in manual mode.

Services Downloads
Google google.txt,ย google-cloud.txt
Mail.Ru and Odnoklassniki mail.ru.txt
Russian Government ru-government.txt
Rutube rutube.txt
VKontakte vkontakte.txt
Yandex yandex.txt

Latest update: 2024-05-11


Example of manual getting data from BGP.HE.NET
{
  const IPs = [];
  document.querySelectorAll('#table_prefixes4 tr > *:first-child, #table_prefixes6 tr > *:first-child').forEach(function(el){
    const val = el.innerText.replace(/^\s+/, '').replace(/\s+$/, '');
    if (/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(?:\/\d{1,2})?$/.test(val) // IPv4
      || /^[a-fA-F\d:]{2,}(?:\/\d{1,3})?$/.test(val) && val.replace(/[^:]/g, '').length > 1 // IPv6
    ) {
      IPs.push(val);
    } else {
      console.log('Wrong value: ' + val);
    }
  });
  if (IPs.length) {
    const w = window.open();
    w.document.body.innerHTML = '<pre></pre>';
    w.document.querySelector('pre').textContent = IPs.join('\n');
  } else {
    console.log('IP ranges not found!');
  }
}

ipranges's People

Contributors

vattik avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

chelaxian

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.