Hosts-BL

command module
v0.0.0-...-b8efebe Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 4, 2023 License: MIT Imports: 6 Imported by: 0

README

Say Thanks!

Hosts-BL

Simple tool to handle hosts file black lists that can remove comments, remove duplicates, compress to 9 domains per line, add IPv6 entries, as well as can convert black lists to multiple other black list formats compatible with other software.

Usage: hosts-bl [options...] <source> <destination>

Argument Description
-comments Don't remove comments
-compression <number> Number of domains per line, 1 to 9
-dupe Don't check for and remove duplicates
-f <format> Destination format:
-------------------------- adblock, dnsmasq, dualserver, fqdn,
-------------------------- hosts, ipv6, privoxy, rfqdn, rpz, unbound
-from_blackhole <IPv4> Black hole address in source
-i <file> Source file
-o <file> Destination file
-to_blackhole <IPv4> Black hole address in destination
-to_blackhole_v6 <IPv6> IPv6 Black hole address in destination

- can be used in place of <file> to designate standard input as the source and/or standard output as the destination. If standard input is used, standard output will be used by default if no destination file is given.

By default, dragging and dropping a hosts file over a hosts-bl executable will automatically pick out lines beginning with 0.0.0.0, check for and remove any duplicates, and compress it to 9 domains per line in standard hosts file format with 0.0.0.0 as the black hole address.

In addition to removing duplicates by default, formats which support wild cards will automatically have wild card entries added and all child subdomains will be pruned from the list.

More About ScriptTiger

For more ScriptTiger scripts and goodies, check out ScriptTiger's GitHub Pages website:
https://scripttiger.github.io/

Donate

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL