kboghdady / youTube_ads_4_pi-hole

YouTube script to add the new Ads list for Pi-hole
2.44k stars 266 forks source link

Discovered something about Google Youtube Ad patterns. (You probably already know). #94

Open onemillionbucks opened 3 years ago

onemillionbucks commented 3 years ago

Through a night of testing, my pihole Youtube in-video Ad queries are often in this form. r3---sn-n4v7knl6.googlevideo.com I enabled regex blocking on r1---sn- ... all the way up to r7---sn-

But Susan Wojicki is a sneaky bugger.

I ended up blocking the playing of videos this way as well.

The ads and the videos themselves seem to share this regular expression. Luckily, I have a suspicion that the ads load before the video, and this way I can brainlessly blacklist the first " r(number)---sn- " in my queries list under the presumption that it was the ad loaded into my video.

There must be some way we can win this war, and there must be a better way and doing it manually so far has bared minimal fruit.

I would like to share those blacklisted addresses though, let me know if I those are wanted.

OliverWasson commented 3 years ago

There needs to be an addition to pihole or a script that whenever a "googlevideo" domain is queued it scans the queries if it request two different domains. Then it blocks the ad domain, leaving the video domain alone, everytime.