Skip to content
Back to Homepage

How To Set Up A Whitelist / Make Your Server Private

How to Set Up a Whitelist on Your Minecraft Server

Section titled “How to Set Up a Whitelist on Your Minecraft Server”

A whitelist is your primary means of preventing unauthorized entry into your server. Any official Minecraft usernames you put on the list will be allowed to enter your server, while anyone not on it will be denied access. This guide shows you how to turn the whitelist on and how to manage the players on it.

  • Access to the AleForge Panel
  • The exact Minecraft username of every player you want to allow
  1. Log in to your AleForge Panel and select your server.

  2. Click Server Properties.

  3. Look for ENFORCE-WHITELIST and enable it.

    The ENFORCE-WHITELIST setting in Server Properties

  4. Be sure to click Save near the top of the page after you change this setting.

Note: In Minecraft’s server.properties, white-list turns the whitelist on, and enforce-whitelist removes players who aren’t on the list when the whitelist changes. If your whitelist isn’t blocking players, make sure the whitelist is turned on using the console commands below.

Turning the Whitelist On or Off From the Console

Section titled “Turning the Whitelist On or Off From the Console”

With some versions of Minecraft, you can also use these commands in the console to control whitelisting:

Command Description
whitelist on Turns the whitelist on.
whitelist off Turns the whitelist off.

You can add a user from the console or from inside the game.

  1. Click Console in the navigation menu of the game panel.

  2. Type the following command and press Enter:

    whitelist add username

To add a user in-game, use the same format with a / at the start. You need to be an operator to do this.

/whitelist add username

Replace username with the player’s exact Minecraft username.

Command Description
whitelist add username Adds a player to the whitelist.
whitelist remove username Removes a player from the whitelist.
whitelist list Shows everyone currently on the whitelist.
whitelist reload Reloads the whitelist from file, for example after editing it by hand.
Problem What to try
Players can still join without being on the list Make sure the whitelist is turned on with whitelist on, and that your settings are saved. Restart the server if needed.
A player on the list can’t join Check that their username was entered exactly as it appears in Minecraft. Remove the entry and add it again.
Command doesn’t work in-game Make sure you are an operator and that the command starts with /.
Setting didn’t apply Make sure you clicked Save in Server Properties, then restart the server.