Post by JohnnyE un semplice (+ o -) file di testo riesce a bloccare pop-up o siti
contenenti anche malware?
Il meccanismo e' molto semplice ed e' descritto anche nel sito. Il file
HOSTS viene caricato in memoria all'avvio di Windows il quale controlla
*prima* in questo file la corrispondenza IP/SITO e *poi* passa la richiesta
al server DNS. Quindi, se nel sito che visiti c'e' un riferimento a
DoubleClick, Windows controlla il file HOSTS e, dato che tu hai mandato
DoubleClick a localhost, ogni riferimento a DoubleClick *non* viene
automaticamente risolto...
Ti riposto alcuni stralci del sito che puoi facilmente tradurre:
"The Hosts file contains the mappings of IP addresses to host names. This
file is loaded into memory (cache) at startup, then Windows checks the Hosts
file before it queries any DNS servers, which enables it to override
addresses in the DNS. This prevents access to the listed sites by
redirecting any connection attempts back to the local (your) machine.
Another feature of the HOSTS file is its ability to block other applications
from connecting to the Internet, providing the entry exists."
"Example - the following entry 127.0.0.1 ad.doubleclick.net blocks all files
supplied by that DoubleClick Server to the web page you are viewing. This
also prevents the server from tracking your movements. Why? ... because in
certain cases "Ad Servers" like Doubleclick (and many others) will try
silently to open a separate connection on the webpage you are viewing,
record your movements then yes ... follow you to additional sites you may
visit."
E' di tutta evidenza che il file HOSTS puo' modificarlo ogni utente anche
per esigenze particolari. Cosi' ad esempio, se non vuoi che qualcuno
visualizzi le notizie sportive sulla Gazzetta dello Sport puoi aggiungere la
riga 127.0.0.1 www.gazzetta.it al file HOSTS ed ogni volta che digiterai il
sito della Gazzetta sarai mandato a localhost ed eviterai di leggere le
ultime figuracce della Juventus :-)