Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
anvilhead
Post subject: hosts file  PostPosted: Oct 16, 2007 - 08:42 PM



Joined: Mar 12, 2006
Posts: 91
Location: Canada
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

_________________
I'd rather have Kanotix
Than a houseful of narcotics
 
 View user's profile Send private message  
Reply with quote Back to top
spacepenguin
Post subject: hosts file  PostPosted: Oct 21, 2007 - 02:19 AM



Joined: Dec 10, 2004
Posts: 597
Location: Schleswig-Holstein
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
...

_________________
Linux-Userin #213445
LastFM-Musikstatistik für Kanoten
Kanotix, siduction, Kubuntu, antiX
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits