Block ads: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=== block ads === ==== via /etc/hosts ==== I push this out via puppet to linux machins: <pre> # blacklist ad servers 127.0.0.1 static.doubleclick.net 127.0.0.1 sharing.wane.c...") |
No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 21: | Line 21: | ||
127.0.0.1 cdn.atdmt.com | 127.0.0.1 cdn.atdmt.com | ||
</pre> | </pre> | ||
==== youtube ads on android ==== | |||
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 ==== | |||
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 |
Latest revision as of 01:33, 14 November 2014
block ads
via /etc/hosts
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
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
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