Awesome Open Source
Awesome Open Source

YouTube Video ads Blocklist

Updated on: Mon 30 Oct 17:53:13 EDT 2017

These domains are region specific and each device will get a different set of domains. You may get ad from other domains which are not included in the lists. You can request additional domains via Issues tab.

Blocking video ads is kind of like Whack-A-Mole. The domain names often change, so users feedback is very helpful. Also there's is no guarantee that this list will block 100% of the ads, however the results were promising. One should also note that the actual content is also delivered using similar domains, for example Blocking this will prevent the video from playing!
Add file to adlist.

Important Note: YouTube seems to cache ads, so please clean cache after adding or updating this list.


1). How do I determine an ad domain?
a). DNSthingy Assistant

This browser extension will list all of the domains that are queried when a web page is loaded. You can often look at the list of domains and cherry pick the ones that appear to be ad-serving domains.

Alt text

b). Using inbuilt Developer tool

For Chrome ctrl+shift+I will land you in Developer tools menu. Alt text

2). I'm receiving connection timeout error while playing videos.

Make sure the traffic on port 443 is rejected. Use the below iptables rule:

sudo iptables -A INPUT -p tcp --destination-port 443 -j REJECT for IPv4
sudo ip6tables -A INPUT -p tcp --destination-port 443 -j REJECT for IPv6

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
shell (10,229
youtube (360
adblock (88
blacklist (39
ad-blocker (27
blocklist (24