# How to Ban and Unban Players on a Project Zomboid Server (and What to Do If You're Banned)

> How to kick, ban and unban a player on your Project Zomboid server (Build 42): by username, by Steam ID or by IP, and what to do if you've been banned.

Original page: https://napnodes.com/en/guides/project-zomboid-ban-unban-player · Updated: 2026-11-14

Someone joins your server to burn down bases or kill everyone who spawns, and you want them gone for good. Or the other way round: you banned a friend in the heat of the moment and now you don't know how to undo it. Project Zomboid has three ways to shut the door (by username, by Steam account and by IP), and each one is undone with its own command. Here they all are, from the game's menu too, plus what to do if you're the one who got banned.

## Kick, ban or IP ban: what each one does

Kicking (`kickuser`) removes them from the server now, but they can come back whenever they like. It's for a character stuck inside or for a serious warning.

Banning (`banuser`) shuts the door on that username. The catch: if the server lets people create accounts when they join, they can come back under another name. That's why there's the Steam ID ban (`banid`), which shuts the door on their whole Steam account, whatever name they use.

Banning the IP (`banuser` with `-ip`) also blocks their connection. Use it with care: it bans anyone who joins from that same connection, like a sibling in the same house, and many mobile carriers share one IP between lots of customers (CG-NAT).

## Banning with commands

Type them in the game chat with “/” in front, or in the server console without it, from an admin account. Names go in quotes and spelled exactly the same; `players` shows who's connected and what they're called.

1. **Kick**: `/kickuser "name" -r "reason"`. The reason is optional.
2. **Ban by username**: `/banuser "name" -r "reason"`. With a reason, when they try to come back they see “You are banned from this server. Reason:” followed by what you wrote, so they know why.
3. **Ban their IP too**: `/banuser "name" -ip -r "reason"`.
4. **Ban their Steam account**: `/banid 76561198000000000`, with their SteamID64 (the 17 digits). If all you have is the link to their Steam profile, [the SteamID64 finder](https://napnodes.com/en/tools/steamid64-finder) gets it.
5. **Drop a connection that has no name**: `/connections` lists every connection with its number, and `/disconnect 2` drops number 2. Handy when someone is stuck halfway through joining.

## Banning from the game, without typing

From your admin account, open the game's “Admin Panel” and click “Mini Scoreboard”: a list of players that updates itself. Right-click a player and you get “Kick”, “Ban” and “Ban IP”, along with others such as “Mute VOIP”. The same list shows their “Steam ID” so you can use it later with `banid`.

The admin panel has changed several times during Build 42. If your version doesn't show those options, the commands above do the same, and `/help` lists the ones your server has.

## Unbanning someone

Bans are stored with the accounts, in the database in the db folder, not in the save. That's why [resetting the world](https://napnodes.com/en/guides/reset-project-zomboid-server-world) doesn't remove them: if you want a clean slate on that too, you have to unban by hand.

1. **If you banned them by username**: `/unbanuser "name"`. The game's help has no separate command to lift just an IP: if you banned them with `-ip` and they still can't get in after this, see the “See Database” step.
2. **If you banned them by Steam**: `/unbanid 76561198000000000`, with the same SteamID64 you used to ban them.
3. **If you can't remember their name**: In the game's “Admin Panel”, “See Database” opens the server's tables (accounts and bans), with “Filters” to search and “Modify” and “Delete” on each row. Find their name or Steam ID there and unban them with the command, which is the safest way.
4. **Let them back in**: No restart needed: with the command they should be able to join straight away. If the server has a whitelist and you deleted their account, create it again with `/adduser "name" "password"`.

## If you've been banned

The message tells you which kind of ban it is. “You are banned from this server” (with “Reason:” if the admin wrote one) is a username or IP ban. “Your Steam ID is banned” is on your Steam account: changing your name won't help. If you were only kicked, it isn't a ban: you can join again.

A ban belongs to that server and nobody else: it doesn't affect your Steam account or other servers. Only an admin of that server can lift it, so message them on their Discord or wherever you know each other, with your username and, if it was a Steam ban, your SteamID64.

If you get thrown out right after joining and nobody banned you, it isn't a ban: it's usually the game's anti-cheat or your mods ([why Project Zomboid kicks you on joining](https://napnodes.com/en/guides/project-zomboid-anti-cheat-kick)).

## Before banning, other ways out

For someone causing trouble on voice, `/voiceban "name" -true` takes away their voice chat and `-false` gives it back. For a group of friends, what best prevents trouble is not letting strangers in at all: a password or a whitelist, [the locks on a private server](https://napnodes.com/en/guides/project-zomboid-private-server-whitelist). And if your server is public, [how to open it without chaos](https://napnodes.com/en/guides/project-zomboid-public-server-list).

## With NapNodes

Commands go in the panel's “Console”, without the slash, with the server on: you don't need to be in the game. The in-game admin account is under “Settings” → “In-game admin”, and if you can't remember how a command goes, [the admin command generator](https://napnodes.com/en/tools/project-zomboid-admin-command-generator) writes it for you.

“Settings” also has “Sound for everyone on a kick or ban”, so everyone notices when you throw someone out. Before touching accounts by hand, download the db folder from “Files”.

No server yet? The [free Project Zomboid server](https://napnodes.com/en/free/project-zomboid) has 6 GB, needs no card and comes with the console and every setting in the panel.

## Questions

### How do I ban a player in Project Zomboid?

With /banuser "name" -r "reason" in chat (or without the slash in the server console), as an admin. To stop them coming back under another name, also ban their Steam account with /banid and their SteamID64.

### How do I unban someone in Project Zomboid?

With /unbanuser "name" if you banned them by username or IP, and with /unbanid and their SteamID64 if it was a Steam ban. No server restart needed.

### What's the difference between kickuser and banuser?

kickuser removes them now and they can join again; banuser stops them coming back with that username, and with -ip from their connection too.

### Does resetting the world remove bans?

No. Bans are stored with the accounts, in the database in the db folder, not in the save. You have to unban with the command.

### I've been banned from a Project Zomboid server, what can I do?

Only an admin of that server can lift it: message them with your username and, if the message says your Steam ID is banned, your SteamID64. The ban doesn't affect other servers or your Steam account.

---

NapNodes gives you a free Project Zomboid server, no card and no end date: it isn't always on (it switches itself off after an hour with nobody on, and you start it again with one click). How it works: https://napnodes.com/en/free. Paid plans, always on and with no commitment: https://napnodes.com/en/pricing.
