From f3a24162aaab6aa42a364f46aa392d20e98f2ee9 Mon Sep 17 00:00:00 2001 From: dnutan <15559754+dnutan@users.noreply.github.com> Date: Fri, 16 Jul 2021 10:16:55 +0200 Subject: [PATCH] DDL of blacklists to reduce dependencies Ease future github workflow implementation requirements --- download.sh | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/download.sh b/download.sh index 49621e32b8..2da3539062 100755 --- a/download.sh +++ b/download.sh @@ -23,12 +23,9 @@ # After executing the script, remember to commit the changes -# hosts -pushd hosts -echo -e "#\n# Commmunity DNS list\n#\n#\n#\n# Maintainer : Community\n# Category : Mixed\n# Confidence : 4\n#\n" > ../stevenblack.dns -python3 updateHostsFile.py --auto -tail -n +$(grep "# Start StevenBlack" -n hosts | cut -f1 -d:) hosts | grep '^0.0.0.0' | awk '{print $2}' >> ../stevenblack.dns -popd +# stevenblack hosts +echo -e "#\n# Commmunity DNS list\n#\n#\n#\n# Maintainer : Community\n# Category : Mixed\n# Confidence : 4\n#\n" > stevenblack.dns +curl -fsS https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts | grep '^0.0.0.0' |grep -v -e '0.0.0.0 0.0.0.0' | awk '{print $2}' >> stevenblack.dns # adaway echo -e "#\n# Commmunity DNS list\n#\n#\n#\n# Maintainer : Community\n# Category : Ads\n# Confidence : 4\n#\n" > adaway.dns @@ -179,4 +176,4 @@ curl -fsS https://blocklistproject.github.io/Lists/alt-version/scam-nl.txt | gre # The Block List Project - Tracking echo -e "#\n# Commmunity DNS list\n#\n#\n#\n# Maintainer : Community\n# Category : Tracking\n# Confidence : 4\n#\n" > tracking-nl.dns -curl -fsS https://blocklistproject.github.io/Lists/alt-version/tracking-nl.txt | grep -v -e '#' >> tracking-nl.dns \ No newline at end of file +curl -fsS https://blocklistproject.github.io/Lists/alt-version/tracking-nl.txt | grep -v -e '#' >> tracking-nl.dns