Rigth to Download greater 30Mega specify Time

Use this forum to post questions relating to WinGate, feature requests, technical or configuration problems

Moderator: Qbik Staff

Rigth to Download greater 30Mega specify Time

Postby edumelres » 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?
edumelres
 
Posts: 25
Joined: Jan 15 07 1:10 pm

Postby adrien » 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
adrien
Qbik Staff
 
Posts: 5448
Joined: Sep 03 03 2:54 pm
Location: Auckland


Return to WinGate

Who is online

Users browsing this forum: Google [Bot] and 15 guests