rejetto forum

Software => HFS ~ HTTP File Server => F.A.Q.s => Topic started by: SilentPliz on March 14, 2010, 04:14:51 PM

Title: How to ban a user account? [beta 2.3 >= #253]
Post by: SilentPliz on March 14, 2010, 04:14:51 PM
"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 by 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..}


Title: Re: How to ban a user account? [beta 2.3 >= #253]
Post by: mail2sc on January 29, 2012, 06: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.
Title: Re: How to ban a user account? [beta 2.3 >= #253]
Post by: rejetto on January 30, 2012, 07:28:11 PM
the topic is about banning accounts,
it's very different than banning IP addresses.
Title: Re: How to ban a user account? [beta 2.3 >= #253]
Post by: keegan higgs on September 09, 2013, 04:17:56 AM
how do you set up passwords for users?
Title: Re: How to ban a user account? [beta 2.3 >= #253]
Post by: Mars on September 09, 2013, 08:01:25 AM
Use the keyboard key F7, select an account and change the password field