User:JayJeckel/Banlist.txt File Format

From Terraria Wiki
Jump to navigation Jump to search

The banlist.txt is a normal text file and uses a flat-file format.

Each entry is composed of one or two lines: the banned IP and, optionally, the name of the banned user.

When a player is banned from the game, the player's name is prefixed with two slash (/) characters and is then added as a line to the file. Then, the player's IP is added as another new line. However, when checking if a player is banned from a server, each line of the banlist file is checked against the player's connecting IP and no additional checks are made against the name lines.