Does Pi-hole block YouTube ads?

22 Mar.,2024

 

Expected Behaviour:

Ads should be blocked when I visit any website

Actual Behaviour:

Ads are not being blocked. Tested on Youtube.

I was initially not able to get the DNS Server changed on my router, so I set up the Pihole as the DHCP Server as well and turned off DHCP on the router.

Based on what I can see in the console, queries are being logged and there are active Clients. but I don't see any ad requests being blocked, and websites are still displaying ads.

Debug Token:

[i] Debug script running in automated mode
* Using curl for transmission.
* curl failed, contact Pi-hole support for assistance.
* Error message: curl: (6) Could not resolve host: tricorder.pi-hole.net

[✗] There was an error uploading your debug log.

  • Please try again or contact the Pi-hole team for assistance.
  • A local copy of the debug log can be found at: /var/log/pihole/pihole_debug.log

Some manually copied excerpts from log:

*** [ DIAGNOSING ]: Name resolution (IPv4) using a random blocked domain and a known ad-serving domain
[✗] Failed to resolve 961.com on lo (127.0.0.1)
[✗] Failed to resolve 961.com on eth0 (192.168.0.80)
[✗] Failed to resolve 961.com on eth0 (192.168.0.243)
[✓] doubleclick.com is 142.250.65.238 via a remote, public DNS server (8.8.8.8)

*** [ DIAGNOSING ]: Name resolution (IPv6) using a random blocked domain and a known ad-serving domain
[✗] Failed to resolve edge.ayboll.com on lo (::1)
[✓] edge.ayboll.com is :: on eth0 (fdf5:3a70:da02:d639:c5dc:2b7b:43f0:f42e)
[✗] Failed to resolve edge.ayboll.com on eth0 (fe80::18a1:78b3:b792:e6c6)
[✗] Failed to resolve doubleclick.com via a remote, public DNS server (2001:4860:4860::8888)

Debug log removed by moderator

Not sure if it's related, but I am unable to finish a sudo apt get update on the Pi itself.

I tried searching for help on the forums regarding Youtube ads still getting through PiHole but the last ones seemed several years old. I'm currently in a battle to block adverts without then blocking the video I want to watch. I'm blacklisting the domains that start with R then a number from google but as mentioned in another thread it seems that the adverts and videos are piped from the same source, so either I get adverts and the video, or I get the first few seconds of the video then the perpetual loading notification

I'm expecting that my pihole should be able to identify the adverts and drop them off, or filtering unexpected extra connections, since there's always a pair of requests in the query log that are veeeery subtly different. I've black and white listed as I've gone along and it seems like it alternates between the addresses feeding videos or adverts (sometimes I even get the adverts but not the video / only the first 5 seconds of the video). Are there recommendations for additional settings/setup to sort this at all?

  • Running PiHole (latest) on RaspPi 4 8gb, no additional bits, User is also running n00bOS in relation to RaspPi and Pihole.

(https://tricorder.pi-hole.net/SM3qBb56/)

Does Pi-hole block YouTube ads?

Youtube ads getting through Pihole / Any advances in 100% blocking without also blocking Youtube videos?

For more information, please visit wire line drilling, reverse circulation, mining drilling machine.