> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.nexushosts.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to Set Up a Whitelist on Your Minecraft Server

**A whitelist lets you control who can join your server. Only players added to the whitelist will be allowed to connect. It’s one of the simplest ways to make your server private, or invite-only.

### Step 1: Log in

Log in to your [Nexus Hosting Account](https://gamecp.nexuscorehosting.com/auth/login).

![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXc60XW5mTsxYUIYhM8k-epbd0be2AiQt7bYkb91J1nj9HXy9dfWd_C6oStzqiLFFED-71VpVtsqDqQ1tnTW__7xmx_a2L22iTnBRdqP3zlqhzzMsNEWErAPxw89qWicwWRPsnxW?key=WMW_ATw5Yfryt4vIDdB9mfyZ)
### Step 2: Select the Server

Once on the dashboard, find and select your intended Minecraft server. 

![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXcuyyilJFsXjnEq55pgu3mGfRuRXp_gjHWclc_UYQKFxuMMOTJBXsBuBvyOzLIGPXpkZLV_nEiiYv5Str98gTpKnto0ZH9SvpWWS2nr_-wlP_TNw9VgemKroeuQpH3D8FiR5SMx3w?key=WMW_ATw5Yfryt4vIDdB9mfyZ)
### Step 3: Stop the Server

Before making any changes, stop the server to avoid potential data issues. On the **Terminal** page, click the red **Stop** button.

![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXc9A0qf2KotIhupve_G6MwgHTIkuLUj6MJyE6DdKNXZ5oBzibbzjV3RYiSFP3TO30i3dxvObuF2je-bZ3iZUx9dhATYCaxGMHCY58t2gC4H9wUFs72PWIzAd-xwjg-L8zvnbuBCyA?key=WMW_ATw5Yfryt4vIDdB9mfyZ)
### Step 4: Open server.properties

Once the server is stopped, click **Files** in the sidebar. Locate and select the **server.properties** file from the list.

![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXd9yv4DW8fYenTfYVVsDtq1nwa0_awyAfVDBzSU4N8fxi3KC0ZSgp--M8FeDMK1Ewmq7pnSPsllp4YJZp5O1aaeJsk4I8XS1QB7ZDnTPi_u6rQ9-kIRxHn9FbsPWTDbjPTT7EIKMA?key=WMW_ATw5Yfryt4vIDdB9mfyZ) 
### Step 5: Enable the Whitelist

Scroll down to the bottom and look for the line `white-list=false`. Change it to:

`white-list=true`

![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXfQJ5ITKZPw_OFq0-GWjp665Up3k8OFifITsT4_gUS_AP6L_Y6G1kylZ2SKRa7BKv6ULzbUh4PGzlhngW90eANkUGCSBcgKP-SHi4DkxyqLsJtVvmcFklGIB4JdiSpvuVsZrovXkA?key=WMW_ATw5Yfryt4vIDdB9mfyZ)
You also need to change `enforce-whitelist=false` to `enforce-whitelist=true`.  

Then click **Save Content**. 
 ![](https://storage.crisp.chat/users/helpdesk/website/-/1/e/6/c/1e6c49e0d02dca00/enforce_opzxj1.png)
### Step 6: Add Players to the Whitelist

Head back to the **Terminal **page and you can now add your friends to the whitelist by entering `whitelist add <username>` in the console. Then press **Enter.** 

![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXcPfJY-s6we07vkPdaWor7zayZy1i3BjEYJ2nFea53LQ5dkSth6h1zvp3b8dUbAUsHNgzCslSUDPIAkcVBQfsUrdOBpsxd3krLMBAD59YvtRcVGbvtSgQC1nae-FUFjhYfrs8JOdQ?key=WMW_ATw5Yfryt4vIDdB9mfyZ)

The console should output a confirmation message that looks something like this:

![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXfcpae8aDO7zCY_oouR_GMwkRRcMXtfNEtd1CpNHOMKMO_EcY1sDrmPsQVhSn1cnURpZO-MmPzRwIh3vsLBIOov1yqKtxyXo0cTQ3q7OvBEbwY1XNz4XNKelSuwobhF-OIkIIjUng?key=WMW_ATw5Yfryt4vIDdB9mfyZ)
### Step 7: Restart the Server

You can now restart your server, clicking the green **Start button** on the **Terminal **page. Only whitelisted players will be able to join.

![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXfeXK_HXuvZRjAfUg8mh5IP8p5g9pguPUi7BmZggFWtm2yLt5Cy7OCaa0jDuuaC4vx1cc2RxmU5-_TNmrmXbg4aVTtRTwUjEhZ4GdUVGFKyoNAPQ9iXbTLlFvQNGIMyzjxxyqX6?key=WMW_ATw5Yfryt4vIDdB9mfyZ)
### Step 8: (Optional) View or Edit the Whitelist

To manually view or edit the whitelist, go back to **Files**, scroll to the bottom, and open **whitelist.json**.

![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXfigljpNdH4HQs825Bf4cJFwJihPJ8zsHd0GIhCO3VxXK876AfrmKb9Wi7zyBh3yVmDBHyCrsve4cbFGquWEFHNqLMtyGyL-8tnroIB3Ez218NwygA0-gwV3Q4oh_VknQte6lvX?key=WMW_ATw5Yfryt4vIDdB9mfyZ)

### Step 9: (Optional) Remove Players from the Whitelist

Each entry in whitelist.json contains a **player’s name** and **UUID**. To remove a player, delete the full JSON object for that player (from { to }), including any commas if needed. 

Click **Save Content** when done.

![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXeY82A_MQdcpwpP7xeM8dc1aKKn1cYQP0m2fv2OmS1s9zVvi6TsLAUido0YwlQxJF-4XtkscLKRDgBOfy7IwTFPXh-5CivzA1Ttal89kOfzXhYGBVmsZniKnMWzGy5cMZg9YD7meQ?key=WMW_ATw5Yfryt4vIDdB9mfyZ)

**