Block ads
Jump to navigation
Jump to search
block ads[edit]
via /etc/hosts[edit]
I push this out via puppet to linux machins:
# blacklist ad servers 127.0.0.1 static.doubleclick.net 127.0.0.1 sharing.wane.com 127.0.0.1 googleads.g.doubleclick.net 127.0.0.1 showads.pubmatic.com 127.0.0.1 www.googleadservices.com 127.0.0.1 ad.doubleclick.net 127.0.0.1 ct1.addthis.com 127.0.0.1 liveviewer.ez.no 127.0.0.1 s7.addthis.com 127.0.0.1 www.googletagmanager.com 127.0.0.1 www.google-analytics.com 127.0.0.1 analytics.spongecell.com 127.0.0.1 pagead2.googlesyndication.com 127.0.0.1 a.adroll.com 127.0.0.1 cdn.atdmt.com
youtube ads on android[edit]
should I just install an android ad blocker app? Nah, I don't want to manage every device on the network.
proxy with ad blocking[edit]
maybe something like this http://ralf.schaeftlein.de/2013/07/07/ad-block-with-squid3-and-quintolabs-instead-of-adblock-plus/
Eh, I don't like qlproxy much, so I'll just try using squid, apache, and iptables to make a transparent proxy, since I have all those components installed already.
It was sufficient to use squid in transparent proxy mode with a few ad server domains being blocked. So iptables redirects all outbound traffic to port 80 to the proxy.
This reference was helpful: http://tuxnetworks.blogspot.com/2012/07/squid-3-transparent-proxy.html