1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-11-19 22:58:16 +00:00
Commit Graph

13 Commits

Author SHA1 Message Date
jacobsalmela
a8874fb606 Fixes #6 whitelist not found when using sudo
This fixes #6 by changing the location of the whitelist.txt file.
Instead of storing it in the current users home folder, it should be
created in /etc/pihole.  The script will also create the directory if
it does not exist, but will not add a whitelist.txt by default.  You
would still need to go back and manually add one.  But this directory
will be used to store other support files as the script improves.

I also added sudo commands to the commands requiring elevation.

Finally, changed the comment to reflect a more accurate number of
domains getting blocked.
2015-03-10 12:27:57 -05:00
jacobsalmela
b5cf6de4a3 Fixes issue #2 whitelist support
Just put a file named whitelist.txt in your home folder.  This file
should contain one domain per line that needs to be whitelisted.  If
the file does not exists, the script will continue as normal.
2015-02-22 17:54:03 -06:00
jacobsalmela
47baa1a6fd Removes more duplicates that uniq could not find
http://jacobsalmela.com/raspberry-pi-ad-blocker-advanced-setup/#comment-
1860675175

Thanks to napgravy for figuring this out.  It seems the DOS-style
line-endings that prevented uniq from getting rid of them.  This
reduces the ad domains from ~140,000 to around ~120,000 but it is much
more accurate.
2015-02-17 16:10:28 -06:00
jacobsalmela
b7573a533a Now blocks over 140,000 ad domains
In addition to the extra domains, there are numerous performance
improvements so the script runs faster.  There were also some
extraneous domains that were either blank or had some special
characters that needed to be removed.

Since the ad lists are not under my control, the end of the script will
now tell you how many domains will be blocked.  In case the sources it
pulls from ever update, you can run this script again and see the
difference.
2015-02-17 13:52:54 -06:00
jacobsalmela
eb4d2382cd oops im a n00b 2015-02-08 17:06:43 -06:00
jacobsalmela
b7e6c4ec28 comment 2015-02-08 17:03:34 -06:00
jacobsalmela
32246e2e15 using loopback 2015-02-08 16:58:47 -06:00
dwin999
1fd32687e6 Update gravity-adv.sh
This works much faster.
2015-01-25 01:11:28 +00:00
Jacob Salmela
8c568445d6 another ad list 2014-11-12 14:18:05 -06:00
Jacob Salmela
1e4e65e2c0 Update gravity-adv.sh 2014-10-17 18:46:15 -05:00
Jacob Salmela
4472885191 added echoes
Since this script takes a while to run, I added a bunch of echoes so you can see where it is in the process.
2014-10-12 11:56:43 -05:00
jacobsalmela
691baa1702 logic to check for yoyo list 2014-10-11 15:55:23 -05:00
jacobsalmela
18d6f4b747 initial commit 2014-09-26 09:28:44 -05:00