Please follow the below template, it will help us to help you!
If you are Experiencing issues with a Pi-hole install that has non-standard elements (e.g you are using nginx, apache2 or another reverse proxy, or there is some other aspect of your install that is customised) - please use the Community Help category.
Expected Behaviour:
My pihole is working off a raspbery connected to LAN. It blocks adds on standard websites pretty well but when I open up youtube I can see the video load for 5 seconds. Followed by a Pihole block. Youtube tries to open a second video and pihole responds to it with a block 2 seconds delay this time. This happens a couple of times and youtube gives up and plays the video. I wanted to know how I can reduce the response time for youtube blocking.
Pi-hole doesn't block YouTube adverts. Pi-hole blocks domains but YouTube adverts are served from the same domains as the video content. This means Pi-hole, and any other DNS-based approach, has nothing to block.
Oh that's strange. I don't have any other blocking mechanism for ads. I specifically removed ublock origin on my chrome browser on my pc to test and see if my Pi hole would block youtube ads on their webpage. That was the only ad blocker extension i had. Can anyone test if with the manifest v3 that Google released whether they goofed up and started serving ads using ad servers again? I assume this is what allows pi hole to block ads on browser web pages for me. However, if I'm the only one. Then maybe I've discovered some new way of blocking YouTube ads
YouTube likes to explore various approaches to ads and content delivery and it's not impossible that you happened to catch them during such a modification and saw particular behaviour.
But Pi-hole continues to be a DNS blocker and, along with other such DNS-based approaches, has no concept of blocking web page content. It will return unreachable IPs for domains that match those in its blocking database regardless of what or where on the local network is asking for them.
In those cases you can catch such domains as they get blocked in the Query Log and use the Advanced filtering there to search for specific domains from a particular time period.
YouTube switched, a long time ago, to integrating adverts so that they are all served from the same domains as the content, meaning a DNS-based approach can't be used to filter them. You either need a client-based approach, or else subscribe to YouTube Premium which prevents them from being delivered to you in the first place.