How to Enable and Configure a Whitelist on Your Minecraft Java Server

Learn how to turn on the whitelist for your Minecraft Java server and manage which players are allowed to join, all from the RiverHosting panel.
A whitelist lets you control exactly who can join your Minecraft Java server. When the whitelist is turned on, only players you have added to the list will be able to connect. Everyone else will be turned away automatically. This is useful for private servers, friend groups, or any community where you want to keep strangers out.
Before you start
- Make sure you have an active Minecraft Java server with RiverHosting.
- You will need to know the Minecraft usernames of the players you want to allow.
- Log in to the RiverHosting game panel at panel.riverhosting.com before following these steps.
Minecraft Java Edition uses exact usernames. Double-check the spelling and capitalisation of each player's name before adding them.
1. How to turn on the whitelist
There are two ways to enable the whitelist on your server. The easiest method is through the Properties page in the panel.
- Log in to the panel at panel.riverhosting.com and select your Minecraft Java server.
- In the GAME section of the left-hand menu, click Minecraft: Java, then the Properties tab at the top of the page.

- In the Security & Advanced card, find Whitelist (
white-list) and set it totrue.
- Click Save Changes.

- Accept the restart the page offers, or go to the Console page and click Restart to apply the change.

The other way is to type whitelist on in the console while the server is running. This turns the whitelist on straight away, without a restart.
You can also open Files, find the file named server.properties, and set white-list=true. Save the file, then restart your server.
2. How to add players to the whitelist
Once the whitelist is turned on, you need to add the players you want to allow. The easiest way is the Players page at the top of the left-hand menu: find the player and click Whitelist. The Whitelisted filter shows everyone on the list. You can also use a console command:
- Go to your server in the panel and click Console.
- In the command input box at the bottom, type the following command and press Enter:
whitelist add PlayerNameReplace PlayerName with the exact Minecraft username of the player you want to add.
- Repeat this for each player you want to allow on your server.
- To confirm the player was added, type
whitelist listin the console and press Enter. The console will show all whitelisted players.
If a player is already connected when you enable the whitelist, they will not be kicked automatically. The whitelist only applies to new connection attempts. Restart the server if you want to enforce it immediately for everyone.
3. How to remove a player from the whitelist
If you need to remove someone from the whitelist, open the Players page and click Unwhitelist on that player, or use the console.
- Open the Console in the panel.
- Type the following command and press Enter:
whitelist remove PlayerNameReplace PlayerName with the username of the player you want to remove.
- The player will no longer be able to join your server the next time they try to connect.
4. How to edit the whitelist file directly
If you prefer, you can manage the whitelist by editing the whitelist.json file. This can be useful if you need to add or remove several players at once.
- In the panel, click Files.
- Locate the file called
whitelist.jsonin the root of your server folder. - Click the file to open it in the editor.
- You will see entries in this format:
[
{
"uuid": "player-uuid-here",
"name": "PlayerName"
}
]Each player has a name and a UUID (a unique ID that Minecraft uses internally). You can add players using console commands as described above and then view this file to see how entries look. Editing the file manually without a valid UUID can cause issues, so using console commands is recommended for most people.
If you remove a comma, bracket, or quotation mark by mistake, the file may break and prevent your server from reading the whitelist correctly. Always double-check your edits before saving.
- When you are done, click Save.
- Return to the console and run
whitelist reloadso the server picks up your changes without needing a full restart.
Troubleshooting
- Players are still being allowed in after enabling the whitelist. Make sure you restarted the server after turning whitelist on. Also confirm that
white-list=trueis saved inserver.properties. - A player says they are getting a "Not whitelisted" error but you added them. Check the spelling of their username. Minecraft Java Edition usernames are case-sensitive. Try removing and re-adding them using the exact username they use to log in.
- The whitelist.json file looks empty or missing. Run
whitelist add PlayerNamefrom the console at least once. This will create and populate the file automatically. - Changes to whitelist.json are not taking effect. Run
whitelist reloadin the console after editing the file, or restart the server. - I cannot find the whitelist setting. It is not on the Startup page. Open Properties and look in the Security & Advanced card, or edit
server.propertiesdirectly using Files and setwhite-list=true, then restart.
Need help?
If you run into an issue that is not covered here, the RiverHosting support team is happy to help. You can reach us through the support page and we will get back to you as quickly as possible.
Visit riverhosting.com/support to open a ticket or find other ways to get in touch with us.
Similar Articles
How to Whitelist, Promote and Ban Players on Your Astroneer Server
Learn how to use the Players tab in the RiverHosting panel to whitelist, promote and ban players on your Astroneer server so you decide exactly who can join.
How to Manage Admins and Bans on Your Icarus Server
Learn how to use the Whitelist / Bans page in the RiverHosting panel to add trusted admins and ban troublemakers on your Icarus server, so you stay in control of every session.
How to Change the Allowlist and Permissions on Your Minecraft Bedrock Server
Learn how to manage your Minecraft Bedrock allowlist and player permissions from the RiverHosting panel so you stay in full control of who can join and what they can do.