How to update adlists from adlists.list file

I updated the adlists.list

ubuntu@ip-172-31-47-40:~$ cat /etc/pihole/adlists.list
https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
https://mirror1.malwaredomains.com/files/justdomains

# Prevent Trackers and Malwares
https://raw.githubusercontent.com/DRSDavidSoft/additional-hosts/master/domains/b                                                                                                                                                             lacklist/adservers-and-trackers.txt
https://gitlab.com/quidsup/notrack-blocklists/raw/master/notrack-malware.txt
https://gitlab.com/quidsup/notrack-blocklists/raw/master/notrack-blocklist.txt
https://raw.githubusercontent.com/notracking/hosts-blocklists/master/hostnames.t                                                                                                                                                             xt
https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
https://gitlab.com/my-privacy-dns/matrix/matrix/-/raw/master/source/tracking/dom                                                                                                                                                             ains.list
https://raw.githubusercontent.com/r-a-y/mobile-hosts/master/AdguardApps.txt
https://raw.githubusercontent.com/r-a-y/mobile-hosts/master/AdguardMobileAds.txt
https://raw.githubusercontent.com/FadeMind/hosts.extras/master/StreamingAds/host                                                                                                                                                             s

but when I rule

pihole -g

or from gui update gravity lists are not updating in GUI as well. Is there any way to update adlists from /etc/pihole/adlists.list file or we have to enter each URL of script in GUI to add it in list.

As of Pi-hole V5, the file /etc/pihole/adlists.list is no longer used. As discussed in the V5 release notes, adlists, domain blocks (regex, whitelist, blacklist), group assignments and gravity are in a single database in file /etc/pihole/gravity.db

If you want to add the lists you show in your post, select the lot of them (without the commented lines), copy to your clipboard. Then go to web admin GUI > Group Management > adlists and paste the lot into the entry window, and select "add". Then rebuild gravity using either the tools menu on the admin GUI or pihole -g from the command line.

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

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