To allow only players you choose, turn off Anyone can make an account in the Server Settings editor. A new player then cannot create an account by joining. You add each player to the whitelist, either with Add to whitelist on the Active players card or with the adduser command in the Console.
Close the server to new accounts
- Stop the server. Open Settings, then Server Settings under Config files.
- In the group Listing and joining, turn off Anyone can make an account. The editor says: "Off: whitelist only, so an admin must add each player first."
- Click Save only or Save & start.

Add players
A player who is online: open Actions for their name on the Active players card, choose Add to whitelist and click Add. The server confirms it. The player must be on the server.
A player who has not joined yet: in the Console type:
`` adduser "username" "password" ``
The game's help says: "Use this command to add a new user to a whitelisted server. Use: /adduser "username" "password" -- password is optional". Tell the player the username and password, and they join with them.
Remove someone
- On the Active players card, click Whitelist.
- Type the name exactly as it is on the whitelist and click Remove. The person does not need to be online. While the server is closed, a removed player can no longer join.
Good to know
- The setting Remove dead players from the whitelist in the same group deletes a player's account when their character dies. On a whitelist-only server that stops them from making a new one. Leave it off unless you want that.
- The whitelist and the accounts are kept in the player database
.cache/db/<Server Name>.db. Wiping the world database also removes them: How to delete a Project Zomboid world or start fresh. - A password adds another lock: How to set a join password on your Project Zomboid server. More choices: How to make your Project Zomboid server public or private.





