# Lists

**URL:** https://discourse.pi-hole.net/t/lists/13123
**Category:** Help
**Created:** [September 24, 2018, 9:48pm UTC](https://discourse.pi-hole.net/t/lists/13123 "2018-09-24T21:48:22Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![meatwad](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/m/5fc32e/32.png) [@meatwad](https://discourse.pi-hole.net/u/meatwad)
#### Post date: [September 24, 2018, 9:48pm UTC](https://discourse.pi-hole.net/t/lists/13123/1 "2018-09-24T21:48:22Z")

</div>

I'm using lists to block porn like the following:  
[https://github.com/chadmayfield/pihole-blocklists/raw/master/lists/pi\_blocklist\_porn\_all.list](https://github.com/chadmayfield/pihole-blocklists/raw/master/lists/pi_blocklist_porn_all.list)  
and  
[https://raw.githubusercontent.com/chadmayfield/pihole-blocklists/master/lists/pi\_blocklist\_porn\_top1m.list](https://raw.githubusercontent.com/chadmayfield/pihole-blocklists/master/lists/pi_blocklist_porn_top1m.list)

The problem is if a domain is the list like porn.com and I do nslookup its blocked. But if I do a lookup on www.porn.com the site resolves and therfore I can visit.

Granted the list does not contain the www variants of the name, just the domain name. I thought by loading the list pi-hole would be crafty enough to block both.

Do I have to edit the lists? If so, not sure what the use is by loading in the first place. Is there a setting some place to have the system recognize the domain to auto block the www or sub domain? Or perhaps a script that I can run?

Please help 🙂

---

<div class="post-metadata">

### Author: ![jfb](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jfb/32/4332_2.png) [@jfb](https://discourse.pi-hole.net/u/jfb)
#### Post date: [September 24, 2018, 11:34pm UTC](https://discourse.pi-hole.net/t/lists/13123/2 "2018-09-24T23:34:32Z")

</div>

> [@meatwad](#):
>
> The problem is if a domain is the list like [porn.com](http://porn.com) and I do nslookup its blocked. But if I do a lookup on [www.porn.com](http://www.porn.com) the site resolves and therfore I can visit.

This is the way it works. A "domain" and "www.domain" are two different entities on the internet. Some related threads at the bottom. The solution is to expand the block lists (or the resulting gravity list) to put "www" at the beginning, and also have the plain domain on the list as well. I think some users may have done some work with scripts that do this - @anon55913113?

Some of the porn-blocking lists already have this in place - [https://tspprs.com](https://tspprs.com) is one. I have read that their list is fairly effective.

If your goal is to create a kid-friendly network, you might also consider using OpenDNS or another one of the filtered upstream DNS providers. They do some blocking at the source.

If there are any remaining that sneak through, a blacklist entry would knock them out. An additional option that would work for any sites that sneak through after this would be regex filters.

> [@Http:// blocked but not www](https://discourse.pi-hole.net/t/http-blocked-but-not-www/2146):
>
> I have a custom block list I'm using. One of the URLs on my list is amd.com If I browse [http://amd.com](http://amd.com) I get the pihole Website blocked page. If I enter www.amd.com it loads the page. When I query the log, it shows both blocked (exact) and Ok. My custom list it made up of a txt file with just the urls (no https:// or www.) If i query the adlist I get ::: /etc/pihole/list.25.s3-us-west-2.amazonaws.com.domains (1 results) amd.com and ::: /etc/pihole/list.preEventHorizon (1 results) amd.co…

> [@First time visits without 'www.' show as blocked](https://discourse.pi-hole.net/t/first-time-visits-without-www-show-as-blocked/5864/2):
>
> You can whilelist the bare domain for that site. [How do I whitelist or blacklist a domain?](https://discourse.pi-hole.net/t/how-do-i-whitelist-or-blacklist-a-domain/244)

> [@Adding www or https breaks blocking?](https://discourse.pi-hole.net/t/adding-www-or-https-breaks-blocking/11835):
>
> Please follow the below template, it will help us to help you! Expected Behaviour: All sites on chadmayfield list are blocked. Actual Behaviour: If I simply Google 'porn' and click on the link, the site loads. If I type pornsite.com into adress bar it is blocked, but www.pornsite.com is not. Have successfully loaded Chad's list into pihole... Debug Token: Sorry am typing on my phone so not easy. Am I missing something to block all of the sites on Chad's list despite the prefix? Thanks...

> [@Domain blocked, whitelisted and still blocked?](https://discourse.pi-hole.net/t/domain-blocked-whitelisted-and-still-blocked/1466):
>
> I visited a website and get this message on the page: Website Blocked Access to the following site has been blocked: www.findpaidfocusgroup.com/focus-groups-nationwide/nationwide-paid-online-focus-group-vehicles If you have an ongoing use for this website, please ask the owner of the Pi-hole in your network to have it whitelisted. This page is blocked because it is explicitly contained within the following block list(s): list.1.mirror1.malwaredomains.com.domains list.preEventHorizon Go b…

> [@Sites loaded through search engine bypass pi-hole](https://discourse.pi-hole.net/t/sites-loaded-through-search-engine-bypass-pi-hole/12594):
>
> Hi, I noticed that when a site is blocked by one of the block-lists, it can still be accessed when a user enters the name of the site in a search engine and then just clicks on one of the resulting links to the site. Is this normal behavior ? Thanks !

---

<div class="post-metadata">

### Author: ![system](https://discourse.pi-hole.net/uploads/default/original/3X/7/c/7c8792f649eeb921c5d2b4c41564ffa873d9a2b8.png) [@system](https://discourse.pi-hole.net/u/system)
#### Post date: [October 16, 2018, 10:03am UTC](https://discourse.pi-hole.net/t/lists/13123/4 "2018-10-16T10:03:42Z")

</div>

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
