Skip to content

Commit

Permalink
DDL of blacklists to reduce dependencies
Browse files Browse the repository at this point in the history
Ease future github workflow implementation requirements
  • Loading branch information
dnutan authored Jul 16, 2021
1 parent 799371f commit f3a2416
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
curl -fsS https://blocklistproject.github.io/Lists/alt-version/tracking-nl.txt | grep -v -e '#' >> tracking-nl.dns

0 comments on commit f3a2416

Please sign in to comment.