me_zack
September 18, 2021, 8:39am
1
Could someone help me how to block this urls in youtube.
youtube.com/api/stats/ads?
youtube.com/api/stats/qoe?
youtube.com/api/stats/watchtime?
youtube.com/api/stats/playback?
youtube.com/ptracking?
youtube.com/youtubei/v1/log_event?
This urls will call video ads
I did try with regex below but still not working.
((..)?youtube.. /stats.)
((. .)?youtube../v1. )
Not possible with Pi-hole
Update 2020-10-24
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.
Update 2018-11-14
User's have had good success here:
https://www.reddit.com/r/pihole/comments/9w5swx/i_think_ive_managed_to_block_youtube_ads_with/
I'm updating this top-level post as of 2018-10-16 since a lot o…
1 Like
me_zack
September 18, 2021, 10:01am
3
Thank a lot.
after few try how to get edit /etc/hosts file
I manage to go true that file.
Since that video ads no more appear
HvdW
October 4, 2021, 10:38am
5
How is it today?
Still able to block ads?
Start by using uBlock Origin.
Alternatives:
Youtube Vanced, NewPipe on Android
Individuous YouTube proxy from GitHub
Browser extension SponsorBlock
Hi HvdW
Thank for suggestion.
Yes I still manage to block ads from YouTube average 96%. But not using method above. Remain with regex to filter URLs like mention on top + unbound
Hi can you please share regx and list that you use to block YouTube ads thanks or share GitHub links to your hosts thanks
Hi Qadeer_Hussain
Below my regex blacklist for blocking Youtube Ads. For the regex below only Ads coming on first play on Youtube seldom Ads play in between Youtube.
Please at regex below to whitelist if you have problem to play Youtube on computer.
Thank you me_zack it’s better know it’s blocking more for me
system
Closed
October 27, 2021, 12:17pm
10
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.