Please follow the below template, it will help us to help you!
Please ensure that you are running the latest version of the beta code.
Run pihole -up to update to the latest, then verify that the problem still exists before reporting it.
Problem with Beta 5.0:
Being able to whitelist with wildcards is excellent. But I'm having trouble plotting out how to re-work my blacklist regexes.
Examples:
I have a few blacklist regex for things like blocking subdomains with "logs" in them. Entries such as:
^logs?\..*\..*$
However, in the whitelist I've now added a wildcard for "roku.com".
(\.|^)roku\.com$
So that means domains like:
austin.logs.roku.com
Now get through.
So if I have a blacklist regex for:
^.*metric.*\..*\..*$
BUT, I've whitelisted plex.tv as a wildcard:
(\.|^)plex\.tv$
How would I still block a domain like metrics.plex.tv?
Intuitively I was thinking the most "specific" item would win. So if I have a whitelist wildcard, but then I specifically blacklist metrics.plex.tv, it would still get blocked.
Or, if I have a regex set to blacklist "logs" subdomains, I could then specifically whitelist logs.roku.com if I wanted to (not that I would). Granted, THAT works because of the logic laid out here:
- Exact Whitelist
- Regex Whitelist
- Exact Blacklist
- Blocklist domains (AKA
gravity
)- Regex Blacklist
But now I'm not sure what to do in certain situations like the above.
So tl;dr in my mind the hierarchy would be:
- Exact Whitelist
- Exact Blacklist
- Regex Whitelist
- Blocklist domains (AKA
gravity
) - Regex Blacklist
I get why y'all would choose differently, but I'm curious if that means I should just limit my use of regex/wildcard whitelisting, even if that's more labor intensive.
Example: adding only specific whitelisted plex.tv domains, so that I can still block metrics.plex.tv, although that isn't as convenient.
Debug Token:
https://tricorder.pi-hole.net/fz73yizi76