Difference between revisions of "Wizhelp/Ban"

From DikuMUD Wiki
Jump to navigation Jump to search
(Ban: t/n/d, wildcards, the text files (bantotal.txt, bannew.txt), period comes after the text file, kept over reboots, logged, from ban.cpp)
(a repeat ban keeps its text file)
 
Line 22: Line 22:
 
after the text file: to give a period, name the file too.
 
after the text file: to give a period, name the file too.
  
−
Banning a site that is already banned changes its ban. Bans are kept over  
+
Banning a site that is already banned gives it the new type and period
−
reboots. The command is logged.
+
(no period: it lasts until lifted); it keeps the text file it had. Bans
 +
are kept over reboots. The command is logged.
  
  

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}