Software > F.A.Q.s

How to ban a user account? [beta 2.3 >= #253]

(1/1)

SilentPliz:
"For beta versions only"

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


--- Quote from: rejetto on January 28, 2010, 03:18:30 PM ---
[+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.}.}
:}.}


--- End quote ---

EDIT: note: in recent betas (260+), section [+request] can be simplified by this way:


--- Quote from: rejetto on September 01, 2010, 09:40:26 AM ---{.set|b|{.from table|#banned.users|%user%.}.}
{.disconnection reason| Hello %user%. You are banned. {.^b.}|if={.length|var=b.}.}

--- End quote ---

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:


--- Quote from: rejetto on January 28, 2010, 03:18:30 PM ---
mark=you are impolite
rejetto=you suck
uploader=sorry, temporarily disabled
other username=other reason for banning


--- End quote ---

If this does not work with your template:


--- Quote from: rejetto on January 29, 2010, 09:35:09 AM ---
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..}


--- End quote ---

mail2sc:
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.

rejetto:
the topic is about banning accounts,
it's very different than banning IP addresses.

keegan higgs:
how do you set up passwords for users?

Mars:
Use the keyboard key F7, select an account and change the password field

Navigation

[0] Message Index

Go to full version