A list of YouTube video ad domains. (EXPERIMENTAL!)
Branch: master
Clone or download
root root
Latest commit e0320ff Oct 30, 2017
Type Name Latest commit message Commit time
Failed to load latest commit information.
script Update lists Mon 30 Oct 17:53:13 EDT 2017 Oct 30, 2017
LICENSE Update LICENSE Jul 5, 2017
README.md Update lists Mon 30 Oct 17:53:13 EDT 2017 Oct 30, 2017
domainlist.txt Update domainlist.txt Oct 22, 2017
hosts.txt Update lists Mon 30 Oct 17:53:13 EDT 2017 Oct 30, 2017


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 rx---sn-gwpa-cags.googlevideo.com Blocking this will prevent the video from playing!
Add https://raw.githubusercontent.com/anudeepND/youtubeadsblacklist/master/domainlist.txt 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