Welcome to ISAserver.org
Forums |
Register |
Login |
My Profile |
Inbox |
RSS
|
My Subscription |
My Forums |
Address Book |
Member List |
Search |
FAQ |
Ticket List |
Log Out
How to restrict download size
|
Users viewing this topic:
none
|
Logged in as: Guest
|
Login | |
|
How to restrict download size - 30.Aug.2004 8:31:00 AM
|
|
|
misa2
Posts: 6
Joined: 26.Aug.2004
From: Nis, Serbia
Status: offline
|
Can it be done? I hate the idea of buying 3rd party software just to do this.
|
|
|
|
RE: How to restrict download size - 30.Aug.2004 3:48:00 PM
|
|
|
tshinder
Posts: 47490
Joined: 10.Jan.2001
From: Texas
Status: offline
|
Hi Misa,
If you don't want to buy software, you can use the SDK.
HTH, Tom
|
|
|
|
RE: How to restrict download size - 30.Aug.2004 11:24:00 PM
|
|
|
misa2
Posts: 6
Joined: 26.Aug.2004
From: Nis, Serbia
Status: offline
|
Yes, I would like to, but the 2004 SDK is not finished AFAIK. And Technet section is full of references to samples, that could not be found anywhere...
|
|
|
|
RE: How to restrict download size - 31.Aug.2004 7:27:00 AM
|
|
|
tshinder
Posts: 47490
Joined: 10.Jan.2001
From: Texas
Status: offline
|
Hi Misa,
The SDK is included on the CD.
HTH, Tom
|
|
|
|
RE: How to restrict download size - 31.Aug.2004 9:48:00 AM
|
|
|
misa2
Posts: 6
Joined: 26.Aug.2004
From: Nis, Serbia
Status: offline
|
I knew i was missing something. I just hate EA licensing, when I am not the one who receives media...
Thank you for your help
Milos
|
|
|
|
RE: How to restrict download size - 3.Sep.2004 12:21:00 AM
|
|
|
misa2
Posts: 6
Joined: 26.Aug.2004
From: Nis, Serbia
Status: offline
|
After a couple of days of playing with SDK, i am testing a webfilter, which drops http 200 responses if the Content-Length in request header exceeds hardcoded value.
The good news is that it works (still testing).
The bad news are: Its firewall-wide and can't bind to policy. Its limited to hardcoded value (no settings).
The settings issue isn't that hard to code. However, to have policy specific settings functionality is VERY hard to accomplish.
|
|
|
|
RE: How to restrict download size - 3.Sep.2004 12:13:00 PM
|
|
|
munnobhai
Posts: 94
Joined: 1.Nov.2002
From: Karachi , Pakistan
Status: offline
|
Hi, Could you please provide me the code so I can also work on it ??
|
|
|
|
RE: How to restrict download size - 3.Sep.2004 12:46:00 PM
|
|
|
tshinder
Posts: 47490
Joined: 10.Jan.2001
From: Texas
Status: offline
|
Hi Misa,
That's great! Good to hear that you have at least part of it working.
Thanks! Tom
|
|
|
|
RE: How to restrict download size - 5.Sep.2004 9:04:00 AM
|
|
|
azfar
Posts: 487
Joined: 27.Oct.2002
From: Karachi
Status: online
|
Well Misa I hope when you finish it you share it with us. Thanks.
|
|
|
|
RE: How to restrict download size - 5.Sep.2004 6:27:00 PM
|
|
|
azfar
Posts: 487
Joined: 27.Oct.2002
From: Karachi
Status: online
|
Well guys it can be done by setting max payload lenght in http filtering options. [ September 05, 2004, 06:29 PM: Message edited by: Azfar Hashmi ]
|
|
|
|
RE: How to restrict download size - 5.Sep.2004 9:20:00 PM
|
|
|
misa2
Posts: 6
Joined: 26.Aug.2004
From: Nis, Serbia
Status: offline
|
Hunaid, my email is mkostic_monkey_edn.co.yu. Can you please wait until friday (i'll be out of office).
Azfar, I will share it when i finish it.
And no, it can't be done using max payload length, as it is the length of REQUEST, not the length of the RESPONSE (the one you want to block). [ September 05, 2004, 09:23 PM: Message edited by: Misa ]
|
|
|
|
RE: How to restrict download size - 6.Sep.2004 9:39:00 AM
|
|
|
munnobhai
Posts: 94
Joined: 1.Nov.2002
From: Karachi , Pakistan
Status: offline
|
Hi Misa, I tried to block files with the pay load option and it is working fine !
Waiting for your code ... thanks for reply. [ September 06, 2004, 09:42 AM: Message edited by: Hunaid Haroon Al Qureshi ]
|
|
|
|
RE: How to restrict download size - 7.Sep.2004 1:25:00 AM
|
|
|
misa2
Posts: 6
Joined: 26.Aug.2004
From: Nis, Serbia
Status: offline
|
Well, i must say i am puzzled. This payload size simply does not works for me.
Have you tried to download something larger than payload size?
For example, I have set payload size to 1000000 bytes. Now, this url is 2,77MB Some demo softvare download No matter what i configure for payload size, this request succeeds...
Though it isn't finished yet, Here is Content Length filter with hardcoded 2000000 bytes maximum payload size. Have fun Content Lenght Filter
Installation 1) Copy it to Program Files\Microsoft ISA Server (or anywhere else), extract the dll. 2) Start->Run->cmd 3) Change to directory where you extracted .dll 4) Type "regsvr32 ContentLengthFilter.dll" 5) wait for regsvr success dialog 6) Open ISA Server Management 7) Go to Configuration-> Add-ins 8) Press F5, and you should see this filter. 9) Make sure it is enabled (it should be by default)
Deinstallation: 1) Start->Run->cmd 2) Change to directory where you extracted .dll 3) Type "regsvr32/u ContentLengthFilter.dll" 4) wait for regsvr success dialog
That's it.
Remember that filter is firewall wide! It is applied to all http traffic, in or out. Regardless of policies. And it's hardcoded to 2000000.
|
|
|
|
RE: How to restrict download size - 7.Sep.2004 9:38:00 AM
|
|
|
azfar
Posts: 487
Joined: 27.Oct.2002
From: Karachi
Status: online
|
Thanks Misa Congrat you have done it. But the problem I faced here is when I uncompress it I am getting header error. Can you please mail me directly at azfarhusain@yahoo.com Yes I tried to download larger then max payload size file and ISA always denied me. Thanks.
|
|
|
|
RE: How to restrict download size - 7.Sep.2004 11:51:00 AM
|
|
|
munnobhai
Posts: 94
Joined: 1.Nov.2002
From: Karachi , Pakistan
Status: offline
|
Dear Misa, Did you add the files extentions in extentions tab ??
Will you please send the code at munnobhai@hotmail.com
Thanks in advance, Hunaid Haroon.
|
|
|
|
RE: How to restrict download size - 7.Sep.2004 1:23:00 PM
|
|
|
azfar
Posts: 487
Joined: 27.Oct.2002
From: Karachi
Status: online
|
I also want to change file length if you could recode it and make it dynamic or send me the code I will change it myself. Email: azfarhusain@yahoo.com
|
|
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts |
|