From 963ef048db822908030a5c1eea27c12e69a5bb60 Mon Sep 17 00:00:00 2001 From: Tristan Date: Wed, 6 Sep 2023 12:56:24 +0200 Subject: adds building of blockV6.list --- buildAdBlocklistv6.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 buildAdBlocklistv6.sh diff --git a/buildAdBlocklistv6.sh b/buildAdBlocklistv6.sh new file mode 100755 index 0000000..aa62fb9 --- /dev/null +++ b/buildAdBlocklistv6.sh @@ -0,0 +1,13 @@ +#!/bin/bash +awk -F'[\t ]+' '{ + if (!match($0, /^[\t ]*(#|$)/)) { + if (NF>=2 && length($2)) { + host=$2 + } else { + host=$1 + } + if (!match(host, /^(localhost|local|localhost.localdomain|ip6-localnet|ip6-localhost$)$/)) { + print "::1 " host + } + } +}' adlists/* | sort > blockV6.list -- cgit v1.2.3