不管你用不用百度,你的搜索关键字会布满各种网站,不但没有隐私可言,简直成了百度公司的电脑,十分愤怒!
下面是一个简单的BAT脚本,附件里内容相同,请大家一起讨论、完善,一起共同维护干净的上网环境!
*************************************************************************************************************
SET DestFile=%systemroot%\System32\drivers\etc\hosts
SET Flag=#Anti Baidu Ad Rogeremail@21cn.com
findstr /c:"%Flag%" %DestFile% > nul
if %errorlevel% equ 0 (@echo Destination Content already exist!) && goto End;
@echo Write %DestFile% ...
echo %Flag% >> %DestFile%
echo 127.0.0.1 c.baidu.com >> %DestFile%
echo 127.0.0.1 cpro.baidu.com >> %DestFile%
echo 127.0.0.1 cpro.baidustatic.com >> %DestFile%
echo 127.0.0.1 hm.baidu.com >> %DestFile%
echo 127.0.0.1 cbjs.baidu.com >> %DestFile%
echo 127.0.0.1 eiv.baidu.com >> %DestFile%
:End
@echo The End.
SET Flag=#Anti Baidu Ad Rogeremail@21cn.com
findstr /c:"%Flag%" %DestFile% > nul
if %errorlevel% equ 0 (@echo Destination Content already exist!) && goto End;
@echo Write %DestFile% ...
echo %Flag% >> %DestFile%
echo 127.0.0.1 c.baidu.com >> %DestFile%
echo 127.0.0.1 cpro.baidu.com >> %DestFile%
echo 127.0.0.1 cpro.baidustatic.com >> %DestFile%
echo 127.0.0.1 hm.baidu.com >> %DestFile%
echo 127.0.0.1 cbjs.baidu.com >> %DestFile%
echo 127.0.0.1 eiv.baidu.com >> %DestFile%
:End
@echo The End.