Principles and Usage of the HOSTS File - Midnight Guest | Free Domain Names Forever

by wykslina on 2008-12-17 22:39:54

For example, adding the following content to the hosts file will block the corresponding websites defined in the file.

  127.0.0.1 localhost

  127.0.0.1 bar.baidu.com # Baidu IE Search Companion

  127.0.0.1 www.baidu.com # Baidu IE Search Companion

  127.0.0.1 baidu.com # Baidu IE Search Companion

Save and exit, and Baidu's junk will no longer appear! Because 127.0.0.1 is the local IP address of your own computer. No matter how you access it, there won't be any response!

Midnight Guest has been using the HOSTS file to block Google AdSense ads and Ali Mama ads.

It seems that this time we need to add the ad addresses for Mengu Pass!

This article is reprinted from Midnight Guest - WykSlina (Www.Ai.Net.Ru). Original link: http://blog.wyk.net.ru/WuYeKe-%e5%85%b3%e4%ba%8ehosts%e6%96%87%e4%bb%b6%e7%9a%84%e5%8e%9f%e7%90%86%e4%b8%8e%e4%bd%bf%e7%94%a8.html