Search code examples
c#.netinternet-explorer-7internet-explorer-6httpmodule

HttpModule and older versions of IE


I've built an http module to log file downloads on a server. When a user downloads the file, it logs their IP, a file ID, download time, referrer, and user agent to the database. This works fine for the most part, although I've already had to deal with stripping out near-duplicates caused by download manager addons for Firefox by checking the Range header.

This hasn't solved the same problem for IE6 and IE7 users. When they initiate a download, it will repeatedly hit my module milliseconds apart and cause thousands of entries to be logged for a single file. It doesn't seem like older versions of IE are using the range header like Firefox does, and I'm not even sure that's the problem.

Anyone have any ideas as to what could be causing this, or what I should check to avoid the redundant requests from being logged?


Solution

  • You should try using Fiddler (or a similar web debugger) to see the requests that those particular flavors of IE sends to your server. Perhaps it is doing something legitimate, and perhaps you will be able to filter out the extra requests by looking at the HTTP headers and method.