它可以帮助你屏蔽优酷,56等在线视频缓冲广告,其思路是通过修改系统的hosts文件来实现,当然你也可以把它做成批处理来自动执行!
- @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
复制代码
附件是现成的