Quoting Kae Verens (kverens at webworks.ie):
> an easy solution to most ad problems:
>http://www.everythingisnt.com/hosts.html
Couldn't hurt. Of course, there are entire DNS domains you can
make vanish, too, _if_ you administer your own nameserver: Mine proclaims
itself authoritative for a bunch of advertising domains -- thereby
also automatically taking care of all of their subdomains at the same
time. (See below.) Rather than having to continually add new
[foo].doubleclick.net lines -- the problem with the
http://everythingisnt.com/hosts approach, they're just all gone.
I don't bother to create the zonefiles, so those advertising URLs 404
against the local httpd -- but creative possibilities beckon.
What neither approach deals with are ad sites hyperlinked to by IP
address rather than hostname. For that, you need proxying or netfilter
rulesets.
(excerpt from /etc/bind/named.conf.local:]
//Domains Killed Dirt Cheap:
//"ad-up.com" does Internet advertising and sells lists of e-mail addresses.
zone "ad-up.com" {
type master;
allow-query { any; };
file "/etc/bind/ad-up.com.zone";
};
//"adbot.com" does Internet advertising.
zone "adbot.com" {
type master;
allow-query { any; };
file "/etc/bind/adbot.com.zone";
};
//"adsmart.com" does Internet advertising.
zone "adsmart.com" {
type master;
allow-query { any; };
file "/etc/bind/adsmart.com.zone";
};
//"atlas.cz" is a Czech advertiser.
zone "atlas.cz" {
type master;
allow-query { any; };
file "/etc/bind/atlas.cz.zone";
};
//"blm.net" is an Internet advertiser.
zone "blm.net" {
type master;
allow-query { any; };
file "/etc/bind/blm.net.zone";
};
//"criticalmass.com" is an Internet advertiser.
zone "criticalmass.com" {
type master;
allow-query { any; };
file "/etc/bind/criticalmass.com.zone";
};
//"dogpile.com" is an additional Internet ad domain run by infospace.com.
zone "dogpile.com" {
type master;
allow-query { any; };
file "/etc/bind/dogpile.com.zone";
};
//doubleclick.net must die
zone "doubleclick.net" {
type master;
allow-query { any; };
file "/etc/bind/doubleclick.net.zone";
};
//"focalink.com" is an Internet advertiser.
zone "focalink.com" {
type master;
allow-query { any; };
file "/etc/bind/focalink.com.zone";
};
//"infospace.com" appears to serve up ads from ads.infospace.com.
zone "infospace.com" {
type master;
allow-query { any; };
file "/etc/bind/infospace.com.zone";
};
//"linkexchange.com" are just plain sleazemeisters.
zone "linkexchange.com" {
type master;
allow-query { any; };
file "/etc/bind/linkexchange.com.zone";
};
//"netservice.de" is a German-language Internet advertiser.
zone "netservice.de" {
type master;
allow-query { any; };
file "/etc/bind/netservice.de.zone";
};
//"preferences.com" appears to serve up ads from ads.preferences.com.
zone "preferences.com" {
type master;
allow-query { any; };
file "/etc/bind/preferences.com.zone";
};
//"remoteapproach.com" collects spy-on-users data from Acrobat 7.x and later.
zone "remoteapproach.com" {
type master;
allow-query { any; };
file "/etc/bind/remoteapproach.com.zone";
};
//"riddler.com" advertise from various subdomains.
zone "riddler.com" {
type master;
allow-query { any; };
file "/etc/bind/riddler.com.zone";
};
//"valueclick.com" serves up ads from oz.valueclick.com.
zone "valueclick.com" {
type master;
allow-query { any; };
file "/etc/bind/valueclick.com.zone";
};
//yimg.com must die, too.
zone "yimg.com" {
type master;
file "/etc/bind/yimg.com.zone";
};
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!