#!/bin/bash DOWNLOADS="./downloads" PUBLIC="./public" OTHERLIST=("https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt" "https://s3.amazonaws.com/lists.disconnect.me/simple_malvertising.txt" "https://adaway.org/hosts.txt" "https://v.firebog.net/hosts/static/w3kbl.txt" "https://raw.githubusercontent.com/kboghdady/youTube_ads_4_pi-hole/master/youtubelist.txt" "https://raw.githubusercontent.com/anudeepND/youtubeadsblacklist/master/domainlist.txt") # copy public back into download cp $PUBLIC/*.txt $DOWNLOADS/ for file in {abuse,ads,crypto,drugs,facebook,fraud,gambling,malware,phishing,piracy,porn,ransomware,redirect,scam,torrent,tracking,youtube}; do # [ -r "$file" ] && [ -f "$file" ] && source "$file" echo "https://ghcdn.rawgit.org/blocklistproject/Lists/master/$file.txt" wget --random-wait --no-cache --directory-prefix=$DOWNLOADS "https://ghcdn.rawgit.org/blocklistproject/Lists/master/$file.txt" done for file in ${OTHERLIST[@]}; do echo $file wget --random-wait --no-cache --directory-prefix=$DOWNLOADS $file done cp $DOWNLOADS/*.txt $PUBLIC/