rejetto forum
February 09, 2012, 04:34:18 AM *
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] 2
  Print  
Author Topic: How to ban a user account?  (Read 1456 times)
0 Members and 1 Guest are viewing this topic.
PP
Guest


Email
« 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?
Logged
uvbeenzaned
Experienced poster
***
Offline Offline

Posts: 38



View Profile Email
« 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!
Logged

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!
SilentPliz
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1023


....... chut ! shh!


View Profile WWW
« 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 » Logged
uvbeenzaned
Experienced poster
***
Offline Offline

Posts: 38



View Profile Email
« 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?
Logged

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!
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11756


View Profile
« Reply #4 on: January 27, 2010, 04:24:10 PM »

go the the account properties and remove the "enabled".
Logged
uvbeenzaned
Experienced poster
***
Offline Offline

Posts: 38



View Profile Email
« Reply #5 on: January 27, 2010, 09:59:30 PM »

thanks rejetto! Cheesy  sometimes my head is in the clouds! Roll Eyes
Logged

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!
rejetto forum
« Reply #5 on: January 27, 2010, 09:59:30 PM »

Do you like this software? Consider even $2
 Logged
PP
Guest


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

Italy Italy

Posts: 11756


View Profile
« 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:
[+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:
mark=you are impolite
rejetto=you suck
uploader=sorry, temporarily disabled
other username=other reason for banning

Follow members gave a thank to your post:

SilentPliz, uvbeenzaned

For this post, 2 members gave a thank you!
Logged
uvbeenzaned
Experienced poster
***
Offline Offline

Posts: 38



View Profile Email
« Reply #8 on: January 28, 2010, 03:49:03 PM »

Many thanks again rejetto! Grin  You are talking about #253 correct?
« Last Edit: January 28, 2010, 03:52:52 PM by uvbeenzaned » Logged

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!
SilentPliz
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1023


....... chut ! shh!


View Profile WWW
« Reply #9 on: January 28, 2010, 04:03:04 PM »

Quote
rejetto=you suck

Donate for it !  Grin

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

thank for this script ! Wink
Logged
uvbeenzaned
Experienced poster
***
Offline Offline

Posts: 38



View Profile Email
« 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?


* accessdenied.PNG (20.38 KB, 1277x452 - viewed 143 times.)
Logged

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!
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11756


View Profile
« 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..}
Logged
uvbeenzaned
Experienced poster
***
Offline Offline

Posts: 38



View Profile Email
« Reply #12 on: January 29, 2010, 04:26:51 PM »

Thanks, it worked!
Logged

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!
r][m
Insane poster
*****
Offline Offline

United States United States

Posts: 339


View Profile
« Reply #13 on: August 28, 2010, 03: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.
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11756


View Profile
« Reply #14 on: September 01, 2010, 04: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.}.}
Logged
Pages: [1] 2
  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 February 07, 2012, 02:01:46 PM
anything