rejetto forum
May 25, 2012, 04:01:27 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: This forum is free, you do NOT need to register to post. But you may.
PROBLEMS? QUESTIONS? CLICK HERE!
Fill the survey!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How to ban a user account? [beta 2.3 >= #253]  (Read 1271 times)
0 Members and 1 Guest are viewing this topic.
SilentPliz
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1046


....... chut ! shh!


View Profile WWW
« on: March 14, 2010, 11: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, 05:08:41 AM by SilentPliz » Logged
mail2sc
Occasional poster
*
Offline Offline

India India

Posts: 2


View Profile
« 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.
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11831


View Profile
« Reply #2 on: January 30, 2012, 01:28:11 PM »

the topic is about banning accounts,
it's very different than banning IP addresses.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!


Google visited last this page May 24, 2012, 07:01:18 PM