Open HellboyPI opened 5 years ago
Hi,
Thanks for this - I didn't know this repo existed.
I may try to think of a way to include this, but will probably leave it disabled by default as it would appear that the generator code is not public, so I'm unable to confirm that they are accommodating for filter list exceptions etc.
I'll have a think about how I might include this, as well as maybe a better way to choose which lists to download.
On Fri, 31 May 2019, 09:48 HellboyPI, notifications@github.com wrote:
Hello! The github user Notracking https://github.com/notracking/hosts-blocklists/ also created his domains only blocklist https://raw.githubusercontent.com/notracking/hosts-blocklists/master/domains.txt to make use of dnsmasq's wildcard blocking. His blocklist would be a good addititon to your lists sources.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mmotti/pihole-filter-lists/issues/3?email_source=notifications&email_token=AIPTGBU5RPRYSYAMA4KM463PYDQ7NA5CNFSM4HRWPQEKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GW46D3Q, or mute the thread https://github.com/notifications/unsubscribe-auth/AIPTGBTZL5R7D7LLBISN73LPYDQ7NANCNFSM4HRWPQEA .
Solution (in same structure as written as in issue #5):
`# Wildcard domain blocklist ophalen, verwerken en plaatsen in /etc/pihole directory httpCode=$(curl -s -L --show-error https://raw.githubusercontent.com/notracking/hosts-blocklists/master/domains.txt -w "%{http_code}" -o $domains1.tmp 2> /dev/null)
if [ ${httpCode} = "200" ]; then if [ ! -f $domains1.tmp ]; then echo "$(timestamp) [i] An error occured whilst downloading wildcard domains from 'notracking/hosts-blocklists'. HTTP error code: ${httpCode}" fi else echo "$(timestamp) [i] An error occured whilst downloading wildcard domains from 'notracking/hosts-blocklists'. HTTP error code: ${httpCode}" echo "" > $domains1.tmp fi
# Remove the lines with # and :: (IPV6) and replace the default IP address and / (/0.0.0.0) in the file by nothing.
( sed -e "/::/ d" -e "/#/ d" -e 's/address=\///' -e 's/\/0.0.0.0//') < $domains1.tmp > $domains1
# not all downloaded lists end with a new line, so add an empty line to the list, using echo
echo >> $domains1`
Hello! The github user Notracking also created his domains only blocklist to make use of dnsmasq's wildcard blocking. His blocklist would be a good addititon to your lists sources. It needs only a little editing (removing double addresses, "address=/" and "/0.0.0.0" entries), to be easy readable by your script.