Difference between revisions of "Wizhelp/Ban"

From DikuMUD Wiki
Jump to navigation Jump to search
(Created page with "= Ban (240) = Usage: ban <t|n> <site_name> [period] ban d <sitename> ban With this wiz-command you can exclude a given site or group of sites from accessing the mud. T...")
 
(a repeat ban keeps its text file)
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
  
 
Usage:
 
Usage:
−
  ban <t|n> <site_name> [period]
+
ban                                       (list the bans)
−
  ban d <sitename>
+
ban t <site> [<textfile> [<period>]]      (ban all logins)
−
  ban
+
ban n <site> [<textfile> [<period>]]     (ban new characters)
 +
ban d <site>                             (lift a ban)
  
−
With this wiz-command you can exclude a given site or group of sites from accessing the mud. The site_name may contain the wild cards * and ?, allowing sites like b?zier.daimi.*.dk to be banned. The letters t or n indicates whether the ban is a total one (no chars from the site can connect (VERY harsh punishment!)) or a ban for the creation of any new characters from the site. An optional period can be given to allow for temporary bans, and it must consist of a string of the form "2d 3h 4m" indicating 2days 3hours and 4mins ban. Any of these are optional of course. A temporary ban will lift itself when the time is up. Using the d option means you delete a site, if it's present in the list. No options/arguments to the command gives a list of the banned sites.
+
Examples:
 +
ban n *.example.net
 +
ban t 203.0.113.* bantotal.txt 2d 12h
 +
 
 +
Keeps a site, or a group of sites, away from the game. The site may hold
 +
the wild cards * and ?. A '''total''' ban (t) lets no one from the site log
 +
in, a harsh punishment; a '''new''' ban (n) only stops them from making new  
 +
characters.
 +
 
 +
Those who are turned away are shown a text file from the etc directory:
 +
bantotal.txt for a total ban, bannew.txt for a new-character ban, or the  
 +
file you name. The period, such as 2d 3h 30m (days, hours, minutes), makes
 +
the ban lift by itself when the time is up. Note that the period comes
 +
after the text file: to give a period, name the file too.
 +
 
 +
Banning a site that is already banned gives it the new type and period
 +
(no period: it lasts until lifted); it keeps the text file it had. Bans
 +
are kept over reboots. The command is logged.
 +
 
 +
 
 +
See Also:
 +
> {Wizhelp Wizlock}
 +
> {Wizhelp Users}

Latest revision as of 21:39, 14 November 2026

Ban (240)

Usage:

ban                                       (list the bans)
ban t <site> [<textfile> [<period>]]      (ban all logins)
ban n <site> [<textfile> [<period>]]      (ban new characters)
ban d <site>                              (lift a ban)

Examples:

ban n *.example.net
ban t 203.0.113.* bantotal.txt 2d 12h

Keeps a site, or a group of sites, away from the game. The site may hold the wild cards * and ?. A total ban (t) lets no one from the site log in, a harsh punishment; a new ban (n) only stops them from making new characters.

Those who are turned away are shown a text file from the etc directory: bantotal.txt for a total ban, bannew.txt for a new-character ban, or the file you name. The period, such as 2d 3h 30m (days, hours, minutes), makes the ban lift by itself when the time is up. Note that the period comes after the text file: to give a period, name the file too.

Banning a site that is already banned gives it the new type and period (no period: it lasts until lifted); it keeps the text file it had. Bans are kept over reboots. The command is logged.


See Also:

> {Wizhelp Wizlock}
> {Wizhelp Users}