Discussion:
Detect Security Zone
(too old to reply)
David Murphy
2004-08-02 19:25:01 UTC
Permalink
When someone visits my web site, how can I determine what security
zone (Internet, Local Intranet, Trusted Sites, or Restricted Sites)
the IE browser is in from within a Javascript script (or any other
way)?

Thanks
Wei-Dong XU [MSFT]
2004-08-03 01:47:12 UTC
Permalink
Hi,

Thank you for posing in Microsoft Newsgroup!

Currently we are researching this issue for you. Appreciate your patience
and we will update this thread when we have any idea.

Best Regards,
Wei-Dong Xu
Microsoft Product Support Services
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
Wei-Dong XU [MSFT]
2004-08-04 01:22:38 UTC
Permalink
Hi David,

Appreciate your patience!

From my research, we can use the method MapUrlToZone of the interface
IInternetSecurityManager to retrieve this information.
http://msdn.microsoft.com/library/default.asp?url=/workshop/security/szone/r
eference/ifaces/iinternetsecuritymanager/mapurltozone.asp

However, we can't call this method from script directly. So I'd suggest you
can create one ActiveX component to get the zone information. You can build
the component in VB/ VC or other develop language. Then in your page, you
can call this activeX component via script.

Please note the ActiveX component should be installed in the client box and
you will also need to grant the permission to the web page for the
execution of this component; which means you will need to put the url of
the page to a high security zone, for example full etc.

Please feel free to let me know if you have any further question.

Best Regards,
Wei-Dong Xu
Microsoft Product Support Services
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
Continue reading on narkive:
Loading...