A whitelist is the simplest way to keep your Minecraft server private — only players you approve can connect. Whether you're running a friends-only SMP or a small community server, this guide walks through enabling and managing the whitelist on a FreeGameHost server in under two minutes.
The whitelist is controlled by a single setting in server.properties. It's off by default — here's how to turn it on.
Before enabling the whitelist, add your own username so you don't lock yourself out. In the Console tab of your FreeGameHost panel, run:
In your panel, go to File Manager and click on server.properties to open the editor.
Find the line that reads:
Change it to:
Click Save.
~20 secondsClick Restart in your panel. Once the server is back online (look for Done in the console), the whitelist is active. Anyone not on the list will see "You are not whitelisted on this server."
white-list=true without adding your own username first, you'll be locked out of your own server. Add yourself first via the console, then enable the setting.
Players can be added at any time — they don't need to be online, and you don't need to restart the server after adding them.
If you're an operator, you can add players without going to the panel:
To remove someone's access, use whitelist remove. They'll be disconnected the next time they try to join (or immediately if enforce-whitelist is enabled — see below).
To check who's currently on your whitelist:
| Command (console) | What it does |
|---|---|
whitelist on |
Enables the whitelist without a server restart |
whitelist off |
Disables the whitelist instantly — everyone can join |
whitelist add Username |
Adds a player to the whitelist |
whitelist remove Username |
Removes a player from the whitelist |
whitelist list |
Lists all whitelisted players |
whitelist reload |
Reloads whitelist.json from disk — useful if you edited the file manually |
/ — e.g. /whitelist add Username.
You don't always need to restart to change whitelist status. The whitelist on and whitelist off commands update the setting live:
This is handy when you want to temporarily open your server for new players to join, then lock it down again once they're in.
Bedrock servers use the same whitelist system, but with a couple of differences:
whitelist.json on most Bedrock server types (some, like Nukkit, call it white-list.txt)There's an additional setting in server.properties called enforce-whitelist. Here's the difference:
whitelist on or reload the whitelist, anyone currently connected who is not on the list is immediately kicked.For most friend-group servers, the default (false) is fine. Set it to true if you're managing a community server and want instant enforcement when you update the whitelist.
Yes. The whitelist is stored in whitelist.json in your server's root folder. You can edit it via the File Manager in your panel. After saving changes, run whitelist reload in the console to apply them without restarting. The file format looks like this:
Yes, but with a caveat. In offline mode (online-mode=false), Minecraft doesn't verify player identities against Mojang's servers. This means anyone can join using any username, including whitelisted ones. Whitelist by username still works, but it's less secure. For a genuinely private server, keep online-mode=true.
For Java Edition, the whitelist is stored by UUID — the unique ID behind the username — so a name change doesn't break it. They can still connect after changing their username. For Bedrock (Xbox gamertag), a gamertag change means you'll need to remove the old name and add the new one.
Yes. If you need features like temporary whitelisting, per-world whitelists, or a web-based invite system, plugins like AdvancedWhitelist or EasyWhitelist extend the built-in system significantly. Both are available on SpigotMC and work on Paper servers.
Run whitelist off in the console to disable it instantly. Or open server.properties, set white-list=false, and restart. Either approach opens the server to all players.
Need a private server for your friend group? Get started free — 4 GB RAM, 24/7 uptime, no credit card.
Create Free Server →Related guides: How to OP yourself on a Minecraft server • How to make a Minecraft server for friends • Best Minecraft server plugins 2026 • Free Minecraft Java Hosting