| Autor | 
    Nachricht | 
   
  
    | 
      
     | 
    
      
        
					
            Titel: hosts file 
             Verfasst 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
            
           | 
         
         
	        |     | 
	       
       
     | 
   
  
    | 
      
      
     | 
   
  
      | 
   
  
    | 
      
     | 
    
      
        
					
            Titel: hosts file 
             Verfasst 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
            
           | 
         
         
	        |     | 
	       
       
     | 
   
  
    | 
      
      
     | 
   
  
      | 
   
  
  
    | 
      
     | 
   
 
					 | 
				 
			 
		 |