One batch process is far away from Baidu advertising harassment and Baidu harassment
No matter whether you use Baidu or not, your search keywords will be filled with various websites. Not only will there be no privacy, but it will become a computer of Baidu company and it will be very angry! The following is a simple BAT script with the same content in the attachment. Please discuss and improve it together to jointly maintain a clean online environment! **************************************** **************************************** *****************************
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.