简体   繁体   中英

How to get internet explorer URL in ActiveX Control

For some reasons from my client, I have to build an ActiveX Control for IE browser. I know the technology is old and not safe, so I decided to implement a simple security scheme where I determine the url in which the control is hosted. If the url comes from our domain, I enabled its functionality. Now how to get based ie URL in ActiveX? I have used C#. I want to get url of web like the post here but for C#. Many thanks!

ProTip: In general don't invent security measures unless you're a cryptographer.

What you're looking for is Per-Site ActiveX Controls on MSDN.

This IS a bad idea, ActiveX is so old and even Edge doesn't even support ActiveX. Plus its dangerous to use IE8 unless its disconnected from the internet . You need to set your clients expectations they're asking you to build a insecure obsolete technology.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM