FORUM D’ENTRAIDE INFORMATIQUE (FEI)
Site d’assistance et de sécurité informatique

  • Avatar du membre
Avatar du membre
par Invité
#10797
Bonjour.

Description du fichier hosts :
Le fichier hosts permet de filtrer l'accès à Internet, en attribuant à un site une adresse locale (127.0.0.1).
On peut aussi accélérer l'accès d'un site, en attribuant, à ce dernier, non pas une adresse locale, mais son adresse IP.

Voici un fichiers hosts vierge :
# Copyright (c) 1993-2006 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host
#
# Fichier hosts restauré par Little Boy62

127.0.0.1       localhost
::1             localhost


Rappels :
/!\ Un fichier hosts se finit TOUJOURS par une ligne vide.

/!\ Il y a une tabulation (et non un espace) entre l'adresse locale / Adresse IP et le site concerné

=======================
=======================

Nous allons voir comment :
  • Bloquer un site
  • Accélérer un site
  • Restaurer le fichiers hosts (et bien plus)
/!\ Rappel pour les possesseurs de windows vista
[tableborder=1][tr][td]Il faut être administrateur afin de modifier le fichier hosts.

Donc, il faut :
Ouvrir le bloc-note (notepad.exe) ou autre éditeur de texte en tant qu'administrateur
Et ensuite ouvrir le fichier hosts grâce à l'éditeur de texte déjà ouvert.[/td][/tr][/table]1. Comment bloquer un site ?
Il suffit d'attribuer au site, l'adresse locale 127.0.0.1
  • On attribue donc l'adresse locale 127.0.0.1 au site que l'on souhaite bloquer
    Exmple :
    127.0.0.1 www.megaupload.com
  • Et ajouter la ligne à la fin du fichier hosts (sans oublier qu'il doit rester une ligne vide impérativement)
2. Comment accélérer un site
C'est la même procédure pour bloquer un site, sauf qu'il faut attribuer, au site concerné, son adresse IP.

Pour trouver l'ip, il existe plusieurs façons Voici un exemple de fichier hosts, dont
  1. megaupload a été bloqué
  2. commentcamarche a été accéléré
# Copyright (c) 1993-2006 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host
#
# Fichier hosts restauré par Little Boy62

127.0.0.1       localhost
::1             localhost
127.0.0.1 www.megaupload.com
90.84.50.171 www.commentcamarche.net

3. Restaurer le fichier hosts
Des personnes ont programmé des outils pour bloquer un site web, et aussi (surtout) restaurer le fichier hosts.

Je vous en proprose 2 :
  1. AppHosts
    = Pour vista : cliquez ici - AppHosts_Vista.exe
    = Pour Xp : cliquez ici - AppHosts_XP.exe
  2. MyHosts
    Disponible ici:
    = http://jeanmimigab.perso.neuf.fr/MyHosts.exe
    = http://sites.google.com/site/jeanmimiga ... -myhosts-1

Voilà

https://www.cjoint.com/c/NDBqFyZqYsE https://www.[…]

Bonjour, Après avoir contacter pleins de si[…]

Bonjour, Je me suis du coup attarder sur ce fame[…]

bachelorarbeit

Hola an alle. Ich bin begeistert von der Zusammena[…]