Restrict access to your 7 Days to Die server
You can protect your server from unauthorised players in 2 ways.
One, you can set a password for the server.
Only players who know the password can join the server.
The other method is to create a whitelist.
You can of course combine both methods.
Set password
- Basic Mode: In Basic Mode you will find the setting for the password under Server Settings -> Server Password.
Enter your password and click on Save.
Restart your server so that the password becomes active. - Advanced Mode: In Advanced Mode, the password is entered in serverconfig.xml.
Find the following line:<property name="ServerPassword" value=""></property>
Enter the password between the two empty""
, for example:<property name="ServerPassword" value="Test123"></property>
Click Save and restart the server.
Whitelist
To be able to add players to the whitelist, your server must be in Advanced Mode.
Important: Your server must remain in Advanced Mode otherwise any changes you make will be reverted!
Tip: Admins are automatically part of the whitelist and do not have to be added separately.
serveradmin.xml
Stop your server. The status must be Server not running
!
Click on serveradmin.xml on the left and find the following section:
<whitelist>
<!-- ONLY PUT ITEMS IN WHITELIST IF YOU WANT WHITELIST ONLY ENABLED!!! -->
<!-- If there are any items in the whitelist, the whitelist only mode is enabled -->
<!-- Nobody can join that ISN'T in the whitelist or admins once whitelist only mode is enabled -->
<!-- Name is optional for display purposes only -->
<!-- <user platform="" userid="" name="" ></user> -->
<!-- <group steamID="" name="" ></group> -->
</whitelist>
The entry for a player looks like this:<user platform="steam" userid="SteamID64" name="Test" ></user>
Replace SteamID64
with the SteamID64 of the player.
How to get this is explained here: get SteamID64.
With 2 players it would look like this:
<whitelist>
<user platform="steam" userid="76561197979226165" name="Test" ></user>
<user platform="steam" userid="76561197979226167" name="Test" ></user>
</whitelist>
When you have added all players, click Save and start your server.
Admincommand
You can add players ingame with an admin command.
To do this, you must be an admin on the server.
How you can become an admin is described here: How to become an Admin 7 Days to Die.
Open the console with [F1]. The command to add a player looks like this:whitelist add name/SteamID64
.
Replace name
with the name or SteamID64
with the SteamID64 of the player you want to add to the whitelist.
Examples:
whitelist add Urizen
whitelist add 76561197979226165
Important: name
only works if the player is currently playing on the server.
If the player is not on the server, please use the SteamID64
.
How to find it is described here: get SteamID64.