Hi, rather new to Linux & Pihole.
My question is this. I am in the midst of making my own list of URL'S with there respective IP's.
I.E. rr5---sn-tt1e7n7l.googlevideo.com 184.108.40.206
When I'm done I will save it in txt format.
When I'm done compiling my list, how can I upload my list to my pihole.
First thought - blocking YouTube ads with these domains will prove fruitless, and may interfere with your desired content. Very long running thread here:
It's not likely that you'll be able to block in-video ads with Pi-hole. For that, you'll need something like uBlock origin for desktop, or vanced for android (Now defunct),
This thread has been closed as there is not much more discussion to be had around the topic.
User's have had good success here:
I'm updating this top-level post as of 2018-10-16 since a lot of people land here.
Blocking ads on YouTube is hit or miss with Pi-hole. The reason for th…
Second thought - in a hosts formatted file, the IP comes first, then the domain name. You have this backwards.
Pi-hole will import lists that are either in hosts format or simply a list of domains. If the list is in hosts format, Pi-hole will strip the leading IP's and keep only the domains.
All three of these line entries below can be parsed by Pi-hole, and only the domain name (
www.jiztini.com) will remain:
Are you intending to block this domain? Why do you have the actual IP listed along with the domain?
thanks for the reply, I will change the order there in as you suggest.
Yes I'm trying to block youtube ads & potentially other unwanted google stuff & yes I understand it may be like Wack a mole.
Is it possible to upload my local list to my pihole, rather not post on Github or similar page just yet
And as Im still new to Linux & Pi-hole what is parsed plz,
You can put your list in a local file and access it via:
Note the three strokes after the colon - not a typo.
Again thanks for the info, I'll give it a go.
Further down the road I do plan on downloading all my lists & will eventually / hopefully create a HUGE Master list
Or if you want your blocklist in the cloud, you can put it in your DropBox account, get the share link and plug that URL into your Pi-Hole to download from it.
DO NOT put 0.0.0.0 in a pi-hole blocklist file. Tou may think it doesn't add much but it causes the size of the file to absolutely
I thought I needed the 0 and I wget the files from github, and I got a nearly 6,000 KB file. I wondered if it works withiut that and saw there was an
'nl' file for each list. Without the added numbers, that list only takes about 750 kilobtyes, not six megs!
Number of bytes with
0.0.0.0 IP's included in the default adlist that comes with Pi-hole:
pi@ph5b:~ $ curl -sSL https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts | wc -c
pi@ph5b:~ $ curl -sSL https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts | sed 's/^0.0.0.0 //' | wc -c
Thats a reduction of date of about 25%.
Not worth the effort.
Enable gzip compression like we added a few releases ago and that drops considerably.
pi@ph5b:~ $ curl -sSLI https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
pi@ph5b:~ $ curl -sSLI --compressed https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
Yep, repetitive content like
0.0.0.0 smush down really nicely.
Thats what compression is for
depends on how many entries, I have a bit over 101.000 blocked domains, with some of them stripped of... domaims I won't ever visit, not a large amount, like 20 or so.
Removing those 0 saved a staggering amount in one of the blocklists, I'll go link to it on github if you want?
Sure if you want to create your own list, you can decide to omit the IP addresses.
But it wont be a HOSTS format anymore that can be imported by other software (not only Pi-hole).
And we showed you already that omitting the IP's is hardly worth the effort.
Its your list so you decide.