Filtrage DNS

Pour bloquer les pubs, traqueurs et sites malveillants…

  • Sur Windows

cmd en admin :

net stop dnscache
REG ADD "HKLM\SYSTEM\CurrentControlSet\Services\Dnscache" /v Start /t REG_DWORD /d "4"
notepad %systemroot%\system32\drivers\etc\hosts
C:\Windows\hosts
C:\winnt\system32\drivers\etc\hosts
C:\windows\system32\drivers\etc\hosts
ipconfig /flushdns

  • Sur Linux, Unix, OS X

sudo pluma /etc/hosts

/private/etc/hosts

  • Sur Android

DNS66 sur f-droid
http://jebaird.com/2012/12/21/hosts-to-ip-host-generating-blocked-hosts-from-a-host-file-for-a-cisco-router.html
root -> /system/etc/hosts

  • Sur un réseau complet

avec la config dans le routeur

avec pi-Hole

Liste de Host

https://adaway.org/hosts.txt
http://winhelp2002.mvps.org/hosts.txt
https://hosts-file.net/ad_servers.txt
https://someonewhocares.org/hosts/hosts
https://www.malwaredomainlist.com/hostslist/hosts.txt
https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=1&mimetype=plaintext

https://sebsauvage.net/hosts/hosts

source :
winhelp2002.mvps.org/hosts.htm
sebsauvage.net/wiki/doku.php?id=dns-blocklist
firebog.net

DNS

DNS

Cloudflare 1.1.1.1 1.0.0.1
Comodo 8.26.56.26 8.20.247.20
DNSWatch 84.200.69.80 84.200.70.40
FDN 80.67.169.12 80.67.169.40
GreenTeamDNS 81.218.119.11 209.88.198.133
Google 8.8.8.8 8.8.4.4
Norton ConnectSafe 199.85.126.20 199.85.127.20
OpenDNS 4.2.2.1(-2-3-4-5) 4.2.2.6
OpenDNS 208.67.222.123 208.67.220.123
OpenNIC 188.165.200.156 51.255.48.78
OpenNIC 193.183.98.66 51.254.25.115
ORSN 212.224.71.116 82.206.1.22
Security Neustar 156.154.70.1 156.154.71.1
Quad9 9.9.9.9