33 lines
1.3 KiB
Bash
Executable File
33 lines
1.3 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
DOWNLOADS="./downloads"
|
|
PUBLIC="./public"
|
|
|
|
mkdir $DOWNLOADS
|
|
mkdir $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" "https://block.energized.pro/unified/formats/domains.txt" "https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts")
|
|
|
|
# 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 -N --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 -N --random-wait --no-cache --directory-prefix=$DOWNLOADS $file
|
|
done
|
|
|
|
cp $DOWNLOADS/*.txt $PUBLIC/
|
|
|
|
touch ./updated.txt
|