My Own Lists?

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 173.194.131.107

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.

ty

First thought - blocking YouTube ads with these domains will prove fruitless, and may interfere with your desired content. Very long running thread here:

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:

0.0.0.0 www.jiztini.com

127.0.0.1 www.jiztini.com

www.jiztini.com

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:

file:///filepath/filename

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 balllooooon

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
3458682

Without:

pi@ph5b:~ $ curl -sSL https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts | sed 's/^0.0.0.0 //' | wc -c
2577946

Thats a reduction of date of about 25%.
Not worth the effort.

2 Likes

Enable gzip compression like we added a few releases ago and that drops considerably.

2 Likes

Aha:

pi@ph5b:~ $ curl -sSLI https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
[..]
content-length: 3458682

Vs:

pi@ph5b:~ $ curl -sSLI --compressed https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
[..]
content-length: 845551
1 Like

Yep, repetitive content like 0.0.0.0 smush down really nicely. :wink:

Thats what compression is for :+1:

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?

We don't 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.

1 Like