├── LICENSE ├── README.md ├── domains └── whitelist.txt └── scripts └── whitelist.sh /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Anudeep ND 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

2 | 3 |

4 | 5 | ## Commonly white listed domains for Pi-Hole (Compatible with Pi-Hole Docker Image). 6 | 7 | A robust collection of commonly white listed websites borrowed from various sources including Pi-Hole subreddit, Pi-Hole forum, Pi-Hole github repository and more! 8 | Add these domains to your Pi-Hole setup by running a script or manually and make your setup **trouble-free!** 9 | 10 | Want to report a new domain? Want to report existing one? Feel free to file an issue. 11 | 12 |

13 | 14 |

15 | 16 | * * * 17 | 18 | ### Main features: 19 | 20 | - The entire repo is curated. 21 | - New domains are added frequently. 22 | - Supports Pi-Hole Docker installation. 23 | - Comes with a shell script i.e you can add all domains automatically at an instant. 24 | - If you are a beginner to Pi-Hole, adding these sites resolves many problems. 25 | 26 | *** 27 | 28 | ### Description 29 | 30 | ***whitelist.txt*** 31 | This file contain domains that are safe to whitelist i.e it does not contain any tracking or advertising sites. Adding this file fixes many problems like YouTube watch history, videos on news sites and so on... 32 | 33 | 34 | ### Installation and Usage 35 | 36 | ***For Pi-hole in Docker installations*** 37 | - First, make sure to clone the repository into a location that is accessible by your Pi-hole Docker' container, i.e. do a `git clone https://github.com/Freekers/whitelist.git` in one of your volume mounts. 38 | - Next, make sure to make the script executable using `sudo chmod +x whitelist.sh` 39 | - Finally, setup a cronjob using `crontab -e` and add the following line: 40 | `0 0 * * * docker exec -d pihole '/opt/whitelist/scripts/whitelist.sh'` 41 | 42 | This will sync your whitelist with the one from the repository every day at midnight. Make sure to adjust the command to reflect your setup, i.e. change the container name and path to the script. 43 | 44 | ***For native/normal Pi-hole installations*** 45 | ``` 46 | git clone https://github.com/anudeepND/whitelist.git 47 | cd whitelist/scripts 48 | sudo chmod +x whitelist.sh 49 | sudo ./whitelist.sh 50 | ``` 51 | 52 | Note: You don't have to clone the repo every time you want to update whitelist file. Navigate to `whitelist/scripts` and run the script again `sudo ./whitelist.sh` 53 | 54 | It's recommended to setup a cronjob to keep your whitelist in sync with the one from the repository. To do so, run `crontab -e` and add the following line: `0 0 * * * '/opt/whitelist/scripts/whitelist.sh'` 55 | This will sync your whitelist with the one from the repository every day at midnight. Make sure to adjust the path to where you cloned the script. 56 | 57 | ### How do I determine an ad domain? 58 | 59 | ***Adam:ONE Assistant (Previously known as DNSthingy*** 60 | 61 | This browser extension will list all of the domains that are queried when a web page is loaded. You can often look at the list of domains and cherry pick the ones that appear to be ad-serving domains. 62 | 63 |

64 | 65 |

66 | 67 | ***Using inbuilt Developer tool*** 68 | 69 | For Chrome ctrl+shift+I will land you in Developer tools menu. 70 | 71 |

72 | 73 |

74 | 75 | ***Using an Android app*** 76 | 77 | [Net Guard](https://play.google.com/store/apps/details?id=eu.faircode.netguard) is an Android app that can be used to monitor any specific apps, works on unrooted devices too. 78 | 79 |

80 | 81 |

82 | 83 | *** 84 | 85 | ### Licence 86 | ``` 87 | MIT License 88 | 89 | Copyright (c) 2019 Anudeep ND 90 | 91 | Permission is hereby granted, free of charge, to any person obtaining a copy 92 | of this software and associated documentation files (the "Software"), to deal 93 | in the Software without restriction, including without limitation the rights 94 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 95 | copies of the Software, and to permit persons to whom the Software is 96 | furnished to do so, subject to the following conditions: 97 | 98 | The above copyright notice and this permission notice shall be included in all 99 | copies or substantial portions of the Software. 100 | 101 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 102 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 103 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 104 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 105 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 106 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 107 | SOFTWARE. 108 | ``` 109 | -------------------------------------------------------------------------------- /domains/whitelist.txt: -------------------------------------------------------------------------------- 1 | safelinking.net 2 | telegraaf.nl 3 | nu.nl 4 | graph.facebook.com 5 | extratorrent.cc 6 | tvaddons.ag 7 | www.tvaddons.ag 8 | neostrada.nl 9 | icscards.nl 10 | opensubtitles.org 11 | www.opensubtitles.org 12 | lotustalk.com 13 | tn.com.ar 14 | 4chan.org 15 | nitroflare.com 16 | rapidgator.net 17 | computertotaal.nl 18 | pcmweb.nl 19 | pbs.twimg.com 20 | duo.nl 21 | serverfault.com 22 | clients2.google.com 23 | clients3.google.com 24 | clients4.google.com 25 | clients5.google.com 26 | www.bit.ly 27 | bit.ly 28 | ow.ly 29 | j.mp 30 | goo.gl 31 | cdn.optimizely.com 32 | res.cloudinary.com 33 | imgs.xkcd.com 34 | s.shopify.com 35 | keystone.mwbsys.com 36 | dl.dropbox.com 37 | api.ipify.org 38 | bleacherreport.com 39 | www.howtogeek.com 40 | warez-bb.org 41 | www.warez-bb.org 42 | medium.com 43 | fiverr.com 44 | beforeitsnews.com 45 | prod.telemetry.ros.rockstargames.com 46 | s.click.aliexpress.com 47 | www.mcssl.com 48 | cookie-script.com 49 | eu1.ethermine.org 50 | ethermine.org 51 | js.braintreegateway.com 52 | api.coinbase.com 53 | cdns.eu1.gigya.com 54 | socialize.eu1.gigya.com 55 | accounts.eu1.gigya.com 56 | shop.rewe-static.de 57 | gfwsl.geforce.com 58 | alcpu.com 59 | api.ethermine.org 60 | users.telenet.be 61 | coinmarketcap.com 62 | binance.com 63 | www.binance.com 64 | bittrex.com 65 | www.bittrex.com 66 | socket.bittrex.com 67 | international.bittrex.com 68 | lp.babbel.com 69 | game.weixin.qq.com 70 | www.travelzoo.com 71 | vanilla.futurecdn.net 72 | -------------------------------------------------------------------------------- /scripts/whitelist.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # This script will download and add domains from both repos to your whitelist 3 | # Project homepage: https://github.com/Freekers/whitelist 4 | # Licence: https://github.com/anudeepND/whitelist/blob/master/LICENSE 5 | # Created by Anudeep (Slight change by cminion) | Modified by Freekers 6 | #================================================================================ 7 | TICK="[\e[32m ✔ \e[0m]" 8 | PIHOLE_LOCATION="/etc/pihole" 9 | GRAVITY_UPDATE_COMMAND="pihole -w -q" 10 | 11 | echo -e " \e[1m This script will download and add domains from both repos to your whitelist \e[0m" 12 | sleep 1 13 | echo -e "\n" 14 | 15 | if [ "$(id -u)" != "0" ] ; then 16 | echo "This script requires root permissions. Please run this as root!" 17 | exit 2 18 | fi 19 | 20 | curl -sS https://raw.githubusercontent.com/anudeepND/whitelist/master/domains/whitelist.txt | sudo tee -a "${PIHOLE_LOCATION}"/whitelist.txt >/dev/null 21 | echo -e " ${TICK} \e[32m Adding anudeepND's domains to whitelist... \e[0m" 22 | sleep 0.1 23 | curl -sS https://raw.githubusercontent.com/Freekers/whitelist/master/domains/whitelist.txt | sudo tee -a "${PIHOLE_LOCATION}"/whitelist.txt >/dev/null 24 | echo -e " ${TICK} \e[32m Adding Freekers' domains to whitelist... \e[0m" 25 | sleep 0.1 26 | echo -e " ${TICK} \e[32m Removing duplicates... \e[0m" 27 | mv "${PIHOLE_LOCATION}"/whitelist.txt "${PIHOLE_LOCATION}"/whitelist.txt.old && cat "${PIHOLE_LOCATION}"/whitelist.txt.old | sort | uniq >> "${PIHOLE_LOCATION}"/whitelist.txt 28 | 29 | echo -e " [...] \e[32m Pi-hole gravity rebuilding lists. This may take a while... \e[0m" 30 | ${GRAVITY_UPDATE_COMMAND} $(cat /etc/pihole/whitelist.txt | xargs) > /dev/null 31 | 32 | echo -e " ${TICK} \e[32m Pi-hole's gravity updated \e[0m" 33 | echo -e " ${TICK} \e[32m Done! \e[0m" 34 | 35 | 36 | echo -e " \e[1m Star us on GitHub, https://github.com/anudeepND/whitelist and https://github.com/Freekers/whitelist \e[0m" 37 | echo -e " \e[1m Happy AdBlocking :)\e[0m" 38 | echo -e "\n\n" 39 | --------------------------------------------------------------------------------