标题: [安全相关] IE跟踪保护.cmd有效阻止国内外各种弹窗 [打印本页]
作者: fastslz 时间: 2013-2-18 21:58 标题: IE跟踪保护.cmd有效阻止国内外各种弹窗
IE跟踪保护.cmd有效阻止国内外各种弹窗
众所周知国内外各种弹窗花样百出且不断更新,代码中4个.tpl链接也会有人不断更新的
注意代码只适用于IE9和IE10- @echo off
- Title IE跟踪保护.cmd
- ver|find "6.2">nul&&(icacls "%~0" /grant administrators:F /t>nul 2>nul
- if errorlevel==5 echo 请右健以管理员身份运行!&ping -n 8 127.1>nul&exit
- Pushd "%~dp0")
- set "DP=%~dp0"
- set "DP=%DP:~0,-1%"
- reg query "HKCU\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\EasyPrivacy+EasyList">nul 2>nul&&set "Yes=1"
- if defined Yes (
- del "%DP%\*.tpl"
- reg delete "HKCU\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\EasyPrivacy+EasyList" /f
- reg delete "HKCU\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\ChinaList+EasyList" /f
- reg delete "HKCU\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\EasyList" /f
- reg delete "HKCU\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\Adblock List" /f
- echo %~n0,已删除!&ping -n 5 127.1>nul&exit
- ) else (
- echo 本脚本需要第三方程序wget.exe请到论坛搜索下载&ping -n 5 127.1>nul
- wget -N -P "%DP%" http://easylist-msie.adblockplus.org/chinalist+easylist.tpl
- wget -N -P "%DP%" http://easylist-msie.adblockplus.org/easylist.tpl
- wget -N -P "%DP%" http://easylist-msie.adblockplus.org/easyprivacy+easylist.tpl
- wget -N -P "%DP%" http://cjx82630.googlecode.com/files/adblock.tpl
- reg add "HKCU\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\EasyPrivacy+EasyList" /f /v "Path" /t REG_SZ /d "%DP%\EasyPrivacy+EasyList.tpl"
- reg add "HKCU\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\EasyPrivacy+EasyList" /f /v "Name" /t REG_SZ /d "EasyPrivacy+EasyList"
- 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"
- reg add "HKCU\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\EasyPrivacy+EasyList" /f /v "Enabled" /t REG_DWORD /d 1
- reg add "HKCU\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\EasyPrivacy+EasyList" /f /v "LastUpdateTime" /t REG_DWORD /d 3612676
- reg add "HKCU\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\EasyPrivacy+EasyList" /f /v "TTL" /t REG_DWORD /d 2
- reg add "HKCU\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\ChinaList+EasyList" /f /v "Path" /t REG_SZ /d "%DP%\ChinaList+EasyList.tpl"
- reg add "HKCU\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\ChinaList+EasyList" /f /v "Name" /t REG_SZ /d "ChinaList+EasyList"
- 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"
- reg add "HKCU\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\ChinaList+EasyList" /f /v "Enabled" /t REG_DWORD /d 1
- reg add "HKCU\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\ChinaList+EasyList" /f /v "LastUpdateTime" /t REG_DWORD /d 3612676
- reg add "HKCU\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\ChinaList+EasyList" /f /v "TTL" /t REG_DWORD /d 2
- reg add "HKCU\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\EasyList" /f /v "Path" /t REG_SZ /d "%DP%\EasyList.tpl"
- reg add "HKCU\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\EasyList" /f /v "Name" /t REG_SZ /d "EasyList"
- 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"
- reg add "HKCU\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\EasyList" /f /v "Enabled" /t REG_DWORD /d 1
- reg add "HKCU\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\EasyList" /f /v "LastUpdateTime" /t REG_DWORD /d 3612676
- reg add "HKCU\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\EasyList" /f /v "TTL" /t REG_DWORD /d 2
- reg add "HKCU\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\Adblock List" /f /v "Path" /t REG_SZ /d "%DP%\Adblock List.tpl"
- reg add "HKCU\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\Adblock List" /f /v "Name" /t REG_SZ /d "Adblock List"
- 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"
- reg add "HKCU\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\Adblock List" /f /v "Enabled" /t REG_DWORD /d 1
- reg add "HKCU\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\Adblock List" /f /v "LastUpdateTime" /t REG_DWORD /d 3612676
- reg add "HKCU\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\Adblock List" /f /v "TTL" /t REG_DWORD /d 5
- echo %~n0,已添加!&ping -n 5 127.1>nul&exit
- )
复制代码
作者: BAT-VBS 时间: 2013-2-18 22:08
向贵宾大神学习
作者: lxzzr 时间: 2013-2-19 16:37
这个TPL也不错的:http://www.zhujima.com/abp/ie9.tpl
作者: group 时间: 2013-2-19 22:55
Adb是个好东西,向贵宾大神学习
作者: 飛雪 时间: 2015-2-27 07:45
這真的是個好東西
謝謝大神
欢迎光临 批处理之家 (http://bbs.bathome.net/) |
Powered by Discuz! 7.2 |