|
其思路是通过修改系统的hosts文件来实现,当然你也可以把它做成批处理来自动执行!
批处理代码如下:- @echo off
- title 屏蔽优酷、土豆、迅雷看看等在线视频缓冲广告
- color 0A
- cls
- echo.
- echo.
- echo 屏蔽优酷、土豆、迅雷看看等在线视频缓冲广告www.life80.cn
- 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文件进行备份,然后把优酷、土豆、迅雷看看等在线广告的网址的DNS设为无效。这样就做到了去除优酷、土豆、迅雷看看等在线视频广告的目的。
还原hosts代码- @del %windir%\system32\drivers\etc\hosts
- @ren %windir%\system32\drivers\etc\hosts.bak hosts
- @REM 刷新DNS缓存
- @ipconfig /flushdns
复制代码
如何保存为批处理:
将代码用记事本或其它编辑器,另存为.cmd文件即可! |
3389, 打印机, 诺德尔, 网吧, 网吧版, 网吧系统, ndeer, 极速版, 诺德尔, 极速版, 诺德尔, QQ空间, QQ签名, QQ空间, QQ签名, 绿茶, QQ签名, 服务器, 论坛, 3389, 免费, 3389, 打印机, 主机, QQ空间, QQ签名, 矮哨兵, 网吧, ta
|