why is www not blocked?

Please follow the below template, it will help us to help you!

Expected Behaviour:

I have loaded some lists, e.g. to block any porn websites in my network. E.g. if I enter in my browser http://youporn.com,I do not get an answer, since this domain is on the block list.

Actual Behaviour:

But if I enter http://www.youporn.com, then I am getting an answer, although my assumption was, that the full domain is being blocked.

Debug Token:

fvloikvzui

Thanks and Regards,

Torsten

The default is to block domains only exactly. As www.domain.com can be something else as www2.domain.com and can also be different from what is provided at domain.com, blocking only the latter does not have any effect on the former two. You are looking for wildcard blocking which will block a domain plus all its subdomains (including the subdomain www.).

I know, that I can do a wildcard blocking, but I have to do this manually domain after domain. Is there a possibility to add a list of domain to the wildcards?

It should be possible by just adding multiple domain (separated by spaces) on the web interface but I cannot currently test this.

You are right, I just wanted to avoid manual work. Thx.

In the specific case of blocking porn, some users use "family friendly" filtered DNS providers (OpenDNS is one) as their upstream DNS server with Pi-Hole. You can select broad categories of blocking with these providers.

When used in addition to some local regex, this has been reported to be effective at blocking specific content.