Closed Dantasstic closed 3 years ago
@Dantasstic can you try the script found here and let me know how it works for you?
How do I do that?
curl -sSL https://raw.githubusercontent.com/mwoolweaver/whitelist/master/scripts/whitelist.py | sudo /usr/bin/env python3
make sure you get the whole line
This script will download and add domains from the repo to whitelist. All the domains in this list are safe to add and does not contain any tracking or adserving domains.
[i] Pi-hole path exists [i] Write access to /etc/pihole verified [i] Pi-Hole Gravity database found [i] 191 domains and 191 SQL queries discovered [i] Connecting to Gravity. [i] Successfully Connected to Gravity. [i] Checking Gravity for domains added by script. [i] Found 170 domains added by script in whitelist already. [i] Checking Gravity for domains added by user that are also in script. [i] Checking Gravity for anudeepND/whitelist group.
adding group for anudeepND/whitelist. [i] Found no domains added by the user that would be added by script. [i] Checking Gravity for domains previously added by script that are NOT in new script. [i] Found no domain(s) added previously by script that are not in script. [i] Checking script for domains not in Gravity. [i] 21 domain(s) NOT in Gravity that are in new script.
Adding 1. cdn.optimizely.com
Adding 2. clients4.google.com
Adding 3. cpms.spop10.ams.plex.bz
Adding 4. cpms35.spop10.ams.plex.bz
Adding 5. meta-db-worker02.pop.ric.plex.bz
Adding 6. meta.plex.bz
Adding 7. meta.plex.tv
Adding 8. nine.plugins.plexapp.com
Adding 9. node.plexapp.com
Adding 10. o1.email.plex.tv
Adding 11. proxy.plex.bz
Adding 12. proxy.plex.tv
Adding 13. proxy02.pop.ord.plex.bz
Adding 14. pubsub.plex.bz
Adding 15. pubsub.plex.tv
Adding 16. spclient.wg.spotify.com
Adding 17. staging.plex.tv
Adding 18. status.plex.tv
Adding 19. tinyurl.com
Adding 20. tvdb2.plex.tv
Adding 21. tvthemes.plexapp.com
[i] Checking Gravity for newly added domains.
[i] All 21 new domain(s) have not been added to Gravity. [i] All 191 domains to be added by script have been discovered in Gravity [i] There are a total of 218 domains in your whitelist (regex(0) & exact(218)) [i] The database connection is closed [i] Reloading Pi-hole lists. This could take a few seconds
[✓] Flushing DNS cache
Done. Happy ad-blocking :)
Star me on GitHub: https://github.com/anudeepND/whitelist Buy me a coffee: https://paypal.me/anudeepND
It gives you that output all every time you run it?
@Dantasstic would try again by running that same command again?
@Dantasstic if you try `pihole -q tvthemes.plexapp.com' and post the output? I think i figured out the issue
@Dantasstic if you try `pihole -q tvthemes.plexapp.com' and post the output? I think i figured out the issue
pihole -q tvthemes.plexapp.com Match found in exact whitelist tvthemes.plexapp.com.cdn.cloudflare.net tvthemes.plexapp.com
and if you
search for that same domain
does the entry have a comment?
@Dantasstic Try
curl -sSL https://raw.githubusercontent.com/mwoolweaver/whitelist/master/scripts/whitelist.py | sudo /usr/bin/env python3
it should work correctly for you now :crossed_fingers:
[i] Pi-hole path exists [i] Write access to /etc/pihole verified [i] Pi-Hole Gravity database found [i] 191 domains and 191 SQL queries discovered [i] Connecting to Gravity. [i] Successfully Connected to Gravity. [i] Checking Gravity for domains added by script. [i] Found 170 domains added by script in whitelist already. [i] Checking Gravity for domains added by user that are also in script. [i] Checking Gravity for anudeepND/whitelist group. [i] Found anudeepND/whitelist group in Gravity. [i] 21 domain(s) added by the user that would be added by script.
1. tinyurl.com
2. cdn.optimizely.com
3. clients4.google.com
4. spclient.wg.spotify.com
5. tvdb2.plex.tv
6. pubsub.plex.bz
7. proxy.plex.bz
8. proxy02.pop.ord.plex.bz
9. cpms.spop10.ams.plex.bz
10. meta-db-worker02.pop.ric.plex.bz
11. meta.plex.bz
12. tvthemes.plexapp.com
13. meta.plex.tv
14. cpms35.spop10.ams.plex.bz
15. proxy.plex.tv
16. pubsub.plex.tv
17. status.plex.tv
18. node.plexapp.com
19. nine.plugins.plexapp.com
20. staging.plex.tv
21. o1.email.plex.tv
[i] Checking Gravity for domains previously added by script that are NOT in new script. [i] Found no domain(s) added previously by script that are not in script. [i] Checking script for domains not in Gravity. [i] All 191 domains to be added by script have been discovered in Gravity [i] There are a total of 218 domains in your whitelist (regex(0) & exact(218)) [i] The database connection is closed
@Dantasstic So basically what was happening is those domains didn't have a comment and my sql statement was missing them because they return null
so when checking for the absence of the string the script leaves as a comment it wasn't finding any text at all so it would skip it.
Now I'm checking for both the absence of our comment and a null value.
[i] 21 domain(s) added by the user that would be added by script.
means you have manually added these domains so the script will not mess with them.
[i] All 191 domains to be added by script have been discovered in Gravity.
Means all 191 domains the script has in it have been found in Gravity.
So you should be all good now. Thanks for testing these for me so I could fix the issue.
Thanks for the help!
So going forward I should use this command to check for whitelist updates:
@Dantasstic Try
curl -sSL https://raw.githubusercontent.com/mwoolweaver/whitelist/master/scripts/whitelist.py | sudo /usr/bin/env python3
it should work correctly for you now 🤞
only until #184 gets merged
21 plex domains keep saying they are being added, but if I run the script again, it just says the same thing over and over:
[i] 21 domain(s) NOT in Gravity that are in new script.
[i] Checking Gravity for newly added domains.
[i] All 21 new domain(s) have not been added to Gravity. [i] There are a total of 218 domains in your whitelist (regex(0) & exact(218)) [i] The database connection is closed [i] Restarting Pi-hole. This could take a few seconds
Done. Happy ad-blocking :)