When you use Intelligent Application Gateway (IAG), you may have to restrict client users to use certain browsers because of your corporate browser standards, because of application compatibility, or because of security concerns. In the Policy Editor, you can select Internet Explorer 5.0 and Higher for a browser detection policy. However, this browser detection policy detects any versions of Internet Explorer that are equal to or later than version 5.0.
This article describes how to configure the endpoint detection policy to specifically detect Windows Internet Explorer 7.
Copy and paste the following text into Notepad, and then save the file as IE7.vbs.
Results("IE7")=False
valueVV=Whale.Registry.RegRead(rkHKEY_LOCAL_MACHINE,"SOFTWARE\Microsoft\Internet Explorer\Version Vector","IE")
whale.debugecho ("Read value to be (" & value & ")")
if Err=0 And lcase(valueVV)="7.0000" then
Results("IE7")=True
Whale.DebugEcho "IE7 registry check PASSED"
End If
If Results("IE7") = False Then
Err.Clear
valueV=Whale.Registry.RegRead(rkHKEY_LOCAL_MACHINE,"SOFTWARE\Microsoft\Internet Explorer\Version","IE")
whale.debugecho ("Read value to be (" & value & ")" )
End If
if Results("IE7") = False And Err=0 And lcase(valueV)="7.0000" then
Results("IE7")=True
Whale.DebugEcho "IE7 registry check PASSED"
else
Whale.DebugEcho "Error: IE7 registry check FAILED"
end if
Copy and paste the following text into Notepad, and then save the file as PolicyDefinitions.xml.
Note Throughout these steps, the e-Gap placeholder represents the folder in which IAG is installed.
Copy the PolicyTemplate.xml file and the PolicyDefinitions.xml file into the following folder:
e-Gap\von\conf\CustomUpdate
Rename the Detect.inc file as "TrunkName1detect.inc" or as "TrunkName0detect.inc," as appropriate.
Note Replace the TrunkName placeholder with the name of the trunk. For an HTTPS trunk, rename the file as "TrunkName1detect.inc." For an HTTP trunk, rename the file as "TrunkName0detect.inc."
Copy the file that you renamed in step 3 into the following folder:
e-Gap\von\InternalSite\inc\CustomUpdate
Configuring the detection policies
On the server that is running IAG, open the IAG Configuration console. To do this, click Start, point to All Programs, point to Whale Communications IAG, and then click Configuration.
On the File menu, click Activate.
On the Activate Configuration page, click to select the Apply changes made to external configuration settings check box, and then click Activate.
Click OK.
Close and then reopen the IAG Configuration console.
In the console tree, click the trunk to which you want to apply the Internet Explorer 7 endpoint detection setting, and then click Configure next to Advanced Trunk Configuration.
On the Session tab, click Edit Policies, and then click Add.
In the Policy Name box, type the name that you want to use for the new policy. For example, type IE7 Required.
In the Explanatory Text Added to 'Access Denied' Message box, type a description for the new policy. For example, type To access the gateway site, you must be running Internet Explorer 7.
In the navigation pane, click IE7, and then click to select the Enable Group check box.
In the Endpoints Must Meet All the Selected Requirements list, click IE7, and then click OK.
Click Close.
Apply the policy that you created to the specific endpoint actions, and then click OK.
On the File menu, click Activate.
Click Activate to confirm the activation operation, and then click OK.