Ce fichier hosts a la particularité de restreindre la communication envers la (G)AMAF (Google, Apple, Microsoft, Adobe, Facebook)
0x01. TRACKERS
Pour ne citer qu'Apple, une liste de domaine est associée à 127.252.0.1. Bloquant ainsi les communications vers leurs sites associés.
Pourquoi 127.252.0.1 ? Parcequ'il reste possible de monter une interface virtuelle et de regarder ce qui y arrive (il va falloit un certificat SSL, la plus part des communications se font en HTTPS sur le port 443) :
# macOS ifconfig lo0 alias 127.252.0.1 up # Linux ifconfig lo:252 127.252.0.1 up
0x02. DESCRIPTION (ENTETE)
################################################################################################### # # Host Database # ------------- # # $Id> SecureInfo.eu: this file is a sample of /etc/hosts with root DNS servers # # This file should contain the addresses and aliases for local hosts that # share this file. Replace 'my.domain' below with the domainname of your # machine. # # In the presence of the domain name service or NIS, this file may # not be consulted at all; see /etc/nsswitch.conf for the resolution order. # # The following lines are desirable for IPv6 capable hosts # ::1 localhost ip6-localhost ip6-loopback # ff02::1 ip6-allnodes # ff02::2 ip6-allrouters # # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # # Trackers # # This file - as is - block several Apple, Adobe, Facebook & Microsoft domains # To disable one of them : # Apple -> replace '127.252.0.1' to '# 127.252.0.1' # Facebook -> replace '127.253.0.1' to '# 127.253.0.1' # Microsoft -> replace '127.254.0.1' to '# 127.254.0.1' # Adobe -> replace '127.255.0.1' to '# 127.255.0.1' # # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # # Structure: # # IP Host FQDN Comment # --------------- ------- ----------------- --------------------------- # ::1 localhost6 localhost6.my.domain # IPv6 local host name # 127.0.0.1 localhost localhost.my.domain # ##
0x03. PLACEMENT DE VOS DONNÉES
################################################################################################### # ## -- Placer ici, votre fichier /etc/hosts ou %WINDIR%System32Driverstchosts original ici :
ICi vous pouvez faire un copier/coller de votre fichier /etc/hosts original
## -- Fin de votre fichier # ###################################################################################################
0x03. EXTRAIT DU FICHIER
################################################################################################### # # Anti Apple Tracking System # ## ###127.252.0.1 = Apple 127.252.0.1 apple-finance.query.yahoo.com # stocks 127.252.0.1 mzstatic.com # appstore 127.252.0.1 cssubmissions-uat.corp.apple.com # Feedback Assistant.app 127.252.0.1 cssubmissions.apple.com # Feedback Assistant.app [...]
################################################################################################### # # Anti Microsoft Tracking System # ## ###127.254.0.1 = Microsoft 127.254.0.1 vortex.data.microsoft.com 127.254.0.1 vortex-win.data.microsoft.com 127.254.0.1 telecommand.telemetry.microsoft.com 127.254.0.1 telecommand.telemetry.microsoft.com.nsatc.net 127.254.0.1 oca.telemetry.microsoft.com 127.254.0.1 oca.telemetry.microsoft.com.nsatc.net [...]
################################################################################################### # # Anti Adobe Tracking System # ## ###127.255.0.1 = Adobe 127.255.0.1 209-34-83-73.ood.opsource.net 127.255.0.1 3dns-1.adobe.com 127.255.0.1 3dns-2.adobe.com 127.255.0.1 3dns-2.adobe.de 127.255.0.1 3dns-3.adobe.com [...]
################################################################################################### # # Anti Facebook Tracking System # ## ###127.254.0.1 = Facebook 127.253.0.1 apps.facebook.com 127.253.0.1 connect.facebook.net 127.253.0.1 facebook.com 127.253.0.1 fbcdn.com [...]
0x04. TELECHARGEMENT
=> Écrit par : Nicolas, le 27 septembre 2017