Wildcard and regex support for whitelisting

I'm also looking for blacklisting everything *. and only adding a few sites like *.apple.com and *.virtualdesk.net. This is for my kids network and I dont want them on anything but a few sites, but it seems these sites have 100s of subdomain names. Is your script located on your github? Can you point me to it?

Thanks
Nick

Hello!

May be you have an idea how to whitelist domains with subdomains?
I need policy "deny all except allowed".
I can deny by address=/#/127.0.0.1
BUT, i can't allow by mask.

For example i would like to allow

  1. pipa.com
  2. 2.pipa.com
  3. *.pipa.com

If i do server=/google.com/208.67.222.222
by this config i allow anything.google.com and this is not good for my work.
May be you have an idea? I have a resolution by SQUID, but i qould like to use DNS instead for this.
Thank you!

I'd also appreciate to use wildcard entries for whitelisting.

I'm very surpised that it isn't already here?
I'd count this to the very basic things when working with Filtering/Blocklists.

This is included in the upcoming Pi-hole V5 (currently in beta).

1 Like

That's great to hear. Very nice.
Is it already known when this version will be released on stable branch?

Or could I switch to beta branch meanwhile and then back to stable after it is released?
Or isn't it as easy as that? Will this lead to problems?

Soon(TM).

Yes. The release announcement for the 5.0 beta has the upgrade commands. When the master 5.0 is released, you would shift from beta 5.0 to master with pihole checkout master

Please note the large disclaimer on the release notice - the upgrade is one-way only. Make a backup of your SD card so you can revert to 4.X if desired.

https://pi-hole.net/2020/01/19/announcing-a-beta-test-of-pi-hole-5-0/#page-content

1 Like