By the end of this guide, only players you have whitelisted can join your SCP:SL server. Instead of that, or on top of it, you can limit access to certain countries. You will know how entries must look and which switches only matter for verified servers.
Prerequisites
- An SCP:SL server in your customer panel that has started at least once.
- Your server's game port under Players & access → Ports.
- The Steam64 ID or Discord ID of every player you want to allow.
The config folder
You set up the whitelist and geoblocking in files inside your port's config folder. According to the Northwood tech wiki, on Linux it is .config/SCP Secret Laboratory/config/<port>/.
Open Files & worlds → Files and go into .config, SCP Secret Laboratory, config and then the folder named after your game port. config_gameplay.txt lives there, and UserIDWhitelist.txt belongs there too.
Turn on the whitelist
- Open
config_gameplay.txt. - Find the line
enable_whitelist: falseand change it toenable_whitelist: true. - Save the file.
Add players
- Open
UserIDWhitelist.txtin the same folder. If the file is missing, create it there with exactly this name. - Get the player's Steam64 ID. The tech wiki points to steamid.io: paste the profile address and read the long number.
- Put the ID on a new line and add
@steam. For players who sign in through Discord, use the Discord ID with@discord. - Lines starting with
#are comments. Use them to label entries.
A list looks like this:
#Player 1
76561198071934271@steam
#Player 2
274613382353518592@discord
Save the file and restart the server.
Block or allow countries
Geoblocking is set in config_gameplay.txt in the #Geoblocking section:
| Key | Default |
Effect |
|---|---|---|
geoblocking_ |
none |
none turns geoblocking off. whitelist only admits the countries in geoblocking_. blacklist blocks the countries in geoblocking_. |
geoblocking_ |
true |
Whitelisted players can join despite geoblocking. |
geoblocking_ |
placeholders |
List of allowed countries. |
geoblocking_ |
placeholders |
List of blocked countries. |
Enter countries as ISO country codes such as DE, GB or US. Each code goes on its own line, preceded by a space, a hyphen and another space. Replace the placeholders AA, AB and AC from the template:
geoblocking_mode: whitelist
geoblocking_whitelist:
- DE
- GB
- US
Save and restart the server.
Switches for verified servers
The file also contains custom_whitelist and server_access_restriction. According to the comment in the file, they flag a server on the public list when a plugin provides its own whitelist or access restriction. If your server is not verified, leave both at false. For verified servers, Northwood's rules also apply to geoblocking.
The tech wiki recommends keeping security settings such as online_mode at their defaults.
Common problems
| Problem | Cause and fix |
|---|---|
| Everyone can still join | enable_whitelist is still false, or you edited the folder of a different port. Check both and restart. |
| A listed player is rejected | The suffix is missing or wrong. Steam IDs need @steam, Discord IDs need @discord. |
| The server starts with errors after saving | In the country lists, the space before or after the hyphen is usually missing. Compare with the example above. |
| Players from a blocked country still get in | They are on the whitelist and geoblocking_ignore_whitelisted is true. Set it to false if you do not want that. |
Next steps
How to set friendly fire, AFK kicks and rounds is covered in Gameplay in config_gameplay.txt. Before larger changes, create a backup under Backups & recovery. Slots and locations are on the SCP:SL order page.