Would it be possible to enforce Safe Search via /etc/pihole/custom.list?

Appears to be a fairly simple format [ipAddress] [CNAME] with a single space in between. As can be seen in the gist I linked above. Might be cool to import this list like we do with blocklist.

And accessing the file via pihole commands validates the input before it's dropped in to that file. If you make a mistake when editing the file then it's going to cause FTL to crash. And people will copy/paste things in without knowing what or why, thus causing them to come to us to tell us that things are broken and we have to figure out why a file that shouldn't be modified was modified.

Maybe I can make a feature request?

Would be very similar to importing a blocklist. Can we import whitelist in the same or no?

Wouldn’t importing this list file be just as easy? In the end it does exactly what pihole -a addcustomdns does just on a larger scale.

Much like pihole -b -l is a quicker way to add sites to block pihole -a addcustomdns -l (or something) could allow for adding a whole list like this one.

Doesn’t need to be super complicated just expanding a little on what Pi-hole is already doing...

The same could be said for adding whitelists as well like was asked here.

Is it still possible to use custom.list with v5.0 of pi-hole?

1 Like

Yes it is.