rejetto forum
Software => HFS ~ HTTP File Server => Topic started 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.
-
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.}
:}.}
-
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
-
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.
-
how about for the specific user? is it can?
-
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.}
:}.}
-
Thank you very much! How about limit the connections for specific user?
-
isn't the solution i gave you enough?
-
It's enough, sorry for the latest question. I just type it wrong >,<