Login
Register
Menu
Home
Help
Search
rejetto forum
PROBLEMS? QUESTIONS? CLICK HERE!
rejetto forum
»
Software
»
HFS ~ HTTP File Server
»
[Request]MAX Connection per user function..
[Request]MAX Connection per user function..
Novox
·
9 ·
3932
« previous
next »
Print
Pages:
1
0 Members and 1 Guest are viewing this topic.
Novox
Occasional poster
Posts:
84
[Request]MAX Connection per user function..
on:
October 26, 2008, 11:37:24 AM
Hello Dev,
I need to limit the connection per user. I see in the HFS today only has a limitation that depends on same address or IP but doesn't has the limitation per user. So, would you please implement this thing?
Thanks in advance.
rejetto
Administrator
Tireless poster
Posts:
13510
Re: [Request]MAX Connection per user function..
Reply #1 on:
October 26, 2008, 04:02:48 PM
By using the latest beta versions, you can "edit event scripts" and enter this code
[download]
{.if|{. {.current downloads by user.} > 1.}|{:
{.disconnection reason|only one download at time.}
:}.}
Novox
Occasional poster
Posts:
84
Re: [Request]MAX Connection per user function..
Reply #2 on:
October 27, 2008, 09:22:49 AM
Thank you very much rejetto.
Another one question please, ".current downloads by user", user means all users? or user is stand for individual username? and if I would like to limit for all user what will be replaced? Please explain.
Thank you
«
Last Edit: October 27, 2008, 03:01:10 PM by Novox
»
rejetto
Administrator
Tireless poster
Posts:
13510
Re: [Request]MAX Connection per user function..
Reply #3 on:
October 27, 2008, 03:08:51 PM
for every download, it counts the number of current downloads of the current user.
so, it is applied to all users.
every user will have this limit: 1 download at time.
Novox
Occasional poster
Posts:
84
Re: [Request]MAX Connection per user function..
Reply #4 on:
October 28, 2008, 05:37:32 AM
how about for the specific user? is it can?
rejetto
Administrator
Tireless poster
Posts:
13510
Re: [Request]MAX Connection per user function..
Reply #5 on:
October 28, 2008, 05:10:18 PM
do you need something like this?
[download]
{.if|{.and
|{.%user% != special_account.}
|{. {.current downloads by user.} > 1.}
/and.}|{:
{.disconnection reason|only one download at time.}
:}.}
«
Last Edit: October 28, 2008, 05:13:03 PM by rejetto
»
Novox
Occasional poster
Posts:
84
Re: [Request]MAX Connection per user function..
Reply #6 on:
November 01, 2008, 03:41:12 PM
Thank you very much! How about limit the connections for specific user?
rejetto
Administrator
Tireless poster
Posts:
13510
Re: [Request]MAX Connection per user function..
Reply #7 on:
November 01, 2008, 07:07:30 PM
isn't the solution i gave you enough?
Novox
Occasional poster
Posts:
84
Re: [Request]MAX Connection per user function..
Reply #8 on:
November 02, 2008, 02:55:50 PM
It's enough, sorry for the latest question. I just type it wrong >,<
Print
Pages:
1
rejetto forum
»
Software
»
HFS ~ HTTP File Server
»
[Request]MAX Connection per user function..
Search
Username
Password
Always stay logged in
Forgot your password?