Blocking sub domains



is there any way to block sub domains by main domain?
like i found a page that creates a sub domain for their ads:

each time i visit their site it will change and load their ad.


Hi there!

There is a stickied post on this in the FAQ section (It was in How-to section, thought I’ve just moved it because it gets asked quite frequently…)


okay thanks for the link and have a nice day.


This only works for blacklisting, not whitelisting… and it’s not an officially integrated part of Pi-hole, so it may not show the domains at blocked on the Admin page…

This is just something that is possible to do!


aw something like this would be awesome
(regex support).