rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: Novox on October 26, 2008, 11:37:24 AM

Title: [Request]MAX Connection per user function..
Post by: Novox 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.
Title: Re: [Request]MAX Connection per user function..
Post by: rejetto 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.}
:}.}
Title: Re: [Request]MAX Connection per user function..
Post by: Novox 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
Title: Re: [Request]MAX Connection per user function..
Post by: rejetto 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.
Title: Re: [Request]MAX Connection per user function..
Post by: Novox on October 28, 2008, 05:37:32 AM
how about for the specific user? is it can?
Title: Re: [Request]MAX Connection per user function..
Post by: rejetto 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.}
:}.}
Title: Re: [Request]MAX Connection per user function..
Post by: Novox on November 01, 2008, 03:41:12 PM
Thank you very much! How about limit the connections for specific user?
Title: Re: [Request]MAX Connection per user function..
Post by: rejetto on November 01, 2008, 07:07:30 PM
isn't the solution i gave you enough?
Title: Re: [Request]MAX Connection per user function..
Post by: Novox on November 02, 2008, 02:55:50 PM
It's enough, sorry for the latest question. I just type it wrong >,<