Author Topic: How to ban a user account?  (Read 2730 times)

0 Members and 1 Guest are viewing this topic.

PP

  • Guest
How to ban a user account?
« on: January 27, 2010, 02:08:42 PM »
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

  • Experienced poster
  • ***
  • Posts: 38
    • View Profile
Re: How to ban a user account?
« Reply #1 on: January 27, 2010, 02:21:21 PM »
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
  • Insane poster
  • *****
  • Posts: 1132
  • ....... chut ! shh!
    • View Profile
Re: How to ban a user account?
« Reply #2 on: January 27, 2010, 02:29:18 PM »
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, 02:36:05 PM by SilentPliz »

Offline uvbeenzaned

  • Experienced poster
  • ***
  • Posts: 38
    • View Profile
Re: How to ban a user account?
« Reply #3 on: January 27, 2010, 02:36:38 PM »
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
  • Insane programmer
  • *
  • Posts: 12501
  • Country: it
    • View Profile
Re: How to ban a user account?
« Reply #4 on: January 27, 2010, 04:24:10 PM »
go the the account properties and remove the "enabled".

Offline uvbeenzaned

  • Experienced poster
  • ***
  • Posts: 38
    • View Profile
Re: How to ban a user account?
« Reply #5 on: January 27, 2010, 09:59:30 PM »
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
Re: How to ban a user account?
« Reply #6 on: January 27, 2010, 10:27:01 PM »
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
  • Insane programmer
  • *
  • Posts: 12501
  • Country: it
    • View Profile
Re: How to ban a user account?
« Reply #7 on: January 28, 2010, 09:18:30 AM »
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

  • Experienced poster
  • ***
  • Posts: 38
    • View Profile
Re: How to ban a user account?
« Reply #8 on: January 28, 2010, 03:49:03 PM »
Many thanks again rejetto! ;D  You are talking about #253 correct?
« Last Edit: January 28, 2010, 03: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
  • Insane poster
  • *****
  • Posts: 1132
  • ....... chut ! shh!
    • View Profile
Re: How to ban a user account?
« Reply #9 on: January 28, 2010, 04:03:04 PM »
Quote
rejetto=you suck

Donate for it !  ;D

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

thank for this script ! ;)

Offline uvbeenzaned

  • Experienced poster
  • ***
  • Posts: 38
    • View Profile
Re: How to ban a user account?
« Reply #10 on: January 28, 2010, 04:05:43 PM »
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
  • Insane programmer
  • *
  • Posts: 12501
  • Country: it
    • View Profile
Re: How to ban a user account?
« Reply #11 on: January 29, 2010, 03:35:09 AM »
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

  • Experienced poster
  • ***
  • Posts: 38
    • View Profile
Re: How to ban a user account?
« Reply #12 on: January 29, 2010, 04:26:51 PM »
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

  • Insane poster
  • *****
  • Posts: 347
    • View Profile
Re: How to ban a user account?
« Reply #13 on: August 28, 2010, 02:33:55 PM »
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
  • Insane programmer
  • *
  • Posts: 12501
  • Country: it
    • View Profile
Re: How to ban a user account?
« Reply #14 on: September 01, 2010, 03:40:26 AM »
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.}.}