All Projects → webtorrent → load-ip-set

webtorrent / load-ip-set

Licence: MIT license
download and parse ip-set (blocklist) files

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to load-ip-set

Filterlist-for-AdGuard-or-PiHole
A very aggressive filter-list that consolidates over 370 lists for use in AdGuard Home, Pi-Hole or similar.
Stars: ✭ 349 (+1736.84%)
Mutual labels:  blocklist
rails
Official Rails Library for IPinfo API (IP geolocation and other types of IP data)
Stars: ✭ 16 (-15.79%)
Mutual labels:  ip-address
ipify.sh
Unofficial client library for ipify: a simple IP address API
Stars: ✭ 30 (+57.89%)
Mutual labels:  ip-address
UnboundBL
🛑 DNSBL (adblock) on OPNsense with UnboundBL & Unbound DNS
Stars: ✭ 63 (+231.58%)
Mutual labels:  blocklist
Wireguard-DNScrypt-VPN-Server
Fast setup wireguard server script, with dnscrypt and adblocking, maleware blocking, more blocking if you need. Use case eg. always on vpn and adblocking on ios or android, and be more secured in unknown networks.
Stars: ✭ 48 (+152.63%)
Mutual labels:  blocklist
accomplist
ACCOMPLIST - List Compiler
Stars: ✭ 51 (+168.42%)
Mutual labels:  blocklist
PiHole
This contains an ever-growing list of domains to be blocked using the Pi-Hole ad-blocker.
Stars: ✭ 56 (+194.74%)
Mutual labels:  blocklist
blackip
IP Blocklist for Ipset / Squid-Cache
Stars: ✭ 81 (+326.32%)
Mutual labels:  blocklist
go
Go library for IPinfo API (IP geolocation and other types of IP data)
Stars: ✭ 76 (+300%)
Mutual labels:  ip-address
draft-ip-address-privacy
Internet-Draft on IP address privacy
Stars: ✭ 15 (-21.05%)
Mutual labels:  ip-address
no-amazon
Completely block Amazon and its services
Stars: ✭ 42 (+121.05%)
Mutual labels:  blocklist
cli
Official Command Line Interface for the IPinfo API (IP geolocation and other types of IP data)
Stars: ✭ 1,279 (+6631.58%)
Mutual labels:  ip-address
Google-Blocklist
适用于uBlacklist的订阅列表,拯救Google等搜索引擎的搜索体验(过滤内容农场、机器翻译站、垃圾站点)
Stars: ✭ 70 (+268.42%)
Mutual labels:  blocklist
smashblock
📡 🛡️A self-updating extensive blocklist filter for AdGaurd. Be sure to 🌟 this repository for updates!
Stars: ✭ 66 (+247.37%)
Mutual labels:  blocklist
php-ip-anonymizer
IP address anonymizer library for PHP
Stars: ✭ 55 (+189.47%)
Mutual labels:  ip-address
node-ip2region
IP/IPv6 to region on Node.js (IP/IPv6 地址到区域运营商)
Stars: ✭ 95 (+400%)
Mutual labels:  ip-address
alfred-ip-address-workflow
Alfred 5 workflow for getting your local and external IP addresses.
Stars: ✭ 163 (+757.89%)
Mutual labels:  ip-address
ip2location-nginx
Nginx module that allows user to lookup for geolocation information using IP2Location database.
Stars: ✭ 33 (+73.68%)
Mutual labels:  ip-address
PHP-IPAddress
IP Address utility classes for PHP
Stars: ✭ 63 (+231.58%)
Mutual labels:  ip-address
Vytal
Browser extension to spoof timezone, geolocation, locale and user agent.
Stars: ✭ 1,449 (+7526.32%)
Mutual labels:  ip-address

load-ip-set ci npm downloads javascript style guide

download and parse ip-set (blocklist) files

This module is used by WebTorrent!

Install

npm install load-ip-set

Usage

Given one of the following:

  • http/https url (gzip, deflate, or no compression)
  • filesystem path (gzip, or no compression)
  • array of ip addresses or { start: '1.2.3.0', end: '1.2.3.255' } ip ranges

this module loads the ip set (downloading from the network, if necessary) and returns an ip-set object. An ip-set is just a mutable set data structure optimized for use with IPv4 and IPv6 addresses.

const loadIPSet = require('load-ip-set')
loadIPSet('http://example.com/list.txt', (err, ipSet) => {
  if (err) throw err
  ipSet.contains('1.2.3.4') //=> true
  ipSet.contains('2.2.2.2') //=> false
})

The second argument can be an optional opts object which will be passed to simple-get and the node.js core http.request method. This is useful for setting the user agent, for example.

loadIPSet('http://example.com/list.txt', {
  headers: {
    'user-agent': 'WebTorrent (http://webtorrent.io)'
  }
}, (err, ipSet) => {

})

License

MIT. Copyright (c) Feross Aboukhadijeh and WebTorrent, LLC.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].