rejetto forum

[Request]MAX Connection per user function..

Novox · 9 · 3979

0 Members and 1 Guest are viewing this topic.

Offline Novox

  • Occasional poster
  • *
    • Posts: 84
    • View Profile
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.


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
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.}
:}.}


Offline Novox

  • Occasional poster
  • *
    • Posts: 84
    • View Profile
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 »


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
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.


Offline Novox

  • Occasional poster
  • *
    • Posts: 84
    • View Profile

Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
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 »


Offline Novox

  • Occasional poster
  • *
    • Posts: 84
    • View Profile
Thank you very much! How about limit the connections for specific user?


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile

Offline Novox

  • Occasional poster
  • *
    • Posts: 84
    • View Profile
It's enough, sorry for the latest question. I just type it wrong >,<