# Add a player to the whitelist

Whitelisting is a feature that allows you to limit the players who can access your server, increasing its security. When enabled, only whitelisted players can join your server.

{% hint style="info" %}
This guide only works on Java Edition. We have a [separate guide](https://lodestone-technologies.gitbook.io/knowledgebase/add-a-player-to-the-allowlist) for Bedrock Edition.
{% endhint %}

## Using the server console

Head over to the [Game Panel](https://game.lodestone.host) and select "Console" on the sidebar menu.

<figure><img src="https://2854797996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiwHf4GxqK0xQzfQ69yGH%2Fuploads%2Fg2WSBbItlmDxpBAUAZba%2Fimage.png?alt=media&#x26;token=4a5dc5c2-19ab-47a3-a169-10a0d2c1f840" alt=""><figcaption></figcaption></figure>

Make sure your server is online. You can now type "whitelist add \<username>" in the console. Make sure you replace "username" with the username of the player you wish to whitelist.

<figure><img src="https://2854797996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiwHf4GxqK0xQzfQ69yGH%2Fuploads%2F8OSu5X9hUNgRQs23y68M%2Fimage.png?alt=media&#x26;token=5c8f5424-1f6b-4b8b-90f2-ba8780a4d682" alt=""><figcaption></figcaption></figure>

You can use "whitelist remove \<username>" to unwhitelist the player. You can also use "whitelist list" to list all currently whitelisted players.

Use "whitelist on" or "whitelist off" to enable/disable the whitelist.

## Through in-game commands

Alternatively, you can whitelist players in-game. You'll [need to be an operator](https://lodestone-technologies.gitbook.io/knowledgebase/minecraft-java/make-a-player-an-operator) for this to work.

Use the command "/whitelist add \<username>" in the server chat. Make sure you replace "username" with the username of the player you wish to whitelist.

<figure><img src="https://2854797996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiwHf4GxqK0xQzfQ69yGH%2Fuploads%2FyLtTeaBGBm9OsLBbBGjp%2Fimage.png?alt=media&#x26;token=984bad52-8f21-49b8-ae89-d8697eba1177" alt=""><figcaption></figcaption></figure>

You can use "/whitelist remove \<username>" to unwhitelist the player. You can also use "whitelist list" to list all currently whitelisted players.

Use "/whitelist on" or "/whitelist off" to enable/disable the whitelist.
