项目地址:https://github.com/heiniao/hosts
下载地址:https://raw.githubusercontent.com/heiniao/hosts/master/hosts
屏蔽网站广告和软件广告,拦截恶意软件,屏蔽跟踪,保护隐私,杜绝垃圾信息*扰!
Google、DuckDuckGo、Gmail、YouTube、Facebook、Twitter、Tumblr、Dropbox、OneDrive、Flickr!
# Linux
sudo mv /etc/hosts{,.backup}
sudo wget --no-check-certificate https://raw.githubusercontent.com/heiniao/hosts/master/hosts -O /etc/hosts
# Windows
# Press Win + X keyboard shortcut to bring up Win + X menu. Then from the menu click Windows PowerShell (Admin).
# Windows PowerShell (Admin)
mv C:\Windows\System32\drivers\etc\hosts C:\Windows\System32\drivers\etc\hosts.backup
wget https://gitlab.com/hosts/hosts/raw/master/hosts -O C:\Windows\System32\drivers\etc\hosts
ipconfig /flushdns