[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖

[安全相关] IE跟踪保护.cmd有效阻止国内外各种弹窗

IE跟踪保护.cmd有效阻止国内外各种弹窗
众所周知国内外各种弹窗花样百出且不断更新,代码中4个.tpl链接也会有人不断更新的
注意代码只适用于IE9和IE10
  1. @echo off
  2. Title IE跟踪保护.cmd
  3. ver|find "6.2">nul&&(icacls "%~0" /grant administrators:F /t>nul 2>nul
  4. if errorlevel==5 echo 请右健以管理员身份运行!&ping -n 8 127.1>nul&exit
  5. Pushd "%~dp0")
  6. set "DP=%~dp0"
  7. set "DP=%DP:~0,-1%"
  8. reg query "HKCU\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\EasyPrivacy+EasyList">nul 2>nul&&set "Yes=1"
  9. if defined Yes (
  10. del "%DP%\*.tpl"
  11. reg delete "HKCU\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\EasyPrivacy+EasyList" /f
  12. reg delete "HKCU\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\ChinaList+EasyList" /f
  13. reg delete "HKCU\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\EasyList" /f
  14. reg delete "HKCU\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\Adblock List" /f
  15. echo %~n0,已删除!&ping -n 5 127.1>nul&exit
  16. ) else (
  17. echo 本脚本需要第三方程序wget.exe请到论坛搜索下载&ping -n 5 127.1>nul
  18. wget -N -P "%DP%" http://easylist-msie.adblockplus.org/chinalist+easylist.tpl
  19. wget -N -P "%DP%" http://easylist-msie.adblockplus.org/easylist.tpl
  20. wget -N -P "%DP%" http://easylist-msie.adblockplus.org/easyprivacy+easylist.tpl
  21. wget -N -P "%DP%" http://cjx82630.googlecode.com/files/adblock.tpl
  22. reg add "HKCU\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\EasyPrivacy+EasyList" /f /v "Path" /t REG_SZ /d "%DP%\EasyPrivacy+EasyList.tpl"
  23. reg add "HKCU\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\EasyPrivacy+EasyList" /f /v "Name" /t REG_SZ /d "EasyPrivacy+EasyList"
  24. reg add "HKCU\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\EasyPrivacy+EasyList" /f /v "Url" /t REG_SZ /d "http://easylist-msie.adblockplus.org/EasyPrivacy+EasyList.tpl"
  25. reg add "HKCU\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\EasyPrivacy+EasyList" /f /v "Enabled" /t REG_DWORD /d 1
  26. reg add "HKCU\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\EasyPrivacy+EasyList" /f /v "LastUpdateTime" /t REG_DWORD /d 3612676
  27. reg add "HKCU\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\EasyPrivacy+EasyList" /f /v "TTL" /t REG_DWORD /d 2
  28. reg add "HKCU\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\ChinaList+EasyList" /f /v "Path" /t REG_SZ /d "%DP%\ChinaList+EasyList.tpl"
  29. reg add "HKCU\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\ChinaList+EasyList" /f /v "Name" /t REG_SZ /d "ChinaList+EasyList"
  30. reg add "HKCU\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\ChinaList+EasyList" /f /v "Url" /t REG_SZ /d "http://easylist-msie.adblockplus.org/chinalist+easylist.tpl"
  31. reg add "HKCU\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\ChinaList+EasyList" /f /v "Enabled" /t REG_DWORD /d 1
  32. reg add "HKCU\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\ChinaList+EasyList" /f /v "LastUpdateTime" /t REG_DWORD /d 3612676
  33. reg add "HKCU\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\ChinaList+EasyList" /f /v "TTL" /t REG_DWORD /d 2
  34. reg add "HKCU\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\EasyList" /f /v "Path" /t REG_SZ /d "%DP%\EasyList.tpl"
  35. reg add "HKCU\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\EasyList" /f /v "Name" /t REG_SZ /d "EasyList"
  36. reg add "HKCU\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\EasyList" /f /v "Url" /t REG_SZ /d "http://easylist-msie.adblockplus.org/easylist.tpl"
  37. reg add "HKCU\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\EasyList" /f /v "Enabled" /t REG_DWORD /d 1
  38. reg add "HKCU\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\EasyList" /f /v "LastUpdateTime" /t REG_DWORD /d 3612676
  39. reg add "HKCU\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\EasyList" /f /v "TTL" /t REG_DWORD /d 2
  40. reg add "HKCU\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\Adblock List" /f /v "Path" /t REG_SZ /d "%DP%\Adblock List.tpl"
  41. reg add "HKCU\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\Adblock List" /f /v "Name" /t REG_SZ /d "Adblock List"
  42. reg add "HKCU\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\Adblock List" /f /v "Url" /t REG_SZ /d "http://cjx82630.googlecode.com/files/adblock.tpl"
  43. reg add "HKCU\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\Adblock List" /f /v "Enabled" /t REG_DWORD /d 1
  44. reg add "HKCU\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\Adblock List" /f /v "LastUpdateTime" /t REG_DWORD /d 3612676
  45. reg add "HKCU\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\Adblock List" /f /v "TTL" /t REG_DWORD /d 5
  46. echo %~n0,已添加!&ping -n 5 127.1>nul&exit
  47. )
复制代码

這真的是個好東西

謝謝大神

TOP

Adb是个好东西,向贵宾大神学习

TOP

这个TPL也不错的:http://www.zhujima.com/abp/ie9.tpl

TOP

向贵宾大神学习

TOP

返回列表