JSI Tip 8935. How can I prevent Internet Explorer in Windows XP SP2 from issuing 'You are about to be redirected to a connection that is not secure'?

Jerold Schulman

January 17, 2005

2 Min Read
ITPro Today logo in a gray background | ITPro Today

Windows XP SP2 provides the WarnOnHTTPSToHTTPRedirect Value Name, a REG_DWORD data type, at HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionInternet Settings AND HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionInternet Settings, which can be set to 0 to turn off the warning that occurs when you move from a secure Web site (HTTPS) to an regular Web site (HTTP):

Security Alert

You are about to be redirected to a connection that is not secure.

The information you are sending to the current site might be retransmitted to a nonsecure site. Do you wish to continue?

NOTE: The default data value, 1, turns the Security Alert on.

NOTE: You may even receive the Security Alert if the Warn if changing between secure and not secure mode box on the Advanced tab of Internet Options is NOT checked.

I have scripted WarnOnHTTPSToHTTPRedirectOff.bat to turn the Security Alert off.

The syntax for using WarnOnHTTPSToHTTPRedirectOff.bat is:

WarnOnHTTPSToHTTPRedirectOff [U|C|A]

Where:

U, or the absence of a parameter, turns off the Security Alert for the current user.

C turns off the Security Alert for all users of the local computer.

A turns off the Security Alert for all users of all Windows XP SP2 computers in your domain.

NOTE: The A options configures ALL Windows XP computers in your domain, so when they are upgraded to SP2 the WarnOnHTTPSToHTTPRedirect Value Name is already set to 0. Run this option from a Windows XP workstation, or from Windows Server 2003.

NOTE: WarnOnHTTPSToHTTPRedirectOff.bat uses NETDOM.EXE from the Support Tools on the operating system CD-ROM.

WarnOnHTTPSToHTTPRedirectOff.bat contains:

@echo offsetlocalset scope=HKCUSOFTWAREMicrosoftWindowsCurrentVersionInternet Settingsif /i {%1}
{A} set scope=HKLMSOFTWAREMicrosoftWindowsCurrentVersionInternet Settings&goto ALLif /i {%1}
{C} set scope=HKLMSOFTWAREMicrosoftWindowsCurrentVersionInternet Settings@echo REG ADD "%scope%" /V WarnOnHTTPSToHTTPRedirect /T REG_DWORD /D 0 /FREG ADD "%scope%" /V WarnOnHTTPSToHTTPRedirect /T REG_DWORD /D 0 /Fendlocalgoto :EOF:ALLset qry=reg.exe queryset add=reg.exe addset netdm=netdom query /domain:%userdnsdomain%set end="The command completed successfully."set winxp=HKLMSOFTWAREMicrosoftWindows NTCurrentVersionfor /f "Skip=1 Tokens=*" %%c in ('%netdm% workstation^|find /v /i %end%') do ( for /f "Tokens=2*" %%r in ('%qry% "\%%c%winxp%" /v CurrentVersion^|find "REG_SZ"') do ( if "%%s" EQU "5.1" @echo %%c&%add% "\%%c%scope%" /V WarnOnHTTPSToHTTPRedirect /T REG_DWORD /D 0 /F &@echo. ))endlocal



Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like