Suppressing Advertisement on Web-Pages a.k.a. Ad-Blocking

· klm's blog


Original post is here: eklausmeier.goip.de

Advertisements on web-pages is ubiquitous. Without advertisement even this blog could not be offered free of charge. But advertisement can be a real nuisance with its blinking, flickering, moving, and distracting appearance. Sometimes they even contain malware.

There are two simple remedies for this problem:

  1. use an adblocker plug-in for your browser
  2. modify your /etc/hosts file

The first one is easy to accomplish, but sometimes web-pages no longer work as expected. The second approach is in some ways more direct and more brutal, and leaves visual clues on the web-pages that brute force has been applied.

Editing /etc/hosts on your Linux desktop is easy. On Android you connect via adb shell, switch to root user with su, then

1mount -o remount,rw /system

i.e., remount the /system directory from read-only to write-enabled, then edit /etc/hosts. Either reboot your smartphone, or

1mount -o remount,ro /system

I use the following list of hosts in my /etc/hosts, which has a somewhat German felling:[more_WP_Tag]

  1# Block annoying ads
  2127.0.0.1	akamai.smartadserver.com
  3127.0.0.1	at.atwola.com
  4127.0.0.1	adserv.quality-channel.de
  5127.0.0.1	s0.2mdn.net
  6127.0.0.1	adfarm1.adition.com
  7127.0.0.1	ad1.adfarm1.adition.com
  8127.0.0.1	ad2.adfarm1.adition.de
  9127.0.0.1	doubleclick.net
 10127.0.0.1	ad-emea.doubleclick.net
 11127.0.0.1	ad.doubleclick.net
 12127.0.0.1	ad.doubleclick.com
 13127.0.0.1	ad.de.doubleclick.net
 14127.0.0.1	googleads.g.doubleclick.net
 15127.0.0.1	pagead2.googlesyndication.com
 16127.0.0.1	tpc.googlesyndication.com
 17127.0.0.1	pubads.g.doubleclick.net
 18127.0.0.1	bid.g.doubleclick.net
 19127.0.0.1	2o7.net
 20127.0.0.1	metalyzer.com
 21127.0.0.1	static.2mdn.net
 22127.0.0.1	adserver.adtech.de
 23127.0.0.1	www.nuggad.net
 24127.0.0.1	nuggad.net
 25127.0.0.1	asv.nuggad.net
 26127.0.0.1	fxm.nuggad.net
 27127.0.0.1	oms.nuggad.net
 28127.0.0.1	tofo.nuggad.net
 29127.0.0.1	si.nuggad.net
 30127.0.0.1	cdn1.smartadserver.com
 31127.0.0.1	adimg.uimserv.net
 32127.0.0.1	rm.newtentionassets.net
 33127.0.0.1	ad.yieldmanager.com
 34127.0.0.1	euros4click.de
 35127.0.0.1	media.funpic.de
 36127.0.0.1	adfarm.mediaplex.com
 37127.0.0.1	img-cdn.mediaplex.com
 38127.0.0.1	im.banner.t-online.de
 39127.0.0.1	adclient.uimserv.net
 40127.0.0.1	ads.yimg.com
 41127.0.0.1	ds.serving-sys.com
 42127.0.0.1	mjxads.internet.com
 43127.0.0.1	adserver.freenet.de
 44127.0.0.1	view.binlayer.com
 45127.0.0.1	adsfac.eu
 46127.0.0.1	mi.adinterax.com
 47127.0.0.1	trafficrevenue.net
 48127.0.0.1	banners.contentfeed.net
 49127.0.0.1	de.partypoker.com
 50127.0.0.1	de.partycasino.com
 51127.0.0.1	ih.adscale.de
 52127.0.0.1	ads.heias.com
 53127.0.0.1	cdn.flashtalking.com
 54127.0.0.1	ad.amgdgt.com
 55127.0.0.1	eas4.emediate.eu
 56127.0.0.1	ad4.adfarm1.adition.com
 57127.0.0.1	farm.plista.com
 58127.0.0.1	ww251.smartadserver.com
 59127.0.0.1	ced.sascdn.com
 60127.0.0.1	track.adform.net
 61127.0.0.1	o1.qns.com
 62127.0.0.1	springer02.webtrekk.net
 63127.0.0.1	bild.ivwbox.de
 64127.0.0.1	ad.zanox.com
 65127.0.0.1	ad.ad-srv.net
 66127.0.0.1	www.adnxs.com
 67127.0.0.1	adnxs.com
 68127.0.0.1	ib.adnxs.com
 69127.0.0.1	lax1.ib.adnxs.com
 70127.0.0.1	tag.imaginaxs.com
 71127.0.0.1	ivwbox.de
 72127.0.0.1	outbrain.com
 73127.0.0.1	www.ligatus.com
 74127.0.0.1	ligatus.com
 75127.0.0.1	r.ligatus.com
 76127.0.0.1	yieldlab.net
 77127.0.0.1	www.scorecardresearch.com
 78127.0.0.1	scorecardresearch.com
 79127.0.0.1	krxd.net
 80127.0.0.1	a.adroll.com
 81127.0.0.1	d.adroll.com
 82127.0.0.1	s1.2mdn.net
 83127.0.0.1	addthis.com
 84127.0.0.1	adsrvr.org
 85127.0.0.1	ad.adsrvr.org
 86127.0.0.1	adap.tv
 87127.0.0.1	engine.adzerk.net
 88127.0.0.1	exalator.com
 89127.0.0.1	fastclick.com
 90127.0.0.1	triggit.com
 91127.0.0.1	tidaltv.com
 92127.0.0.1	simpli.fi
 93127.0.0.1	www.active-srv02.de
 94127.0.0.1	imagesrv.adition.com
 95127.0.0.1	c.betrad.com
 96127.0.0.1	batch.threadex.com
 97127.0.0.1	urban.adspirit.de
 98127.0.0.1	pub.adspirit.de
 99127.0.0.1	top.oewabox.at
100127.0.0.1	a.visualrevenue.com
101127.0.0.1	ads.yahoo.com
102127.0.0.1	sponsorads.de
103127.0.0.1	www.sponsorads.de
104127.0.0.1	imgserv.sponsorads.de
105127.0.0.1	1414.de
106127.0.0.1	adgrx.com
107127.0.0.1	adaos-ads.com
108127.0.0.1	ad.360-yield.com
109127.0.0.1	img.turn.com
110127.0.0.1	streaming.ad-balancer.at
111127.0.0.1	ipage.grm-pro.com
112127.0.0.1	wa.kurier.at
113127.0.0.1	pix04.revsci.net
114127.0.0.1	hubtraffic.com
115127.0.0.1	ss.phncdn.com
116127.0.0.1	pt.trafficjunky.net
117127.0.0.1	1digitalstock.com
118127.0.0.1	static.1digitalstock.com
119127.0.0.1	cdn.dreamrev.com
120127.0.0.1	go.youlamedia.com
121127.0.0.1	js.moatads.com
122127.0.0.1	cdn1.ads.contentabc.com
123127.0.0.1	cdn.movad.net
124127.0.0.1	a.twiago.com
125127.0.0.1	de.ioam.de
126127.0.0.1	cdn.optimizely.com
127127.0.0.1	inskin.hs.llnwd.net
128127.0.0.1	cd.xplosion.de
129127.0.0.1	p.flite.com
130127.0.0.1	asset.flite.com
131127.0.0.1	www.adcash.com
132127.0.0.1	www.mgid.com
133127.0.0.1	imgg.mgid.com
134127.0.0.1	pixel.adsafeprotected.com
135127.0.0.1	secure.flashtalking.com
last updated: