Restoring default Pi-hole adlists

Pi-hole ships with several adlists (publicly maintained block lists), which you can enable if you choose. If you find that you need to restore the default lists, they are as follows - current as of the V5.1 release.

https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
https://mirror1.malwaredomains.com/files/justdomains

To restore these lists to your Pi-hole, you have several options:

Pi-hole V4:

  1. From the web Admin GUI > Settings > Blocklists you can paste any of the URL's above (or all at once) into the box provided, then hit Save (or Save and Update when you are done entering URLs) and gravity will be updated.

or

  1. Edit file /etc/pihole/adlists.list and enter the lists desired. Save, exit and rebuild gravity with pihole -g.

Pi-Hole V5:

  1. From the web Admin GUI > Group Management > Adlists, paste any of the URL's above (or all at once) into the Address: window, and hit Add. After you are done adding, to update gravity use either the pihole -g command from the command line, or Admin GUI > Tools > Update Gravity.

or

  1. You can manually add the URLs to the database with SQL commands - see this section of the documentation:

    https://docs.pi-hole.net/database/gravity/example/

There is an additional option to restore the defaults, but this will remove any existing lists you have installed, so do this only if you have no other lists installed.

Run pihole -r and select reconfigure, then select the desired lists when presented with the option.

-------------------------------------------------------------------------------------------------------------------------------

For additional reference, the default lists are contained in the Pi-hole installer script, and the code is here:

5 Likes

There used to be 4 or 5 adlists by default. Are the other ones no longer needed?

Correct. They are either no longer available or no longer supported, thus they were dropped from our installer.

2 posts were merged into an existing topic: Merits of using a consolidated blocklist

2 posts were split to a new topic: Merits of using a consolidated blocklist