28.03.2024, 14:27 UhrDeutsch | English
Hallo Gast [ Registrierung | Anmelden ]

Neues Thema eröffnen   Neue Antwort erstellen
Vorheriges Thema anzeigen Druckerfreundliche Version Einloggen, um private Nachrichten zu lesen Nächstes Thema anzeigen
Autor Nachricht
anvilhead
Titel: hosts file  BeitragVerfasst am: 16.10.2007, 20:42 Uhr



Anmeldung: 12. Mar 2006
Beiträge: 91
Wohnort: 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
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
spacepenguin
Titel: hosts file  BeitragVerfasst am: 21.10.2007, 02:19 Uhr



Anmeldung: 10. Dez 2004
Beiträge: 597
Wohnort: 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
 
 Benutzer-Profile anzeigen Private Nachricht senden Website dieses Benutzers besuchen  
Antworten mit Zitat Nach oben
Beiträge vom vorherigen Thema anzeigen:     
Gehe zu:  
Alle Zeiten sind GMT + 1 Stunde
Neues Thema eröffnen   Neue Antwort erstellen
Vorheriges Thema anzeigen Druckerfreundliche Version Einloggen, um private Nachrichten zu lesen Nächstes Thema anzeigen
PNphpBB2 © 2003-2007 
 
Deutsch | English
Logos and trademarks are the property of their respective owners, comments are property of their posters, the rest is © 2004 - 2006 by Jörg Schirottke (Kano).
Consult Impressum and Legal Terms for details. Kanotix is Free Software released under the GNU/GPL license.
This CMS is powered by PostNuke, all themes used at this site are released under the GNU/GPL license. designed and hosted by w3you. Our web server is running on Kanotix64-2006.