# Pi-Hole unable to block ads globally

**URL:** <https://discourse.pi-hole.net/t/pi-hole-unable-to-block-ads-globally/26716>\
**Category:** Help\
**Created:** [January 8, 2020, 1:22pm UTC](https://discourse.pi-hole.net/t/pi-hole-unable-to-block-ads-globally/26716 "2020-01-08T13:22:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![khvnhtung](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/k/a9a28c/32.png) [@khvnhtung](https://discourse.pi-hole.net/u/khvnhtung)\
**Post date:** [January 8, 2020, 1:22pm UTC](https://discourse.pi-hole.net/t/pi-hole-unable-to-block-ads-globally/26716/1 "2020-01-08T13:22:25Z")

</div>

#### Please follow the below template, it will help us to help you!

## Expected Behaviour:

Pi-Hole be able to block ads globally on all devices since I have assigned the Router's DNS to my pi local IP address.

## Actual Behaviour:

Ads haven't been blocked yet even when I ran the repair commands and restarting pihole

## Debug Token:

[https://tricorder.pi-hole.net/poqytsmnjk](https://tricorder.pi-hole.net/poqytsmnjk)

---

<div class="post-metadata">

**Author:** ![jfb](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jfb/32/4332_2.png) [@jfb](https://discourse.pi-hole.net/u/jfb)\
**Post date:** [January 8, 2020, 1:37pm UTC](https://discourse.pi-hole.net/t/pi-hole-unable-to-block-ads-globally/26716/2 "2020-01-08T13:37:26Z")

</div>

Your debug log shows that in the previous 24 hours prior to runnng the debug, the following traffic was processed by Pi-Hole, including 280 blocked queries.

```auto
   [2020-01-08 20:10:58.323 6393] Imported 9790 queries from the long-term database
   [2020-01-08 20:10:58.323 6393] -> Total DNS queries: 9790
   [2020-01-08 20:10:58.324 6393] -> Cached DNS queries: 1767
   [2020-01-08 20:10:58.324 6393] -> Forwarded DNS queries: 7743
   [2020-01-08 20:10:58.324 6393] -> Exactly blocked DNS queries: 280
   [2020-01-08 20:10:58.324 6393] -> Unknown DNS queries: 0
   [2020-01-08 20:10:58.324 6393] -> Unique domains: 352
   [2020-01-08 20:10:58.324 6393] -> Unique clients: 16
   [2020-01-08 20:10:58.324 6393] -> Known forward destinations: 2

```

Let's take a look at some of the details and see what is being blocked and not being blocked. What are the outputs of these commands from the Pi terminal?

```auto
echo ">top-clients withzero (20)" | nc localhost 4711

echo ">top-domains (20)" | nc localhost 4711

echo ">top-ads (20)" | nc localhost 4711

```

Also, can you provide a few URL's where you are seeing ads?

These tools can also help you determine where ads are coming from:

> [@How do I determine what domain an ad is coming from?](https://discourse.pi-hole.net/t/how-do-i-determine-what-domain-an-ad-is-coming-from/1522):
>
> Block ads or fix broken sites This FAQ is written in the context of finding out how to block an ad that isn't blocked automatically, but the same steps can be used to troubleshoot issues with sites that don't function properly. An example is that sometimes certain payment gateways try to collect metrics on the sale, but these domains are blocked by Pi-hole, so the payment cannot be processed. Also, some links send you through several referrers and if one of them is blocked, you may land on a b…

---

<div class="post-metadata">

**Author:** ![khvnhtung](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/k/a9a28c/32.png) [@khvnhtung](https://discourse.pi-hole.net/u/khvnhtung)\
**Post date:** [January 8, 2020, 1:42pm UTC](https://discourse.pi-hole.net/t/pi-hole-unable-to-block-ads-globally/26716/3 "2020-01-08T13:42:49Z")

</div>

The one that I have currently found which bypassed PiHole is YouTube.  
I will try to get a domain to see where the ad it's coming from.

---

<div class="post-metadata">

**Author:** ![jfb](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jfb/32/4332_2.png) [@jfb](https://discourse.pi-hole.net/u/jfb)\
**Post date:** [January 8, 2020, 2:06pm UTC](https://discourse.pi-hole.net/t/pi-hole-unable-to-block-ads-globally/26716/4 "2020-01-08T14:06:02Z")

</div>

You will not be able to reliably block YouTube ads with Pi-Hole. Pi-Hole is a domain blocker, and YouTube serves ads from randomly-generated subdomains of the domain that serves the content. Very long running thread on this topic here:

> [@How do I block ads on YouTube?](https://discourse.pi-hole.net/t/how-do-i-block-ads-on-youtube/253):
>
> 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/](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…

---

<div class="post-metadata">

**Author:** ![system](https://discourse.pi-hole.net/uploads/default/original/3X/7/c/7c8792f649eeb921c5d2b4c41564ffa873d9a2b8.png) [@system](https://discourse.pi-hole.net/u/system)\
**Post date:** [January 29, 2020, 2:06pm UTC](https://discourse.pi-hole.net/t/pi-hole-unable-to-block-ads-globally/26716/5 "2020-01-29T14:06:05Z")

</div>

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
