Author Topic: How to ban a user account? [beta 2.3 >= #253]  (Read 6428 times)

0 Members and 1 Guest are viewing this topic.

Offline SilentPliz

  • Operator
  • Insane poster
  • *****
  • Posts: 1181
  • ....... chut ! shh!
    • View Profile
How to ban a user account? [beta 2.3 >= #253]
« on: March 14, 2010, 10:14:51 AM »
"For beta versions only"

You are able to install this little script in ALT+F6


[+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.}.}
:}.}


EDIT: note: in recent betas (260+), 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.}.}


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:


mark=you are impolite
rejetto=you suck
uploader=sorry, temporarily disabled
other username=other reason for banning




If this does not work with your template:


that's because the template you are testing is not using the needed feature (that's the %reason% in section [deny])

try right clicking on the root/home > properties > diff template
and paste this

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


« Last Edit: September 02, 2010, 04:08:41 AM by SilentPliz »

Offline mail2sc

  • Occasional poster
  • *
  • Posts: 2
    • View Profile
Re: How to ban a user account? [beta 2.3 >= #253]
« Reply #1 on: January 29, 2012, 12:02:36 PM »
i think the best way is to ban using comodo firewall (or whatever firewall you use).. comodo's gui is very good and understandable to everyone..

you can set an i.p range in it.. and block all addresses of that lane.

Offline rejetto

  • Administrator
  • Insane programmer
  • *
  • Posts: 12844
    • View Profile
Re: How to ban a user account? [beta 2.3 >= #253]
« Reply #2 on: January 30, 2012, 01:28:11 PM »
the topic is about banning accounts,
it's very different than banning IP addresses.

Offline keegan higgs

  • Occasional poster
  • *
  • Posts: 1
    • View Profile
Re: How to ban a user account? [beta 2.3 >= #253]
« Reply #3 on: September 08, 2013, 10:17:56 PM »
how do you set up passwords for users?
krh

Offline Mars

  • Operator
  • Insane poster
  • *****
  • Posts: 1815
    • View Profile
Re: How to ban a user account? [beta 2.3 >= #253]
« Reply #4 on: September 09, 2013, 02:01:25 AM »
Use the keyboard key F7, select an account and change the password field
FRENCH MEMBER : Si vous comprenez la langue française,  n'hésitez pas à l'utiliser pour une meilleure aide de ma part