Last active
September 12, 2020 02:21
-
-
Save haskaalo/c61b1e7bf77fc46d8d9642ddb4695705 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Source: wally3k.github.io | |
# | |
# Basic whitelist from Pi-hole forums https://discourse.pi-hole.net/t/commonly-whitelisted-domains/212 | |
# | |
# Clear whitelist | |
echo "" > /etc/pihole/whitelist.txt | |
# Custom | |
pihole -w cdnjs.cloudflare.com | |
# Google content, google maps and other google services | |
pihole -w clients2.google.com | |
pihole -w clients3.google.com | |
pihole -w clients4.google.com | |
pihole -w clients5.google.com | |
pihole -w android.clients.google.com | |
# Youtube history | |
pihole -w s.youtube.com | |
pihole -w video-stats.l.google.com | |
# Google Play | |
pihole -w android.clients.google.com | |
# Spotify | |
pihole -w spclient.wg.spotify.com | |
# Windows verify connection to internet | |
pihole -w www.msftncsi.com | |
# Microsoft Web Pages | |
pihole -w outlook.office365.com products.office.com c.s-microsoft.com i.s-microsoft.com login.live.com | |
# Windows/Xbox store | |
pihole -w dl.delivery.mp.microsoft.com geo-prod.do.dsp.mp.microsoft.com displaycatalog.mp.microsoft.com | |
# Skype | |
pihole -w s.gateway.messenger.live.com ui.skype.com pricelist.skype.com apps.skype.com m.hotmail.com s.gateway.messenger.live.com sa.symcb.com s{1..5}.symcb.com | |
# Microsoft Office | |
pihole -w officeclient.microsoft.com | |
pihole -w creative.ak.fbcdn.net external-lhr0-1.xx.fbcdn.net external-lhr1-1.xx.fbcdn.net external-lhr10-1.xx.fbcdn.net external-lhr2-1.xx.fbcdn.net external-lhr3-1.xx.fbcdn.net external-lhr4-1.xx.fbcdn.net external-lhr5-1.xx.fbcdn.net external-lhr6-1.xx.fbcdn.net external-lhr7-1.xx.fbcdn.net external-lhr8-1.xx.fbcdn.net external-lhr9-1.xx.fbcdn.net fbcdn-creative-a.akamaihd.net scontent-lhr3-1.xx.fbcdn.net scontent.xx.fbcdn.net scontent.fgdl5-1.fna.fbcdn.net graph.facebook.com connect.facebook.com 0-edge-chat.facebook.com 1-edge-chat.facebook.com | |
# Dropbox | |
pihole -w dl.dropboxusercontent.com ns1.dropbox.com ns2.dropbox.com | |
# Apple Music | |
pihole -w itunes.apple.com | |
# Snapchat | |
pihole -w cf-st.sc-cdn.net | |
# | |
# Black list | |
# | |
# Clear blacklist | |
echo "" > /etc/pihole/adlists.list | |
# Pi-Hole default black list | |
echo "https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
echo "https://mirror1.malwaredomains.com/files/justdomains" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
echo "http://sysctl.org/cameleon/hosts" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
echo "https://zeustracker.abuse.ch/blocklist.php?download=domainblocklist" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
echo "https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
echo "https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
echo "https://hosts-file.net/ad_servers.txt" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
# Blacklist from wally3k.github.io | |
# Suspicious list | |
echo "https://hosts-file.net/grm.txt" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
echo "https://reddestdream.github.io/Projects/MinimalHosts/etc/MinimalHostsBlocker/minimalhosts" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
echo "https://raw.githubusercontent.com/StevenBlack/hosts/master/data/KADhosts/hosts" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
echo "https://raw.githubusercontent.com/StevenBlack/hosts/master/data/add.Spam/hosts" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
echo "https://v.firebog.net/hosts/static/w3kbl.txt" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
echo "https://v.firebog.net/hosts/BillStearns.txt" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
echo "http://sysctl.org/cameleon/hosts" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
echo "https://www.dshield.org/feeds/suspiciousdomains_Low.txt" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
echo "https://www.joewein.net/dl/bl/dom-bl-base.txt" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
echo "https://raw.githubusercontent.com/piwik/referrer-spam-blacklist/master/spammers.txt" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
echo "https://hostsfile.org/Downloads/hosts.txt" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
echo "http://someonewhocares.org/hosts/zero/hosts" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
echo "https://raw.githubusercontent.com/Dawsey21/Lists/master/main-blacklist.txt" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
echo "https://raw.githubusercontent.com/vokins/yhosts/master/hosts" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
echo "http://winhelp2002.mvps.org/hosts.txt" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
echo "https://hostsfile.mine.nu/hosts0.txt" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
echo "https://v.firebog.net/hosts/Kowabit.txt" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
echo "https://adblock.mahakala.is" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
# Advertising lists | |
echo "https://adaway.org/hosts.txt" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
echo "https://v.firebog.net/hosts/AdguardDNS.txt" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
echo "https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
echo "https://hosts-file.net/ad_servers.txt" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
echo "https://v.firebog.net/hosts/Easylist.txt" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
echo "https://raw.githubusercontent.com/StevenBlack/hosts/master/data/SpotifyAds/hosts" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
echo "https://raw.githubusercontent.com/StevenBlack/hosts/master/data/UncheckyAds/hosts" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
# Tracking and Telemetry Lists | |
echo "https://v.firebog.net/hosts/Airelle-trc.txt" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
echo "https://v.firebog.net/hosts/Easyprivacy.txt" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
echo "https://v.firebog.net/hosts/Prigent-Ads.txt" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
echo "https://raw.githubusercontent.com/quidsup/notrack/master/trackers.txt" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
echo "https://raw.githubusercontent.com/StevenBlack/hosts/master/data/add.2o7Net/hosts" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
echo "https://raw.githubusercontent.com/StevenBlack/hosts/master/data/tyzbit/hosts" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
echo "https://gist.githubusercontent.com/CHEF-KOCH/080efada22b9659ef61241029122873b/raw/7f9bd984d3c46b3dba2de7606da579bc0ac6780c/Canvas%2520Font%2520Fingerprinting%2520pages%2520%255B2017%2520Edition%255D" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
echo "https://gist.githubusercontent.com/CHEF-KOCH/5a7b1593d1880f906b12a3c87cee4500/raw/3ba028508feb2ef67a3d7ab75f428fd284223e8b/WebRTC%2520tracking%2520list%2520%255B2017%2520Edition%255D.txt" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
echo "https://gist.githubusercontent.com/CHEF-KOCH/63fd2e506cb34a2378ad2620ab06d2e0/raw/fb9f16e3ac998d3f773ebdfee4aa3bfd10a5d763/Audio%2520fingerprint%2520pages%2520%255B2017%2520Edition.exe" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
echo "https://gist.githubusercontent.com/CHEF-KOCH/2dea75d43b2184f228ae94b168d275b1/raw/35d7a4447a198449bbb3280e1c3d7a57517350de/Canvas%2520fingerprinting%2520pages%2520%255B2017%2520Edition%255D.exe" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
echo "https://v.firebog.net/hosts/static/SamsungSmart.txt" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
# Malicious lists | |
echo "https://v.firebog.net/hosts/Airelle-hrsk.txt" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
echo "https://s3.amazonaws.com/lists.disconnect.me/simple_malvertising.txt" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
echo "https://mirror1.malwaredomains.com/files/justdomains" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
echo "https://hosts-file.net/exp.txt" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
echo "https://hosts-file.net/emd.txt" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
echo "https://hosts-file.net/psh.txt" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
echo "https://mirror.cedia.org.ec/malwaredomains/immortal_domains.txt" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
echo "https://www.malwaredomainlist.com/hostslist/hosts.txt" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
echo "https://bitbucket.org/ethanr/dns-blacklists/raw/8575c9f96e5b4a1308f2f12394abd86d0927a4a0/bad_lists/Mandiant_APT1_Report_Appendix_D.txt" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
echo "https://v.firebog.net/hosts/Prigent-Malware.txt" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
echo "https://v.firebog.net/hosts/Prigent-Phishing.txt" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
echo "https://raw.githubusercontent.com/quidsup/notrack/master/malicious-sites.txt" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
echo "https://ransomwaretracker.abuse.ch/downloads/RW_DOMBL.txt" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
echo "https://v.firebog.net/hosts/Shalla-mal.txt" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
echo "https://raw.githubusercontent.com/StevenBlack/hosts/master/data/add.Risk/hosts" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
echo "https://zeustracker.abuse.ch/blocklist.php?download=domainblocklist" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
# Browser based miners | |
echo "https://raw.githubusercontent.com/ZeroDot1/CoinBlockerLists/master/hosts" | sudo tee -a /etc/pihole/adlists.list > /dev/null | |
# Update Pi-hole | |
pihole -g |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment