Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

By this I do not mean that it opens multiple connections. I am more interested in how it monitors the browser's activity and recognizes when a file is available for download (a music file, or a video, or whatever).

Is this something that it adds to the browser? Is it somehow scanning all traffic that is going to the PC? Is it acting as a kind of proxy?

share|improve this question
    
My bad, should have read the articles more carefully. –  TookTheRook Aug 16 '11 at 22:50
    
Connect to remote location, read list of files, compare timestamp / checksum / etc. of the files, then do whatever is specified based on that info... notify, download, etc. –  Joe Internet Aug 16 '11 at 22:59
3  
I do not have a trust issue with IDM (though if I did that would be a an actual issue I face). To quote from the FAQ: "However, if your motivation is “I would like others to explain ______ to me”, then you are probably OK." So I think my question is ok. I want to know how it monitors the browser, so It simply interacts with your browser" does not help me. IDM does not say how it works. –  soandos Aug 17 '11 at 22:59
3  
I don't want to create a duplicate program. I want to know roughly how it works (see question). I don't see this as so unreasonable as there are a very limited number of ways to do this. I want to solve my other question elegantly (see here) but in a specific case (not by uninstalling IDM thought). –  soandos Aug 17 '11 at 23:17
2  
@Tom - "intellectual curiosity" is a legitimate cause for questions. He didn't ask to know exactly how is the code, he only wonders how is that possible, how such program can do that, like plenty of other questions on the site. It's not "what exactly IDM uses to do that", just a curiosity about download managers as a whole. Seems legitimate to me. –  Gnoupi Aug 21 '11 at 11:09
show 3 more comments

1 Answer

up vote 3 down vote accepted

There are basically two mechanisms, which depend on whether the IDM-like product installs itself in the operating system or only inside the browser.

In the case where it installs as a full-fledged product through the operating system, then in Windows for example it sets system-wide hooks, the same mechanism that is used by firewalls and anti-virus products, for monitoring network activity from the Internet. For Windows this is described as :

A hook is a mechanism by which an application can intercept events, such as messages, mouse actions, and keystrokes. A function that intercepts a particular type of event is known as a hook procedure. A hook procedure can act on each event it receives, and then modify or discard the event.

In the case that it is installed only in the browser, it uses the same mechanism as used by Greasemonkey for doing Javascript Injection. This requires an add-on/plugin to be installed into the browser, that will scan incoming HTML for downloadable items, and either list them on the side (normally on the browser's status bar), or modify the HTML itself to include a "Download" button near the downloadable element.

share|improve this answer
1  
So why does it need a firefox add-on, but no add on required for chrome, IE? –  soandos Dec 1 '11 at 15:11
    
If we are talking about this IDM, then I see that has an .exe installer. This means that it is installed outside of the browser and so can use system hooks without need for a plugin. –  harrymc Dec 1 '11 at 15:39
    
So why does it give one for firefox? –  soandos Dec 1 '11 at 20:35
    
Probably for better integration within the browser, for example using the status bar (just guessing - I don't use IDM). They probably haven't gotten around yet to doing the same for other browsers (or decided not to). –  harrymc Dec 1 '11 at 21:07
    
I'd like to note here, that I have built a download manager years ago. And that most Download Managers do have plugins for IE. Mostly ActiveX plugins. –  delete this account Mar 27 at 13:08
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.