notracking / hosts-blocklists

Automatically updated, moderated and optimized lists for blocking ads, trackers, malware and other garbage
2.31k stars 146 forks source link

Running pihole -g resets list #1

Closed josemalone closed 8 years ago

josemalone commented 8 years ago

Using PH 2.6.3, and following the directions.

After doing pihole -g the adlist.default file is put in its original state like it's being rewritten. I was expecting my previous saved changes to stick.

  • Uncomment the following two lines in /etc/pihole/adlist.default

https://raw.github.com/notracking/hosts-blocklists/master/hostnames.txt https://raw.github.com/notracking/hosts-blocklists/master/domains.txt

  • Comment out any other list that is already included
  • Update blocklists with pihole -g
rotational467 commented 8 years ago

You need to create your own copy of the adlists file, and modify that one (use sudo where necessary if not running as root):

cd /etc/pihole cp adlists.default adlists.list nano adlists.list

Make your changes in the adlists.list file, then run pihole -g. You can check the Pi-hole github page if you need a fresh copy of the adlists.default file.

notracking commented 8 years ago

I provided you with the incorrect instructions on how to update the PiHole list. Their adlists.list states the actual correct procedure on how to do this. Thank you for the feedback! I updated the README.