Switch to full style
Use this forum to post questions relating to WinGate, feature requests, technical or configuration problems
Post a reply

Rigth to Download greater 30Mega specify Time

Mar 25 08 4:40 am

i Whant creat a rule , user only can download files greater than 30 mega , between 2am to 9am, can anyone help me?

Mar 25 08 6:03 pm

Hi

That's actually a fairly problematic rule for a number of reasons:

a) there's no guarantee you can determine the size of a download in advance. This is because HTTP allows files to be transferred in a variety of ways, only one of which specifies the Content-Length in the response headers. Other ways such as HTTP/1.1 chunking, or closing the connection upon completion of transfer do not tell the client how big the resource will be, they just transfer it.

This means the only way to block downloads over a certain size in these cases is to wait until more than the allowed amount has already been downloaded before blocking it - usually this is very wasteful, and depending on the threshold, can be almost pointless, and very annoying to users (waited for 45min to get 20MB, then it disconnected, and they don't know why so they retry). You can't give a user a different page back telling them their download was blocked either.

b) WinGate 6.x doesn't have policy control over response data. There's no policy check in WinGate 6 on receiving a response, so even in the case where there's a length specified, WinGate 6.x can't check it.

That's an entirely different story with WinGate 2008 though, which does have a policy checkpoint event when the server response is received.

Adrien
Post a reply