Set Up a Whitelist
Configure a whitelist on your Project Zomboid server so only approved players can join.
A whitelist restricts your server to pre-approved players only. This is ideal for private communities, roleplay servers, or events.
Enable the Whitelist
Set the server to closed
Open=falseWhen Open is set to false, only whitelisted players can join.
Configure whitelist behavior
AutoCreateUserInWhiteList=false
DropOffWhiteListAfterDeath=false| Setting | Default | Description |
|---|---|---|
Open | true | false = whitelist mode, only approved players can join |
AutoCreateUserInWhiteList | false | Automatically add new accounts to the whitelist |
DropOffWhiteListAfterDeath | false | Remove players from whitelist when their character dies |
Add Players to the Whitelist
Via Admin Command
While logged in as admin, use:
/adduser "PlayerName" "password"This creates an account and adds the player to the whitelist.
Via Server Files
Navigate to Zomboid/Server/[servername]_whitelist.txt and add player names, one per line.
Remove Players from the Whitelist
Via Admin Command
/removeuserfromwhitelist "PlayerName"Via Server Files
Edit [servername]_whitelist.txt and remove the player's name.
Whitelist with Death Consequences
For hardcore servers, enable DropOffWhiteListAfterDeath:
Open=false
DropOffWhiteListAfterDeath=trueWhen a player's character dies, they're removed from the whitelist and can't rejoin until an admin re-adds them.
Related Guides
See also: Set a Password | Become a Server Admin | Ban and Unban Players
If you need help, join our Discord.
How is this guide?
