Registry entry of the trusted site
HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Internet Settings \ ZoneMap \ Ranges \ Range [*]
ActiveX registry key
HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Internet Settings \ Zones \ [0-4] \ [*]
[0-4]
Value settings
------------------------------
0 my computer
1. Local Intranet Region
2. trusted site regions
3. Internet region
4 restricted site regions
[*]
1001 download the signed ActiveX Control
1004 download unsigned ActiveX Controls
1200 Run ActiveX controls and plug-ins
1201 initialize ActiveX controls that are not marked as secure and run scripts
1405 execute scripts on ActiveX controls marked as secure Script Execution
2201 ActiveX control automatic prompt **
The Registry Key of the blocked program appears.
HKEY_CURRENT_USERHKCU \ Software \ Microsoft \ Internet Explorer \ New Windows \ PopupMgr
The specific script is as follows:
<Script language = "JavaScript">
<! --
Var WshShell = new ActiveXObject ("WScript. Shell ");
// Add a trusted site ip Address
WshShell. RegWrite ("HKCU \ Software \ Microsoft \ Windows \ CurrentVersion \ Internet Settings \ ZoneMap \ Ranges \ Range100 \\","");
WshShell. regWrite ("HKCU \ Software \ Microsoft \ Windows \ CurrentVersion \ Internet Settings \ ZoneMap \ Ranges \ Range100 \ http", "2 ", "REG_DWORD ");
WshShell. regWrite ("HKCU \ Software \ Microsoft \ Windows \ CurrentVersion \ Internet Settings \ ZoneMap \ Ranges \ Range100 \: Range", "192.168.0.1 ");
WshShell. RegWrite ("HKCU \ Software \ Microsoft \ Windows \ CurrentVersion \ Internet Settings \ ZoneMap \ Ranges \ Range101 \\","");
WshShell. regWrite ("HKCU \ Software \ Microsoft \ Windows \ CurrentVersion \ Internet Settings \ ZoneMap \ Ranges \ Range101 \ http", "2 ", "REG_DWORD ");
WshShell. regWrite ("HKCU \ Software \ Microsoft \ Windows \ CurrentVersion \ Internet Settings \ ZoneMap \ Ranges \ Range101 \: Range", "192.168.0.2 ");
// Modify IE ActiveX Security Settings
WshShell. regWrite ("HKCU \ Software \ Microsoft \ Windows \ CurrentVersion \ Internet Settings \ Zones \ 3 \ 1001", "0", "REG_DWORD ");
WshShell. regWrite ("HKCU \ Software \ Microsoft \ Windows \ CurrentVersion \ Internet Settings \ Zones \ 3 \ 1004", "0", "REG_DWORD ");
WshShell. regWrite ("HKCU \ Software \ Microsoft \ Windows \ CurrentVersion \ Internet Settings \ Zones \ 3 \ 1200", "0", "REG_DWORD ");
WshShell. regWrite ("HKCU \ Software \ Microsoft \ Windows \ CurrentVersion \ Internet Settings \ Zones \ 3 \ 1201", "0", "REG_DWORD ");
WshShell. regWrite ("HKCU \ Software \ Microsoft \ Windows \ CurrentVersion \ Internet Settings \ Zones \ 3 \ 1405", "0", "REG_DWORD ");
WshShell. regWrite ("HKCU \ Software \ Microsoft \ Windows \ CurrentVersion \ Internet Settings \ Zones \ 3 \ 2201", "0", "REG_DWORD ");
// Disable the xinxp pop-up window blocking program
WshShell. RegWrite ("HKCU \ Software \ Microsoft \ Internet Explorer \ New Windows \ PopupMgr", "no ");
Alert ("active Control Security Settings, pop-up window settings, successful site Settings ");
// -->
</SCRIPT>