kanotix.com

Installation - hosts file

anvilhead - 16.10.2007, 20:42 Uhr
Titel: hosts file
Has anyone here used /etc/hosts to block bad websites and Web objects? Details:

Blocking Unwanted Parasites with a Hosts File
http://www.mvps.org/winhelp2002/hosts.htm

...and how to use that method with *nix:

Hosts File for Linux or Unix
http://www.accs-net.com/hosts/hostsforlinux.html

Windows's default hosts file has only one line:
Code:
127.0.0.1   localhost

Kanotix's hosts says:
Code:
127.0.0.1   localhost
127.0.1.1   [user's system name is added here]

# The following lines are desirable for IPv6 capable hosts
# (added automatically by netbase upgrade)

::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

Obviously the first two entries are necessary---but will the stuff after the 2nd entry interfere with any addresses that are added? (On a standalone system, maybe the entries after the 2nd one aren't needed?)

Thanks, Andy
spacepenguin - 21.10.2007, 02:19 Uhr
Titel: hosts file
I use the hosts file to block unwanted addresses since I use linux. I don't know what's the use of those ipv6 entries, I just appended a "Junk" section after that part, like this:

##JUNK##
0.0.0.0 ad.doubleclick.net
0.0.0.0 us.a1.yimg.com
...
Alle Zeiten sind GMT + 1 Stunde
PNphpBB2 © 2003-2007