Allow/Disallow download managers to download?  
Author Message
TheMaj0r





PostPosted: Visual C# General, Allow/Disallow download managers to download? Top

Hello,

How do i know the user or the request for a file is being downloaded from a download manager or the default browser is downloading the file from my web server




Visual C#17  
 
 
Paul Louth





PostPosted: Visual C# General, Allow/Disallow download managers to download? Top

You can use:

Request.UserAgent from code to check for names of known download managers.

Or limit the number of connections for each IP address using IIS. This stops the download manager opening 10 connections and thrashing your server.


 
 
TheMaj0r





PostPosted: Visual C# General, Allow/Disallow download managers to download? Top

Great, thanx a lot

 
 
TheMaj0r





PostPosted: Visual C# General, Allow/Disallow download managers to download? Top

Sorry, but this makes me know the request to an aspx page, but if the user requested the (for example .zip or .exe) directly then i cannot handle the request,

so where should i place the code



 
 
Paul Louth





PostPosted: Visual C# General, Allow/Disallow download managers to download? Top

You could either present links to the aspx page, and then write the relevant file to the OutputStream of the Response, or you will have to write an ISAPI handler I think. Which is beyond the realm of this forum really.


 
 
TheMaj0r





PostPosted: Visual C# General, Allow/Disallow download managers to download? Top

yea thankx, i know these both ways, thanks a lot