I would like to create an HTTPHandler to monitor the bandwidth of all my domains on my server, is it the correct approach? or ISAPI filters are more correct for this? Can I monitor all requests (.jpg,.swf,.gif, etc.) or just .aspx? And how would I know the
size? If you have an article on how to do this it would be good. Thanks in Advance
I think for monitoring the bandwidth, a HttpModule would be better. Just check and keep track of the content-length in the right place. We've done this to provide some in-built stats for a compression module (reporting the compressed and non-compressed sizes).
I was reseraching and I found Log Parser that comes with IIS resource kit. http://www.microsoft.com/downloads/details.aspx?familyid=56FC92EE-A71A-4C73-B628-ADE629C89499&displaylang=en I think that a better approach will be an app that analyze the log files
and put them on SQL server. Then I can get reports from there (stats for clients), and also develop an http handler to query SQL on each request, if the client has Exceeded his bandwidth, I just redirect to another page. Anyone has the structure of a database
for web statistics?
That's a good trick, Colt. The only problem I can see, is that for those of us who do not have control over the server configuration (shared hosting) we can't just go and remap the .jpg/.gif or whatever to the aspnet_isapi.dll whenever we want. There must be
a way to do it from just your own website (not worried about bandwidth leaching)... I'm more concerned about keeping track of bandwidth in general for the site and for each user. Thanks, Shawn
Shawn, What about writing an HttpModule which would reside in the machine.config, and in the App_EndRequest, checking the size of the OutputStream object?
None
0 Points
53 Posts
HTTP Handler for bandwidth monitoring?
May 28, 2004 02:28 AM|emiliodabdoub|LINK
Member
562 Points
1976 Posts
ASPInsiders
MVP
Re: HTTP Handler for bandwidth monitoring?
May 28, 2004 04:21 AM|Colt|LINK
None
0 Points
110 Posts
Re: HTTP Handler for bandwidth monitoring?
May 28, 2004 06:04 AM|intesoft|LINK
ASPAccelerator.NET - Fewer bytes, faster pages
ASPRedirector.NET - Put friendly URLs on your site
Member
87 Points
683 Posts
ASPInsiders
MVP
Re: HTTP Handler for bandwidth monitoring?
May 28, 2004 04:38 PM|j_gaylord|LINK
ASPInsider and Microsoft MVP
http://jasongaylord.com
None
0 Points
53 Posts
Re: HTTP Handler for bandwidth monitoring?
May 28, 2004 05:00 PM|emiliodabdoub|LINK
Member
562 Points
1976 Posts
ASPInsiders
MVP
Re: HTTP Handler for bandwidth monitoring?
May 30, 2004 09:08 AM|Colt|LINK
None
0 Points
58 Posts
Re: HTTP Handler for bandwidth monitoring?
Jun 02, 2004 12:36 PM|shawnb|LINK
www.zenofdotnet.com
Member
70 Points
921 Posts
MVP
Re: HTTP Handler for bandwidth monitoring?
Jun 28, 2004 01:50 AM|bdesmond|LINK
Windows Server MVP - Directory Services
http://www.briandesmond.com