In questo file che si trova nella cartella Windows, utilizzato dal protocollo tc/ip, vengono memorizzati soli i siti incriminati di essere spyware??? :master:
Grazie a tutti.![]()
In questo file che si trova nella cartella Windows, utilizzato dal protocollo tc/ip, vengono memorizzati soli i siti incriminati di essere spyware??? :master:
Grazie a tutti.![]()
No, il file hosts serve solo per associare a un indirizzo IP un nome.
Alcuni software poi aggiungono a questo file la lista dei siti da bloccare semplicemente perche assegnano a quel sito l'indirizzo IP: 127.0.0.1 che è quello della tua macchina, in questo modo invece di collegarti al loro sito ti collegherai alla tua macchina.
Probably the most common way people block ads like this is with something called the "hosts file". The hosts file is a simple list of hostnames and their corresponding IP addresses, which your computer looks at every time you try and contact a previously unknown hostname. If it finds an entry for the computer you're trying to reach, it sets the IP address for that computer to be whatever's in the hosts file.
127.0.0.1 is a special IP address which, to a computer, always means that computer. Any time a machine sends a network request to 127.0.0.1, it is talking to itself. This is very useful when it comes to blocking ads, because all we have to do is specify the IP address of any ad server to be 127.0.0.1. And to do that, all we have to do is edit the hosts file. What will happen then is something like this:
you visit a web page
the web page contains a banner ad stored on the server "ads.example.com"
your computer says "ads.example.com? never heard of it. wait a second, let's see if I've got the number on me..."
your computer finds its hosts file and checks to see if ads.example.com is listed
it finds the hostname, which points to 127.0.0.1
"great", says the computer, and sends off a request to 127.0.0.1 for the banner ad that's supposed to be on the page
"oh", says the computer, and fails to show anything because it just sent a request to itself for a banner ad
Cosa succede in questo caso????
Grazie Sonic
Ma questo nn lo fanno già i dns??No, il file hosts serve solo per associare a un indirizzo IP un nome![]()
![]()
102.54.94.97 rhino.acme.com # server origine
# 38.25.63.10 x.acme.com # client host x
127.0.0.1 localhost
Io nel mio file ho scritto questo: che significa?? Questa cosa nn mi è proprio chiara.....![]()
Succede quello che ti ho spiegato prima.
Quando tu digiti un indirizzo internet questo grazie al sistema DNS viene trasformato nell'IP del Web Server dove c'è il sito.
Prima di interrogare il DNS però il sistema fa una ricerca nel file hosts per vedere se a quel sito è stato assegnato un indirizzo IP.
Se in quel file inserisci l'indirizzo di un sito che inserisce banner (tanto x fare un esempio) e lo assaci all'indirizzo IP 127.0.0.1 (che è uno speciale indirizzo IP che rappresenta il tuo computer), quando troverai una pagina web che farà riferimente a quel sito per caricare un banner questo non potrà essere caricato xkè invece di collegarti al server web del sito che contiene il banner ti collegherai al tuo stesso computer.
Spero di essere stato chiaro.
Per prima cosa la seconda riga non viene analizzata (il carattere # indica che è un commento).[supersaibal]Originariamente inviato da olly
102.54.94.97 rhino.acme.com # server origine
# 38.25.63.10 x.acme.com # client host x
127.0.0.1 localhost
Io nel mio file ho scritto questo: che significa?? Questa cosa nn mi è proprio chiara.....[/supersaibal]
La prima riga significa che il nome rhino.acme.com viene assaciato all'IP 102.54.94.97, la scritta dopo #, come ho gia detto, è un commento.
La prima parte si SonicE' una sorta di mini-cache di indirizzi ip.
Questo di solito lo fanno gli spyware??? E' sempre il dns che associa questo sito all'indirizzo del mio pc ad esempio???Se in quel file inserisci l'indirizzo di un sito che inserisce banner (tanto x fare un esempio) e lo assaci all'indirizzo IP 127.0.0.1....
http://pgl.yoyo.org/adservers/server...stformat=hosts
Questo è un piccolo elenco di siti bloccati perchè "puntano" alla nostra macchina....