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

Open your server config

On XGamingServer, go to Files and open:

Zomboid/Server/[servername].ini

Set the server to closed

[servername].ini
Open=false

When Open is set to false, only whitelisted players can join.

Configure whitelist behavior

[servername].ini
AutoCreateUserInWhiteList=false
DropOffWhiteListAfterDeath=false
SettingDefaultDescription
Opentruefalse = whitelist mode, only approved players can join
AutoCreateUserInWhiteListfalseAutomatically add new accounts to the whitelist
DropOffWhiteListAfterDeathfalseRemove 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=true

When a player's character dies, they're removed from the whitelist and can't rejoin until an admin re-adds them.

See also: Set a Password | Become a Server Admin | Ban and Unban Players

If you need help, join our Discord.

How is this guide?

40% Off — Limited TimeGet your Project Zomboid server todayInstant setup, DDoS protection, and 24/7 support included.
Get a Server

On this page