PiHole - Blocking Google Ads

Discussions about everything else
Post Reply
User avatar
esnesi
Godlike
Posts: 1018
Joined: Mon Aug 31, 2015 12:58 pm
Personal rank: Dialed in.

PiHole - Blocking Google Ads

Post by esnesi »

Hi all,

For the people that know about Raspberries and the Pi-Hole project.
https://pi-hole.net/

Recently setted up PiHole on my old RPI1 which i had laying around.

Works perfectly as DNS server so all ads on all clients are blocked.
(nice for mates which come on your WLAN with their nasty apps/games ;))

Unfortunatly Youtube keeps pushing some ads on the homepage and beginning of videos.
This is ofcourse easy solve-able with the famous addon uBlock Origin.

But hey, i dont have this PiHole config for nothing right?!
Goal is to have everything blocked without using third-party extensions.

Went on the search for adding extra blocklists.
https://firebog.net/

It appears Youtube keeps pushing ads through server addresses which are spoofed so not really easy to add in a blocklist.

Does anybody has experience with blocklists esp for Youtube?

Internet tells me its quite impossible;
https://discourse.pi-hole.net/t/how-do- ... outube/253

*already had to whitelist some services, cause Playstore could not connect ;)
clients1.google.com
clients2.google.com
clients3.google.com
clients4.google.com
clients5.google.com
clients6.google.com
Last edited by esnesi on Sat Dec 29, 2018 9:52 pm, edited 1 time in total.
User avatar
papercoffee
Godlike
Posts: 10443
Joined: Wed Jul 15, 2009 11:36 am
Personal rank: coffee addicted !!!
Location: Cologne, the city with the big cathedral.
Contact:

Re: PiHole - Blocking Google Ads

Post by papercoffee »

You want to block advertising on Youtube?
Or did I misunderstood.
User avatar
esnesi
Godlike
Posts: 1018
Joined: Mon Aug 31, 2015 12:58 pm
Personal rank: Dialed in.

Re: PiHole - Blocking Google Ads

Post by esnesi »

papercoffee wrote:You want to block advertising on Youtube?
Or did I misunderstood.
yes, with the use of blocklists, without using ublock.
or any other ad blocking extension ;)
User avatar
papercoffee
Godlike
Posts: 10443
Joined: Wed Jul 15, 2009 11:36 am
Personal rank: coffee addicted !!!
Location: Cologne, the city with the big cathedral.
Contact:

Re: PiHole - Blocking Google Ads

Post by papercoffee »

NoScript and µBlock Origin does a very good job.
I just got reminded by your post that there are ads on Youtube.

How can people without those two extensions surf the internet and stay sane?!!
User avatar
esnesi
Godlike
Posts: 1018
Joined: Mon Aug 31, 2015 12:58 pm
Personal rank: Dialed in.

Re: PiHole - Blocking Google Ads

Post by esnesi »

papercoffee wrote:NoScript and µBlock Origin does a very good job.
I just got reminded by your post that there are ads on Youtube.

How can people without those two extensions surf the internet and stay sane?!!
Without any extensions i say Paper.
Unfortunatly Youtube keeps pushing some ads on the homepage and beginning of videos.
This is ofcourse easy solve-able with the famous addon uBlock Origin.

But hey, i dont have this PiHole config for nothing right?!
PiHole should be able to catch all these. (Once the right blocklists are added)
I've disabled my extensions and all sites are clean.

Image

Only Youtube seems to sneak ads through spoofing addresses.
User avatar
sektor2111
Godlike
Posts: 6403
Joined: Sun May 09, 2010 6:15 pm
Location: On the roof.

Re: PiHole - Blocking Google Ads

Post by sektor2111 »

Pssst...
I'm a youtube watcher from time to time and using my Phone because... it's faster than all my computers at once, LOL. A smarty dev is mirroring phone's screen on a TV/Monitor. What's exactly the main advantage ? I'm using some tweaked YouTube without adds, I did not see any add-on for months, not the last thing, there are several apps creating an internal VPN filtering adds properly like AddBlock does, my phone last time was clean like crystal and I can watch videos and do my jobs without to be annoyed - even web-sites are filtered, they do look clean. I could not manage to root it, but right now I see that I don't even need that - it's a default risk here. I'm an advertising hater, not a single time I forgot what I was looking for because of some annoying crap running in front of my eyes and which I never asked and neither interested - amazingly running for some seconds before to see some closing option popping up. That's why I did a small research around... If you want to find more details we can debate a few names in PM because reading a public forum is doable by any entity and I don't want "connections".

For computer things are more easy, there are plugins in Firefox blocking all junks and then... you might properly use hosts file and a manager app for that, doing updates from time to time automatically. Life is a charm without adds... available also for ut99.org with that "Cookie" thing at bottom which is no longer bugging me...
User avatar
esnesi
Godlike
Posts: 1018
Joined: Mon Aug 31, 2015 12:58 pm
Personal rank: Dialed in.

Re: PiHole - Blocking Google Ads

Post by esnesi »

Everything is working in my life.
I don't need to actually ''debate''.

PiHole extends my life in the world of ad blocking enormously, esp cause i got a lot of friends on my (W)Lan.
uBlock for youtube and iam done.
All the things you describe (cookiewalls and such) Pihole blocks them beautifully, on all my devices.

I saw indeed some modifications that can be done through the hosts file, only for youtube.
Apparently Youtube keeps changing their URL g-243.doubleclick.google.ads.net every 14 days or so, so it will be alot of manual work keep updating that hosts file.
I think ill just keep uBlock for youtube, in a different browser offcourse ;) (chromium)

For the want to know-ers;
https://pi-hole.net

curl -sSL https://install.pi-hole.net | bash
add some blocklists, and done 8)
User avatar
sektor2111
Godlike
Posts: 6403
Joined: Sun May 09, 2010 6:15 pm
Location: On the roof.

Re: PiHole - Blocking Google Ads

Post by sektor2111 »

Understood.

Perhaps I should say "discuss" instead of "debate" because for me both are friendly terms...
But, I'll drop an eye at this PiHole to see what is about... Information appreciated.
User avatar
esnesi
Godlike
Posts: 1018
Joined: Mon Aug 31, 2015 12:58 pm
Personal rank: Dialed in.

Re: PiHole - Blocking Google Ads

Post by esnesi »

Np.



blocklists;
https://firebog.net/
Post Reply