Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Find out the launch points of active IE instances of windows

We have an application that runs as service on windows. The service periodically checks for active Internet Explorer instances using SHDocVw.ShellWindows(). With this, we are able to capture the URL in each of the IE instances.

My Question: Is it possible to find out how the webpage in each of these IE instances were launched. For example -

  • Did user type in url in IE to load the webpage?
  • Did the user select the link from another IE tab to launch ?
  • Did the user launch IE instance from another desktop application like outlook etc

Thank you.

like image 493
indusBull Avatar asked Feb 08 '16 18:02

indusBull


1 Answers

The closest thing I could find to your specific requirement was this also check out the part 2 of the same blog where some edge cases have been discussed.

The part 1 of the blog talks about a registry key named TypedURLs (path: HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\TypedURLs) which can be found in the registry editor, the rules of updation of this key are like this:

If a link is copied and pasted from a web page to the URL address bar and the user hits enter, this will also populate the key, as this is akin to physically typing in the entire address. If an invalid address of a webpage or resource that cannot be located is entered, the key will not be populated until either the connection or the request is completed (whether it succeeded or failed). If IE’s Stop function is selected before the connection is finished or the resource is located, the key will not be populated.

It is important to note that websites visited with the browser via hyperlinks, redirects, the IE Favorites menu or the user’s home page will not populate this key. Also, when a user selects to delete their browsing history using IE’s built-in function, this key is cleared.

Hope it helps!

like image 67
Rachit Pandey Avatar answered Oct 26 '22 02:10

Rachit Pandey