This tool provides bulk operations to manage your Pi-hole 5 Allow lists and Block/Ad lists.
pihole
), it should be detected
and offered as a default option$ sudo pip3 install pihole5-list-tool --upgrade
Note:
pip3
command doesn't work, try using pip
instead. Here are additional options /workarounds (and glimpses into Python peculiarities)sudo
Simply run:
$ sudo pihole5-list-tool
This is what installing and running it basically looks like (many features have been added since this):
TL; DR - some maintained online lists, anything you can paste, or a file
Currently the only source for maintained whitelists is anudeepND's allowlist. They are presented as:
Allowlist Only - Domains that are safe to allow i.e does not contain any tracking or
advertising sites. This fixes many problems like YouTube watch history,
videos on news sites and so on.
Allowlist+Optional - These are needed depending on the service you use. They may contain some
tracking sites but sometimes it's necessary to add bad domains to make a
few services to work.
Allowlist+Referral - People who use services like Slickdeals and Fatwallet need a few sites
(most of them are either trackers or ads) to be whitelisted to work
properly. This contains some analytics and ad serving sites like
doubleclick.net and others. If you don't know what these services are,
stay away from this list. Domains that are safe to whitelist i.e does
not contain any tracking or advertising sites. This fixes many problems
like YouTube watch history, videos on news sites and so on.
Currently the only source for maintained blocklists is firebog.net
Both list types allow providing either a pasted in list or a file as your source of lists.
After adding lists, they must be loaded by running:
$ pihole -g
This tool will offer to do that for you.
When that finishes, you'll see each of listed in the Web Admin interface along with a comment to help identify them.
NOTE: If you need/want the blocklists added from firebog.net (and more) continually updated, check out pihole-updatelists which will also run great on a Pi.