Please follow the below template, it will help us to help you!
Expected Behaviour:
Need Pihole to block sites with prefix www etc..
Actual Behaviour:
Pihole doesn’t seem to block domains when www is present in the request e.g. domain.com is blocked but www.domain.com still resolves to an address. Can someone advise please?
This can be done with regex as well. As an example, this regex will block the .ru domain:
(^|\.)ru$
The problem with a lot of public blocklists is that they block a domain without the www prefix, but not the same domain with the www prefix. As previously noted, these are two separate domains, and must separately be blocked if not using wildcards/regex.
With regex, you can block domains that contain objectionable keywords in the domain name, but this can become tedious. You might consider setting up a separate Pi-Hole fo the kids' devices, using a filtered upstream DNS service on that Pi-Hole (OpenDNS is one such service). That Pi-Hole can also use some of the public blocklists that block some of the porn sites, and then you can add regex filters on top of that.