PROJET AUTOBLOG


Shaarli - Les discussions de Shaarli

Archivé

Site original : Shaarli - Les discussions de Shaarli du 23/07/2013

⇐ retour index

Using a Hosts File To Make The Internet Not Suck (as much)

samedi 14 septembre 2013 à 16:32
Colibri, le 14/09/2013 à 13:21
# This hosts file is brought to you by Dan Pollock and can be found at
# http://someonewhocares.org/hosts/
# You are free to copy and distribute this file, as long the original
# URL is included. See below for acknowledgements.

# Please forward any additions, corrections or comments by email to
# hosts@someonewhocares.org

# Last updated: Sep 10th, 2013 at 14:42

# Use this file to prevent your computer from connecting to selected
# internet hosts. This is an easy and effective way to protect you from
# many types of spyware, reduces bandwidth use, blocks certain pop-up
# traps, prevents user tracking by way of "web bugs" embedded in spam,
# provides partial protection to IE from certain web-based exploits and
# blocks most advertising you would otherwise be subjected to on the
# internet.

Bonne initiative
(Permalink)

Sebsauvage, le 14/09/2013 à 16:32
Non non et non. Ces gens qui font des fichiers hosts ont tout faux !
Il ne faut pas faire: 127.0.0.1 blablabla.com
mais: 0.0.0.0 blablabla.com

Pourquoi ?
En faisant 127.0.0.1, quand une ressource est indiquée dans une page web, votre navigateur fait: Requête sur 127.0.0.1 --> attente de réponse --> attente de réponse --> attente de réponse --> attente de réponse --> attente de réponse --> Oh 127.0.0.1 ne répond pas, je passe à la suite.

Avec 0.0.0.0, le navigateur fait: Requête sur 127.0.0.1 --> échec immédiat (l'adresse réseau n'existe pas) ---> Je passe à la suite.

C'est donc bien plus rapide avec 0.0.0.0.

Le problème également avec ces listes, c'est qu'il suffit au propriétaire d'un domaine de créer un sous-domaine pour contourner le blocage.

EDIT: Ah le gars qui a fait le fichier est intelligent: Il y a une version avec 0.0.0.0 : http://someonewhocares.org/hosts/zero/
(Permalink)