We have a video tutorial on how to set up whitelist:
Valheim is a very cooperative PvE game, where working closely with fellow players is key to exploring the world around you. As a result, you may want to secure your server to only allow people you trust to join it.
Thankfully, Valheim comes with 2 built-in methods of preventing random people from joining your server. You can set a password to join your server, and you can set a server whitelist.
This article will cover how to set up a whitelist on your Valheim server, however in most cases just setting up a password will suffice - check out this guide on how to do this - How to Change Your Valheim Server Password
How to Manage your Server Whitelist
By default, the whitelist file on Valheim servers is blank, meaning that the whitelist is disabled. By adding anything to the whitelist file (even if it’s not a player ID or player name), it will enable the whitelist on the server. Once the whitelist is enabled, only players on the whitelist file will be able to access the server.
- Log in to your control panel.
- On the left-hand side, click Files > Config Files.
- Click on the Permitted List config file.
- Add their SteamID64 to the file, being sure to have one ID per line.
- If you do not know the player's SteamID or how to find it, check out our guide here.
- Press Save at the bottom of the page
- As soon as you save the changes, they should take effect almost immediately. Anyone currently on the server who is not whitelisted will be kicked.