Skip to content

vattik/ipranges

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IP ranges

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

Services Downloads
Google google.txtgoogle-cloud.txt
Mail.Ru and Odnoklassniki mail.ru.txt
Russian Government ru-government.txt
Rutube rutube.txt
Valve Corporation and Steam valve.txt
VKontakte vkontakte.txt
Yandex yandex.txt

Latest update: 2025-01-01


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!');
  }
}

About

Lists IP ranges of misc internet services.

Topics

Resources

Stars

Watchers

Forks

Languages