This is an old revision of the document!
The /etc/hosts file contains name resolution info that overrides DNS. You might add entries in the /etc/hosts file that is not in DNS.
Here we use the /etc/hosts file as an ad filter.
Here is a public hosts file that we will use as a starting point:
wget http://www.mvps.org/winhelp2002/hosts.txt vim hosts.txt
Remove all lines before:
#start of lines added by WinHelp2002
and append the rest to your own /etc/hosts file.
wget -O hosts "http://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=0&startdate[day]=&startdate[month]=&startdate[year]=&mimetype=plaintext" cat hosts >> /etc/hosts cat hosts.txt >> /etc/hosts
http://wiki.contribs.org/Block_Adware_Sites
wget http://www.mvps.org/winhelp2002/hosts.txt mv hosts.txt /etc/e-smith/templates/etc/hosts/30hosts vim /etc/e-smith/templates/etc/hosts/30hosts
Remove all lines before:
#start of lines added by WinHelp2002
wget -O hosts "http://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=0&startdate[day]=&startdate[month]=&startdate[year]=&mimetype=plaintext" cat hosts >> /etc/e-smith/templates/etc/hosts/30hosts expand-template /etc/hosts