rawr
April 18, 2017, 3:48pm
1
2 Likes
I will take a look at this,,, I like having multiple ways to do the same thing.
I just started this thread, I put alot of work into putting together a script to help get pihole running faster.
I might look at adding this to my project.
piadvanced
Thanks to the people of pihole-discourse and reddit. This is just a collection of other people's work in a nice package. I do not claim credit for anything other than creating this series of scripts.
This is a custom install for my pi! I am a tinkerer, and when I tinker, I tend to break things!!!
I started this as a much simpler script to help assist me in getting things back up and running as fast as possible.
A few of these things are easily done with raspi-config,, but this stream…
Edit: I tested this script out and it works really well.
Here's the quick way to install this:
sudo wget https://pastebin.com/raw/dAAGmME9 -P /var/www/html/admin/
sudo mv /var/www/html/admin/dAAGmME9 /var/www/html/admin/parser.php
sudo echo "http://localhost/admin/parser.php?list=antipopads" | sudo tee --append /etc/pihole/adlists.list
sudo echo "http://localhost/admin/parser.php?list=adware_filters" | sudo tee --append /etc/pihole/adlists.list
sudo echo "http://localhost/admin/parser.php?list=easyprivacy_easylist" | sudo tee --append /etc/pihole/adlists.list
sudo echo "http://localhost/admin/parser.php?list=adguard_dns" | sudo tee --append /etc/pihole/adlists.list
sudo echo "http://localhost/admin/parser.php?list=fanboy_ultimate" | sudo tee --append /etc/pihole/adlists.list
sudo echo "http://localhost/admin/parser.php?list=blockzilla" | sudo tee --append /etc/pihole/adlists.list
sudo echo "http://localhost/admin/parser.php?list=openpish" | sudo tee --append /etc/pihole/adlists.list
sudo echo "http://localhost/admin/parser.php?list=malwareurls" | sudo tee --append /etc/pihole/adlists.list
sudo echo "http://localhost/admin/parser.php?list=adguard_mobile" | sudo tee --append /etc/pihole/adlists.list
sudo echo "http://localhost/admin/parser.php?list=easylist_de2" | sudo tee --append /etc/pihole/adlists.list
sudo echo "http://localhost/admin/parser.php?list=adguard_en" | sudo tee --append /etc/pihole/adlists.list
sudo echo "http://localhost/admin/parser.php?list=adguard_de" | sudo tee --append /etc/pihole/adlists.list
1 Like
This would be really cool if added directly to PiHole, with a webui page to add and remove lists from it.
Edit: If this were combined with Wally3k's block page classifications,, that would be even cooler!
Mcat12
April 24, 2017, 10:35pm
5
Ad list management will be in the next release:
pi-hole:devel
← pi-hole:customizeadlists
opened 04:39PM - 15 Dec 16 UTC
Changes proposed in this pull request:
- Enable/disable all lists from /etc/p… ihole/adlists.default from the Settings page
- Add new ad lists to user-defined file that will be preserved on updates
![screenshot at 2016-12-16 15-35-36](https://cloud.githubusercontent.com/assets/16748619/21266205/4e48c6ba-c3a5-11e6-8b51-75a69097e5d4.png)
This section is loaded in collapsed form since it needs quite some space of the Settings page...
@pi-hole/dashboard
1 Like
My apologies if this is necroposting, but I followed your "quick way to install" steps, and it did not work.
The important thing to note is that I used my own version of the PHP, located at <?php/*types:adblock -> ||sub.domain.com^url -> http://sub.domain.com - Pastebin.com , rather than https://pastebin.com/raw/dAAGmME9 . The ONLY difference is that I used different lists in my version of the PHP, and consequently used different echo commands.
When I update my lists, the lists referenced in the PHP and echo commands are created, and seem to update, but they have no data -- this is true in both the webgui and CLI. My blocked domains total does not change, but absolutely should.
Is there a reason that changing the links in parser.php would cause this? I'm at a loss as to what could be doing this.
rawr
June 27, 2017, 5:51pm
7
well, you are using a wrong "type" on some lists, "adblock" is just for lists who use the adblock syntax. the script isnt smart enough to detect which one it should use. and you dont have to parse hosts like lists (http://someonewhocares.org/hosts/zero/hosts etc ...)
1 Like
Thanks! I didn't really grok the type -- thanks for explaining!