@echo off
REM 设置IP
set ip=152.12.12.13
REM 将IP加到可信站点中
set reg1=HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Ranges\Range1
reg add "%reg1%" /v http /t REG_DWORD /d 0x2 /f >nul 2>nul
reg add "%reg1%" /v :Range /t REG_SZ /d %ip% /f >nul 2>nul
REM 将IP加到弹出框阻止例外中
set reg2=HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\New Windows\Allow
reg add "%reg2%" /v %ip% /t REG_BINARY /d "" /f >nul 2>nul