[i] Target: https://v.firebog.net/hosts/Prigent-Adult.txt
[✓] Status: No changes detected
[i] Imported 4509858 domains, ignoring 4 non-domain entries
Sample of non-domain entries:
- adult
- porn
- sex
- xxx
If i want to block porn in my network, it is very easy to block the entire top level domain.
I think pi-hole should accept the new generation of tlds (https://tld-list.com/tld-categories/adult )and just block them even without a second level domain in front.
That seems like a format or syntax glitch in that blocklist.
The HOSTS format only allows exact domains - it doesn't allow for wildcarding subdomains.
To address this, contact the blocklist maintainer.
In order to block all subdomains of those top level domains with Pi-hole, enter them via Pi-holes Domain management and tick Add domain as wildcard before adding them.to your blocklist.
No
The HOSTS format is designed for plain domain to IP address associations only - it isn't expressive enough to allow a distinction of domains that should be treated as wild cards from those that should be treated as plain domains.
If you want to use subdomain wildcards, use an ABP style list instead, but note the limitations of that format for a DNS filter like Pi-hole, as mentioned by yubiuser.