How to Set Up a Whitelist on Your SCP: Secret Laboratory Server ​
With a whitelist, only players you have explicitly listed can join — ideal for private community servers or events. The whitelist consists of two parts: the enable_whitelist option in the config_gameplay.txt file and the player list in the UserIDWhitelist.txt file. You can find the basics of editing the configuration files in the Edit configuration files guide.
Warning
The path to the configuration files contains the game port of your server: /.config/SCP Secret Laboratory/config/<Port>/. Replace <Port> with the actual game port of your server. You can find the game port in the dashboard under Overview.
Set up the whitelist ​
Find out the game port
Open the dashboard of your server and note the game port shown under Overview.Stop the server
Stop your server via the dashboard.Connect via SFTP
Connect to your server via SFTP.Enable the whitelist
Open the following file — replace<Port>with your game port:/.config/SCP Secret Laboratory/config/<Port>/config_gameplay.txtFind the
enable_whitelistentry and change its value fromfalse(default) totrue:enable_whitelist: trueAdd players to the whitelist
In the same port folder, open theUserIDWhitelist.txtfile:/.config/SCP Secret Laboratory/config/<Port>/UserIDWhitelist.txtAdd each allowed ID on its own line. Steam players are added in the format
SteamID64@steam, Discord users in the formatDiscordID@discord. Lines starting with#are comments — handy for noting the names that belong to the IDs:# Max 76561198801452050@steam # Moritz 123456789012345678@discordYou can find your SteamID64 using the linked guide. It is the same ID format you also use when assigning ranks.
Start the server
Save both files and start your server via the dashboard.
Note
Changes to the whitelist only take effect after a server restart — there is no hot-reload.
Tip
Add your own ID to UserIDWhitelist.txt before enabling the whitelist — otherwise you will lock yourself out of your own server.