- @echo off
- title 屏蔽优酷、土豆、迅雷看看等在线视频缓冲广告
- color 0A
- cls
- echo.
- echo.
- echo 屏蔽优酷、土豆、迅雷看看等在线视频缓冲广告
- ping /n 4 127.0.0.1 >nul
- cls
- copy %windir%\system32\drivers\etc\hosts %windir%\system32\drivers\etc\hosts.bak
- >>%windir%\system32\drivers\etc\hosts echo 0.0.0.0 adcontrol.tudou.com
- >>%windir%\system32\drivers\etc\hosts echo 0.0.0.0 valf.atm.youku.com
- >>%windir%\system32\drivers\etc\hosts echo 0.0.0.0 dcads.sina.com.cn
- >>%windir%\system32\drivers\etc\hosts echo 0.0.0.0 pubstat.sandai.net
- >>%windir%\system32\drivers\etc\hosts echo 0.0.0.0 mcfg.sandai.net
- >>%windir%\system32\drivers\etc\hosts echo 0.0.0.0 biz5.sandai.net
- >>%windir%\system32\drivers\etc\hosts echo 0.0.0.0 float.sandai.net
- >>%windir%\system32\drivers\etc\hosts echo 0.0.0.0 recommend.xunlei.com
- >>%windir%\system32\drivers\etc\hosts echo 0.0.0.0 cl.kankan.xunlei.com
- REM 刷新DNS缓存
- ipconfig /flushdns
- cls
- echo.
- echo 操作完毕,正在退出…
- ping /n 3 127.0.0.1 >nul
- exit
还原hosts代码
- @del %windir%\system32\drivers\etc\hosts
- @ren %windir%\system32\drivers\etc\hosts.bak hosts
- @REM 刷新DNS缓存
- @ipconfig /flushdns
附件是现成的
- PC官方版
- 安卓官方手机版
- IOS官方手机版