v0.7.1 · updated · GitHub

blocklist

Manage 8 threat-intel feeds behind guard. It never changes firewall rules; refresh writes its cache and init writes blocklist configuration.

Synopsis

caddy-analyze blocklist <action> [flags]
# actions: refresh | list | config | init

Flags

FlagDefaultDescription
--cache-dir~/.cache/caddy-analyzer/blocklistsCache directory
--no-default-blocklistsfalseDisable 8 defaults (use with --blocklist-config for custom-only)
--blocklist-configPath to JSON with extra sources [{"name","url","format"}]
--blocklist-removeNames to remove (comma-separated)
-f, --formattabletable or json for list/config

Default feeds

NameFormat
Spamhaus DROP v4/v6JSON Lines
FireHOL level 1 / 2netset
CINS Armyplain
Tor exit nodesplain
Emerging Threatsplain
AbuseIPDB mirrorplain

Minimal example

read-only

caddy-analyze blocklist refresh
caddy-analyze blocklist list

Advanced example

Custom feeds + JSON output; init persists settings to configuration.

caddy-analyze blocklist config -f json | jq
# add custom + remove one default
caddy-analyze blocklist --blocklist-config my.json --blocklist-remove tor-exit-nodes list
# persist so guard picks it up without CLI flags (see Configuration)
caddy-analyze blocklist --no-default-blocklists --blocklist-config my.json init