Blocklist management tool.
go install github.com/loozhengyuan/blt/cmd/blt@latest
$ blt -h
Blocklist management tool.
Usage:
blt [command]
Available Commands:
build Builds blocklist according to a spec file
help Help about any command
version Prints the current version information
Flags:
-h, --help help for blt
Use "blt [command] --help" for more information about a command.
export:
destinations:
- path: simple.txt
customTemplate: |
# DNS Blocklist - Simple Format
#
# Generated using the blt tool.
# https://github.com/loozhengyuan/blt
{{ range .Items -}}
{{ . }}
{{ end -}}
export:
destinations:
- path: hosts.txt
customTemplate: |
# DNS Blocklist - HOSTS Format
#
# Generated using the blt tool.
# https://github.com/loozhengyuan/blt
{{ range .Items -}}
127.0.0.1 {{ . }}
::1 {{ . }}
{{ end -}}
export:
destinations:
- path: dnsmasq.txt
customTemplate: |
# DNS Blocklist - DNSMASQ Format
#
# Generated using the blt tool.
# https://github.com/loozhengyuan/blt
{{ range .Items -}}
address=/{{ . }}/#
{{ end -}}
export:
destinations:
- path: adblockplus.txt
customTemplate: |
! DNS Blocklist - AdBlock Plus Format
!
! Generated using the blt tool.
! https://github.com/loozhengyuan/blt
{{ range .Items -}}
||{{ . }}^
{{ end -}}