GithubHelp home page GithubHelp logo

backwardn / simple-blacklist Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fekle/simple-blacklist

0.0 1.0 0.0 4.7 MB

A simple tool to fetch and filter domain blacklists for use with tools like https://github.com/DNSCrypt/dnscrypt-proxy

License: Apache License 2.0

Go 100.00%

simple-blacklist's Introduction

simple-blacklist

A simple tool to fetch and filter domain blacklists for use with tools like https://github.com/DNSCrypt/dnscrypt-proxy

Usage

➜ simple-blacklist --help
A simple tool to fetch, parse and merge domain blacklists

Usage:
  simple-blacklist [flags]

Flags:
  -e, --exactPrefix string   prefix to prepend to non-wildcard entries
  -h, --help                 help for simple-blacklist
  -o, --output string        path to write final blacklist to
  -u, --url strings          comma-separated list of urls

Examples

# single list
➜ simple-blacklist -o /tmp/blacklist.txt -u 'https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts'
+------------------------------------------------------------------+---------+--------+
|                              SOURCE                              | DOMAINS | UNIQUE |
+------------------------------------------------------------------+---------+--------+
| https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts |   39711 |  39710 |
|                                                                  |
| /tmp/blacklist.txt                                               |   39711 |  39710 |
+------------------------------------------------------------------+---------+--------+

# multiple lists in single flags
➜ simple-blacklist -o /tmp/blacklist.txt -u 'https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts,https://hosts-file.net/ad_servers.txt'

+------------------------------------------------------------------+---------+--------+
|                              SOURCE                              | DOMAINS | UNIQUE |
+------------------------------------------------------------------+---------+--------+
| https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts |   39711 |  39710 |
| https://hosts-file.net/ad_servers.txt                            |   45736 |  45081 |
|                                                                  |
| /tmp/blacklist.txt                                               |   85447 |  78924 |
+------------------------------------------------------------------+---------+--------+

# multi list in single and repeated flag
➜ simple-blacklist -o /tmp/blacklist.txt \
  -u 'https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts' \
  -u 'https://mirror1.malwaredomains.com/files/justdomains' \
  -u 'http://sysctl.org/cameleon/hosts' \
  -u 'https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt,https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt' \
  -u 'https://hosts-file.net/ad_servers.txt'
+------------------------------------------------------------------+---------+--------+
|                              SOURCE                              | DOMAINS | UNIQUE |
+------------------------------------------------------------------+---------+--------+
| https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt |      34 |     34 |
| http://sysctl.org/cameleon/hosts                                 |   20567 |  20138 |
| https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts |   39711 |  39710 |
| https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt       |    2703 |   2703 |
| https://mirror1.malwaredomains.com/files/justdomains             |   26863 |  26863 |
| https://hosts-file.net/ad_servers.txt                            |   45736 |  45081 |
|                                                                  |
| /tmp/blacklist.txt                                               |  135614 | 113014 |
+------------------------------------------------------------------+---------+--------+

simple-blacklist's People

Contributors

fekle 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.