How To Ban

Need help seting up a server, or have a question on how to run one? This is the place.
Post Reply
User avatar
Bambino
Private First Class
Private First Class
Posts: 1210
Joined: Mon Apr 21, 2008 10:27 pm
Location: Alberta, Canada

How To Ban

Post by Bambino » Wed Aug 05, 2009 2:46 am

This would fall under Administration.

In this post I will cover the various ban commands.

The types of bans are: IP Bans, ID Bans, Range Bans, Host Bans.

Note: You must have the following permissions to do these commands: 'BAN', 'SHORTBAN' & 'PLAYERLIST'
if you have BAN, you don't need SHORTBAN.

All bans need reason, and all bans need a time limit, or duration.

Duration Limits

1m = 1 minute
1h = 1 hour
1d = 1 day
1w = 1 week
1y = 1 year
0 = forever, or permanent ban (perm(a)-ban)

IP Ban: If/when you do '/playerlist' it will read out all the players IPs and hostnames.

Code: Select all

[SERVER->] [14] Bambino 127.0.0.1 (localhost)
[SERVER->] [15] sniper15 123.123.123.123 (thisis.myhost.com)
etc.

To do a normal IP ban on Bambino do

Code: Select all

/ban 127.0.0.1 0 to much skillz!
And the next time Bambino tries to join the server he will receive the message "REFUSED: to much skillz! by Ban-Happy-Idiot

ID Bans: ID bans are used only on registered users (Players with a + by their name)

Do view the list of registered player's ID numbers do '/idlist'

Code: Select all

[SERVER->] Bambino       : 23456
For the ban you do:

Code: Select all

/idban +23456 <duration> <reason>
Then the player cannot use his registered callsign, but can go unregistered.

Host Bans: The host ban can be used to stop a cheater or abusive player with a dynamic IP.

To add a host ban you type:

Code: Select all

 /hostban <hostname> <duration> <reason>
for example,

Code: Select all

/hostban *.thisis.myhost.com 0 Cheating and language abuse.
and it will ban all the IP addresses from thisis.myhost.com forever, for the reason specified.

NOTE: many players can get caught in a hostban so make sure you have a whitelist group to let them play!
Many times the ban message does not go through, and it just hangs on "Global Login Approved!" and it just sits on the map with no players, this may be a sign of being in a hostban, contact the server owner for help!


Range Bans: A range ban is very simple, it's almost like a IP ban. You do

Code: Select all

/playerlist
and it will read out something like this:

Code: Select all

[SERVER->] Bambino 127.0.0.1 (localhost)
and you type

Code: Select all

/ban 127.0.0.* 1w Ban evasion! Your skillz not wanted!'
That will ban all IP addresses that fall in the 127.0.0.* range.

Different classes:

127.0.0.* = Class C
127.0.*.* = Class B
127.*.*.* = Class A (Do not do this)

UNBANNING

for unbanning you need the 'UNBAN' permission

IP UnBan:

Code: Select all

/unban 127.0.0.1


It must be exactly the same as when you do '/banlist'

IDUNBAN:

Code: Select all

/idunban +23456
Host UnBan:

Code: Select all

/hostunban *.thisis.myhost.com
Range UnBan:

Code: Select all

/unban 127.0.0.*
It is the same as a IP unban but it must be the same as in the banlist.

Whitelisting

If you are the server owner, or a user with a whitelist group on the server you can add users to the group to by-pass bans.
you must add the ANTIBAN permission to by-pass bans

I hope this helps some people in becoming better admins and cops, the BZFlag community needs good admins!

Edit: added code blocks around ban commands and fixed spelling errors.
Last edited by Bambino on Fri Apr 30, 2010 9:53 pm, edited 2 times in total.
"Anyone who has never made a mistake has never tried anything new." -- Albert Einstein
GU League | Ducati League | OpenLeague

User avatar
mrapple
Sergeant Major
Sergeant Major
Posts: 460
Joined: Wed May 27, 2009 11:59 am
Location: Unknown
Contact:

Re: How To Ban

Post by mrapple » Wed Aug 05, 2009 3:16 am

very nice guide. covered everything in detail. good job ;)

like the part

Reason: to much skillz by Ban-Happy-Idiot :P
Image

User avatar
joevano
General
General
Posts: 1863
Joined: Sat Jun 18, 2005 1:08 pm
Location: South Bend, Indiana, USA

Re: How To Ban

Post by joevano » Wed Aug 05, 2009 8:47 am

One thing not mentioned, is that if you do a /ban on a registered player, it AUTOMATICALLY adds a corresponding /idban. You must then do both an /unban and /idunban if you made a mistake or are lifting the ban.

PS. Documentation like this REALLY belongs on the wiki...
There is nothing worse than aggressive stupidity. -- Johann Wolfgang von Goethe
"How many legs does a dog have if you call his tail a leg? Four. Calling a tail a leg doesn't make it a leg." -- Abraham Lincoln

tobylane
Private First Class
Private First Class
Posts: 130
Joined: Thu Jan 29, 2009 4:21 pm

Re: How To Ban

Post by tobylane » Sat Aug 08, 2009 9:29 pm

Can you cover whitelists please.

User avatar
Bambino
Private First Class
Private First Class
Posts: 1210
Joined: Mon Apr 21, 2008 10:27 pm
Location: Alberta, Canada

Re: How To Ban

Post by Bambino » Sat Aug 08, 2009 9:33 pm

What's there to cover? it's just a group with the ANTIBAN (most likely)
"Anyone who has never made a mistake has never tried anything new." -- Albert Einstein
GU League | Ducati League | OpenLeague

Post Reply