rejetto forum

How to ban a user account?

Guest · 19 · 15865

0 Members and 1 Guest are viewing this topic.

PP

  • Guest
I can ban a user only from the IP, not from user account (the user can change the IP and reconnect again)
How to ban a user account?


Offline uvbeenzaned

  • Occasional poster
  • *
    • Posts: 38
    • View Profile
I don't think there is support for that currently.
Maybe rejetto will consider this!
Good idea!
Antec 900 Gaming Case, Nvidia XFX 780i 3 Way SLI Motherboard, 6 GB RAM, EVGA-Nvidia GeForce 9800 GTX + and Nvidia GeForce 8600 GT using 2 Way SLI, Pentium Dual Core Processor, Core Speed=2.6 MHz, 3 Monitors, 1150 GBs of hd storage, Win7=YEAH!


Offline SilentPliz

  • Operator
  • Tireless poster
  • *****
    • Posts: 1298
  • ....... chut ! shh!
    • View Profile
With the beta 2.3 #XXX make events script (alt+F6) like this.

eg:

[+request]
{.add to log|%user% is banned.}
{.if|{.=|%user%|rejetto.}|{:{.disconnect.}:}.}


Quote
having several usernames would be easy by using {.switch.} instead of {.=.}
« Last Edit: January 27, 2010, 08:36:05 PM by SilentPliz »


Offline uvbeenzaned

  • Occasional poster
  • *
    • Posts: 38
    • View Profile
it leaves a blank page when you ban using event scripts!
Can you have a custom user ban page?
Antec 900 Gaming Case, Nvidia XFX 780i 3 Way SLI Motherboard, 6 GB RAM, EVGA-Nvidia GeForce 9800 GTX + and Nvidia GeForce 8600 GT using 2 Way SLI, Pentium Dual Core Processor, Core Speed=2.6 MHz, 3 Monitors, 1150 GBs of hd storage, Win7=YEAH!


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13521
    • View Profile
go the the account properties and remove the "enabled".


Offline uvbeenzaned

  • Occasional poster
  • *
    • Posts: 38
    • View Profile
thanks rejetto! :D  sometimes my head is in the clouds! ::)
Antec 900 Gaming Case, Nvidia XFX 780i 3 Way SLI Motherboard, 6 GB RAM, EVGA-Nvidia GeForce 9800 GTX + and Nvidia GeForce 8600 GT using 2 Way SLI, Pentium Dual Core Processor, Core Speed=2.6 MHz, 3 Monitors, 1150 GBs of hd storage, Win7=YEAH!


PP

  • Guest
go the the account properties and remove the "enabled".


It's a good alternative, but I would prefer to block a user with a message like "Under construction" (from ban option) because If he could not log in, I will receive a call immediately asking about this. :)


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13521
    • View Profile
good news everyone!
from next version you'll be able to install this little script in ALT+F6

Code: [Select]
[+server start=every 5 seconds]
{.file changed|ban.txt|#banned.users.}

[+request]
{.set|b|{.from table|#banned.users|%user%.}.}
{.if|{.length|var=b.}|{:
{.disconnection reason| Hello %user%. You are banned. {.^b.}.}
:}.}

after you copy&paste this script, all you have to do is to create a file "ban.txt" in the same folder of hfs.exe using this format
Code: [Select]
mark=you are impolite
rejetto=you suck
uploader=sorry, temporarily disabled
other username=other reason for banning


Offline uvbeenzaned

  • Occasional poster
  • *
    • Posts: 38
    • View Profile
Many thanks again rejetto! ;D  You are talking about #253 correct?
« Last Edit: January 28, 2010, 09:52:52 PM by uvbeenzaned »
Antec 900 Gaming Case, Nvidia XFX 780i 3 Way SLI Motherboard, 6 GB RAM, EVGA-Nvidia GeForce 9800 GTX + and Nvidia GeForce 8600 GT using 2 Way SLI, Pentium Dual Core Processor, Core Speed=2.6 MHz, 3 Monitors, 1150 GBs of hd storage, Win7=YEAH!


Offline SilentPliz

  • Operator
  • Tireless poster
  • *****
    • Posts: 1298
  • ....... chut ! shh!
    • View Profile
Quote
rejetto=you suck

Donate for it !  ;D

-----------------------------

thank for this script ! ;)


Offline uvbeenzaned

  • Occasional poster
  • *
    • Posts: 38
    • View Profile
We have one tiny problem though!  When using this new ban feature the reason for ban does not show up in any other templates than the default and also disable macros.  Check the image out.  Template used is rawr 0.1.2.  Can this be fixed?
Antec 900 Gaming Case, Nvidia XFX 780i 3 Way SLI Motherboard, 6 GB RAM, EVGA-Nvidia GeForce 9800 GTX + and Nvidia GeForce 8600 GT using 2 Way SLI, Pentium Dual Core Processor, Core Speed=2.6 MHz, 3 Monitors, 1150 GBs of hd storage, Win7=YEAH!


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13521
    • View Profile
that's because the template you are testing is not using the needed feature (that's the %reason% in section [deny])
we should ask RAWR-designs to include it.
try right clicking on the root/home > properties > diff template
and paste this

[deny]
<h1>Unallowed</h1>
{.or|%reason%|This resource is not accessible..}


Offline uvbeenzaned

  • Occasional poster
  • *
    • Posts: 38
    • View Profile
Thanks, it worked!
Antec 900 Gaming Case, Nvidia XFX 780i 3 Way SLI Motherboard, 6 GB RAM, EVGA-Nvidia GeForce 9800 GTX + and Nvidia GeForce 8600 GT using 2 Way SLI, Pentium Dual Core Processor, Core Speed=2.6 MHz, 3 Monitors, 1150 GBs of hd storage, Win7=YEAH!


Offline r][m

  • Tireless poster
  • ****
    • Posts: 347
    • View Profile
that's because the template you are testing is not using the needed feature (that's the %reason% in section [deny])
we should ask RAWR-designs to include it.
try right clicking on the root/home > properties > diff template
and paste this

[deny]
<h1>Unallowed</h1>
{.or|%reason%|This resource is not accessible..}
Shouldn't this have been [ban]? from the main template section [ban] rather than [deny]?
Deny is the section presented to a user who has attemped to access a resource/file they
haven't been granted rights to, but they can continue to use the server.
Ban is the section a user see's when they can no longer log on at all.
Aparrently [deny] is the default in the server code, since I don't seem to be able to change it
so it will work correctly.


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13521
    • View Profile
it's not [ban] because we are not using here the ban feature of HFS.
we are using a generic disconnection, through scripting. HFS doesn't know it's used for conceptual banning.

note: in recent betas, section [+request] can be simplified this way

{.set|b|{.from table|#banned.users|%user%.}.}
{.disconnection reason| Hello %user%. You are banned. {.^b.}|if={.length|var=b.}.}