YouTube plays ads on my nVidia Shield, like Pi-Hole never existed

Is that the option 1? I couldn't find out how to do it on my Asus router

Yes, too bad my fritzbox does not allow me to do this.
Only thing I could do was create ip routes for some dns ip's

But blocking ads on youtube seems to be getting more and more difficult.
First thing Keem must do is verify the shield is using the pi as dns.

1 Like

you need uBlock Origin extension in your browser because blocking on DNS level is not enough.

1 Like

That will work for a browser, but the OP is having problems with a separate device that isn't serving content through a browser.

1 Like

Hi guys. I checked now, it seems that it's working.. the .128 is my nVidia Shield IP that i statically set. See attached screen

OK. Now that Pi-Hole is seeing the nVidia box, you might still get some ads on various platforms (YouTube is one).

Pi-Hole is a domain blocker, and typically ads have been served from separate domains than the content. By identifying and blocking the ad-serving domains, you can block the ads. Your subscribed blocklists are lists of ad-serving (or malware or phishing, etc) domains.

What YouTube and others are starting to do is serve the ads from the same domain as the content, but using a rotating subdomain. Pi-Hole can't block the ad domains without also blocking the content. It's a never ending cat and mouse game.

Note that even if you are unable to block the YouTube ads completely, your Pi-Hole is still blocking a lot of other content (tracking, ads, etc.) for other domains (Neflix, etc) on the nVidia.

Here are some related threads (long in the first case). I recommend reading them all for some insight.

Ahh I understand! I also found some lists to try to block out as much as possible. Thanks for your detailed feedback. At least now I know that the pihole works.

Should I use blocklist or blacklist when finding .txt lists?

I don't understand this question. Please clarify.

For example I found this: pi-hole/hosts at master · hulkhaugen/pi-hole · GitHub

Some guides says I should paste the whole link in to blocklist under "settings". But I also see a "blacklist" above settings.. So there's a blocklist and a blacklist.. Not sure which one to use..

Also, is there an easy way to catch the ads-addresses? For example opening YouTube on my computer and have an extension of some sort that will catch all the ads addresses for me to go through afterwards?

Blocklist or blacklist.. Which one of them should I use? I need to have a little more detailed description than that msatter. Also, I don't use ublock since I am running a shield.. But I am looking for a way to snap up all the ads addresses.

To clarify the terminology:

  1. Block lists are publicly maintained lists of domains, hosted on a web location somewhere. When you subscribe to a "block list", Pi-Hole will go to the web and read the entire contents of that block list and add it to gravity (the master list of blocked domains). If you look in your block lists (Web admin GUI > Settings > Blocklists), you see that it consists of web addresses that lead to block lists maintained at each web site.

I would avoid a lot of the lists you find sprinkled around the internet. Many have been adapted from other ad blocker software (AdBlock, for example) and don't follow the correct format. The best collection of blocklists in my opinion is maintained at: by wally3k, one of the developers.

  1. The black list is a locally maintained (on your Pi-Hole) list of domains that you want blocked, typically put here because they aren't on one of your subscribed block lists.

  2. White list is a black list in reverse. It's local, but you are telling Pi-Hole not to block that domain.

My advice - start with the seven standard block lists that you installed with Pi-Hole. See how that works for you. If you are seeing things you don't want, then blacklist them. If things are blocked that you want, white list them.

There is a big temptation to go out and collect block lists like treasure coins. Typically all this will do is give you a lot of false blocks and drive you nuts.

DNSThingy is a Chrome browser extension that works well to show you all the domains that are requested with a website. It is discussed a bit in this thread, which is worth a read:


OK. Do not have a nvidia shield, In this device: is it possible to use a proxy?..
If not, blocking the ads will be possible only on DNS level (pihole)
If you can set a proxy, there is options.

I use privoxy and inject the adblock pro rules (easylist) in there.
msatter is promoting ublock, but you can not use ublock on your nvidia shield, unless there is some way of installing plugins on that nvidia shield.

Regarding the blacklists: here is what I am using:;showintro=0


1 Like

Nice, thanks! Will add them.. And yes, I have a proxy setting on the nvidia shield. Is there an wasy way of doing what you're saying?

Please be aware adding these lists might block more than you opted may break some stuff.

Nope :frowning:
Sorry, Unless you have some exerience with setting up stuff on your raspberry or have exeprience with installing proxy software.
And it is not a wonderpill either, I still have ads sometimes, even with the filters.

You can setup privoxy on the raspberry, but huge adblock list inside privoxy will slow down your browsing as the pi is too slow for this. But it can be done.
If you are up for a challenge: install privoxy on the raspberry pi, get it running on 8118 (default) and set the shield pproxy setting to the ip and port of privoxy..
If you can still do any "network" related on the shield, I can send you the action files needed.

Being a stickler on terminology - these are block lists, not blacklists.

But can I put these individually in to the blacklist?

You could open each of those web files, and them put the domains in your blacklist, but this would be the incorrect approach. That would make a static copy of active lists.

By putting those web domains into your block list (subscribing to each block list), when Pi-Hole rebuilds gravity it will pull all the domains from those subscribed block lists into gravity. Additionally, when gravity is rebuilt the duplicates (and there are many) are removed, leaving you with a gravity list of non-duplicates.

The other advantage of subscribing to an active block list (instead of adding lines to your blacklist) is that the block lists on the web are actively maintained (domains are added and removed by the list maintainer). When they change their list, Pi-Hole will detect this on the next gravity update (every Sunday morning via a cron script) and update your gravity list accordingly.

As an example, I copied all the block lists from the post above, added them to a Pi in place of the existing block lists, and rebuilt gravity. This is the end of the pihole -g command output showing about 650,000 duplicated domains in those block lists. These duplicates were removed.

[✓] Consolidating blocklists
[✓] Extracting domains from blocklists
[i] Number of domains being pulled in by gravity: 1942816
[✓] Removing duplicate domains
[i] Number of unique domains trapped in the Event Horizon: 1292304

Here is a good FAQ on block lists. Note that Pi-Hole uses lists formatted in HOSTS format.

Many of the lists recommended in the reply above are in other formats, which can cause problems.

If you open, you will see that the first three lines of the file are as follows and the format of the file is incorrect for Pi-Hole.

! Title: uBlock filters -- Annoyances
! Description: Filters optimized for uBlock Origin, to be used with Fanboy's
!              and/or Adguard's "Annoyances" list(s)

This list is not in text format, it's a csv file:

Recommendation - use lists that work with Pi-Hole. Wally3K lists meet this criteria.

Apologieis , yes these are BLOCKLISTS👍