Why do servers behind a proxy need securing?
A backend server behind a proxy runs with online-mode=false, so it doesn't check whether a player owns a real Minecraft account – it trusts whatever the proxy sends. If it also accepts connections that skip the proxy, anyone with its address can join under any username: your admin, an operator, the owner of a claim.
Here's how a proxy network works:
- The player connects to the Velocity proxy. The proxy (with
online-mode = true) verifies their account with Microsoft. - The proxy sends the player on to a backend server (lobby, survival, minigames) and passes along their username, UUID, real IP address and skin.
- The backend doesn't contact Microsoft – it has to run
online-mode=false, otherwise it rejects every player coming through the proxy.
The weak spot is step 3. The backend has a normal address and port that can be reached without the proxy. So it needs a way to tell "this really came from my proxy" apart from "someone pretending to be the proxy". That's what player info forwarding with a secret is for – on Velocity, ideally in MODERN mode.
Large networks also firewall their backends so they only accept connections from the proxy's IP. On hosting where every server has its own public address and there's no per-server firewall (Spot.gg included), modern forwarding is the main line of defense. Velocity's own docs note that a firewall usually isn't an option on shared hosting.
Velocity player info forwarding modes
The mode is set by player-info-forwarding-mode in velocity.toml: NONE, LEGACY, BUNGEEGUARD or MODERN. The default is NONE, and only MODERN is truly secure (BUNGEEGUARD to a lesser degree).
| Mode | What the backend receives | Blocks connections that bypass the proxy | Backend versions |
|---|---|---|---|
NONE (default) |
Nothing – every player has the proxy's IP and an offline UUID | No | Any |
LEGACY |
IP and UUID in BungeeCord format | No – anyone can pretend to be the proxy | Any, needs bungeecord: true in spigot.yml |
BUNGEEGUARD |
Same as LEGACY plus a token |
Yes, as long as the token stays secret and the backend runs the BungeeGuard plugin | Mainly 1.12.2 and older |
MODERN |
IP, UUID and skin, signed with the secret | Yes – the backend rejects anything without a valid signature | Minecraft 1.13 and newer |
Velocity's documentation calls LEGACY "fundamentally insecure": the BungeeCord format has no protection at all, so a modified client can join such a backend as any player. NONE and LEGACY are only fine for servers whose address no outsider knows – in practice, nothing public.
How does modern forwarding work?
The proxy and the backend share the same secret from the forwarding.secret file. The proxy signs player data with it and the backend checks the signature – no valid signature, no entry.
- Velocity creates
forwarding.secreton first start (its path is set byforwarding-secret-fileinvelocity.toml). - You put the same secret on every backend – on Paper, in
config/paper-global.yml. - If someone connects to the backend directly with a normal client, it gets no signed data and disconnects them with "This server requires you to connect with Velocity."
- If someone tries to forge the data without knowing the secret, the signature doesn't match and the backend turns them away too.
A useful side effect: the backend sees each player's real IP (IP bans work), real UUID (whitelist, permissions, inventories) and skin.
The protection is only as good as the secret. Anyone who has it can build their own "proxy" and join your backends as anyone. Don't paste it in Discord, support tickets or screenshots.
Modern forwarding on Spot.gg – one click
In the proxy's panel, open "Configuration" → "Servers", add a server with "Add server", click "Save changes", then click "Connect to the proxy" next to any server marked "Needs connecting". The panel configures the backend's files and switches the proxy to MODERN for you.
Before you start:
- You need a separate server running the Velocity engine (the proxy) and at least one Minecraft Java server on the same Spot.gg account (the backend). The proxy only connects servers hosted on Spot.gg – an address outside Spot.gg in
velocity.tomlstops it from starting. Building the whole network is covered in how to set up a Velocity network. - Start the proxy once – that's when
velocity.tomlandforwarding.secretare created. - Start each backend once so it creates its configuration files.
Step by step:
- In the proxy's panel, go to "Configuration" → "Servers" tab.
- Under "Servers behind the proxy", click "Add server" and pick the backend. The panel writes its address into
velocity.tomland keeps it up to date. - Under "Connection order", choose which server players land on after joining, then click "Save changes".
- The panel checks each backend's files and shows its state: "Linked", "Needs connecting" or "Incompatible engine".
- Next to a server marked "Needs connecting", click "Connect to the proxy". The panel restarts that server for you.
- If the proxy wasn't on MODERN before, restart the proxy too.
What "Connect to the proxy" changes:
| Backend engine | File changes |
|---|---|
| Paper, Purpur, Folia | server.properties: online-mode=false; config/paper-global.yml: proxies.velocity.enabled: true, online-mode matching the proxy, secret from forwarding.secret; spigot.yml: settings.bungeecord: false |
| Paper 1.18.2 and older | Same, but in paper.yml under settings.velocity-support |
| Fabric (with the FabricProxy-Lite mod) | server.properties: online-mode=false; config/FabricProxy-Lite.toml: secret and hackOnlineMode |
| Proxy | velocity.toml: player-info-forwarding-mode = "MODERN" (if it was different) |
Only the server owner sees the secret and the "Connect to the proxy" button. Sub-users with access to the proxy don't, because the secret unlocks every backend on the account.
The "Anyone can join this server directly" warning
If a backend has online-mode=false but isn't receiving MODERN player data from the proxy, the panel shows "Anyone can join this server directly." next to it. That's exactly the problem described at the top of this guide – click "Connect to the proxy". The "Needs connecting" state also comes back when the backend's secret no longer matches the proxy (for example after you change forwarding.secret).
Setting up modern forwarding by hand: Paper, Fabric, Forge
Copy the secret in the proxy's panel under "Configuration" → "Servers", in the "Player info forwarding" section, with "Copy secret". Edit the backend's files in that server's "Files" tab, and restart the backend after each change.
Proxy first: in the same section, set "Mode" to MODERN, click "Save changes" and restart the proxy. In velocity.toml that gives you:
player-info-forwarding-mode = "MODERN"
forwarding-secret-file = "forwarding.secret"
Paper, Purpur, Folia (1.19 and newer)
server.properties:online-mode=falsespigot.yml:settings.bungeecord: false(withtrue, Paper expects the BungeeCord format instead of Velocity's)config/paper-global.yml:
proxies:
velocity:
enabled: true
online-mode: true
secret: 'paste-the-secret-from-forwarding.secret'
Set online-mode in this section to match online-mode in velocity.toml – usually true. On Paper 1.18.2 and older, the same three keys live in paper.yml under settings.velocity-support. Paper supports modern forwarding natively from 1.14 (and on 1.13.1–1.13.2 from build 377).
Fabric
Fabric can't talk to Velocity on its own – you need the FabricProxy-Lite mod. Upload its .jar (for your Minecraft version) to the mods folder in the "Files" tab, start the server once, then set in config/FabricProxy-Lite.toml:
hackOnlineMode = true
secret = "paste-the-secret"
Plus online-mode=false in server.properties. Once the mod is in mods, it's easier to click "Connect to the proxy" – the panel fills this in for you.
Forge and NeoForge
These need the Proxy Compatible Forge mod. The panel doesn't configure it automatically: upload the mod to mods, start the server once, then put the secret in the secret field of the forwarding section in config/proxy-compatible-forge.toml and set online-mode=false in server.properties. If your network runs Forge servers, also turn on announce-forge on the proxy in the "velocity.toml" tab.
Vanilla
Plain Vanilla can't accept MODERN player data from Velocity. A Vanilla server behind the proxy is either unreachable or exposed. Switch its engine to Paper (your world stays): "Information" → "Profile" → "Modify" → "Change engine". The differences between engines are explained in Minecraft server software.
online-mode: what goes on the proxy and what on the backend
On the proxy online-mode = true; on every backend online-mode=false in server.properties, and proxies.velocity.online-mode in paper-global.yml matching the proxy.
| Where | Option | Value | Why |
|---|---|---|---|
Proxy, velocity.toml |
online-mode |
true |
The proxy verifies accounts with Microsoft – the only place login happens |
Proxy, velocity.toml |
player-info-forwarding-mode |
"MODERN" |
Signed player data |
Backend, server.properties |
online-mode |
false |
With true the backend rejects players from the proxy |
Backend, paper-global.yml |
proxies.velocity.online-mode |
same as proxy | Tells the backend players are already verified |
On Spot.gg you change the proxy's online-mode under "Configuration" → "Most popular" or in the "velocity.toml" tab. For security reasons, only an account with permission to run console commands can change it.
A cracked network (proxy with online-mode = false) is possible, but then the proxy doesn't verify accounts and you need a login plugin on the proxy, such as LibreLogin. Modern forwarding is still essential – without it, someone can skip the proxy's login by joining a backend directly. See non-premium Minecraft server for details.
BungeeGuard – when do you need it?
BungeeGuard adds a secret token to the BungeeCord forwarding format. It's meant for BungeeCord networks and for Velocity with backends on Minecraft 1.12.2 or older, where MODERN doesn't work. For 1.13+ servers behind Velocity, always pick MODERN.
Spot.gg doesn't offer BungeeCord or Waterfall as an engine – the proxy in the panel is Velocity. So on Spot.gg, BungeeGuard only makes sense in one case: Velocity with a Paper backend on an old version (such as 1.8.8 or 1.12.2).
Behind Velocity:
- On the proxy, under "Configuration" → "Servers" → "Player info forwarding", set "Mode" to
BUNGEEGUARD, click "Save changes" and restart the proxy. Velocity has BungeeGuard built in – nothing to install on the proxy, and the token is the contents offorwarding.secret. - On the backend, set
settings.bungeecord: trueinspigot.ymlandonline-mode=falseinserver.properties. - Upload the BungeeGuard plugin (
.jarfrom its official project page) to the backend'spluginsfolder in the "Files" tab and start the server once. - In
plugins/BungeeGuard/config.yml, add the proxy's secret to theallowed-tokenslist and remove the example tokens. - Run
bungeeguard reloadin the console or restart the server.
Paper 1.9.4 and newer has what BungeeGuard needs built in; on Spigot you also need ProtocolLib. Keep in mind the proxy has one mode for all backends – in a network mixing 1.12 and 1.13+ servers, all of them get the BungeeGuard format.
For a BungeeCord network outside Spot.gg: on the proxy, set ip_forward: true in config.yml, put BungeeGuard in plugins and copy the token from plugins/BungeeGuard/token.yml; then do steps 2–5 on each backend.
How to replace a leaked secret
Put a new, long random value in forwarding.secret on the proxy, restart the proxy, then click "Connect to the proxy" again for every backend.
- In the proxy's "Files" tab, open
forwarding.secret, replace its contents with a new string (for example 32 random letters and digits) and save. - Restart the proxy.
- Under "Configuration" → "Servers", the backends now show "Needs connecting" because the old secret no longer matches. Click "Connect to the proxy" for each one.
Until the backends have the new secret, players can't reach them through the proxy – do this outside peak hours.
Common problems
| Message or symptom | Cause | Fix |
|---|---|---|
| "This server requires you to connect with Velocity." | Modern forwarding is on for the backend but not the proxy (or someone is connecting to the backend directly) | Set MODERN on the proxy and restart it. On a direct connection, this message means the protection is working |
| "If you wish to use IP forwarding, please enable it in your Bungeecord config as well!" | Backend has bungeecord: true in spigot.yml, but the proxy isn't sending BungeeCord format |
For MODERN, set bungeecord: false and configure paper-global.yml |
| "Your server did not send a forwarding request to the proxy. Is it set up correctly?" | The backend has no Velocity support enabled (e.g. Vanilla, FabricProxy-Lite missing) | Enable proxies.velocity.enabled or install the mod, then restart |
| "Unable to verify player details" | The backend's secret differs from forwarding.secret |
Click "Connect to the proxy" again or paste the current secret |
| Players have different UUIDs, inventories and permissions are gone | NONE mode – the backend sees everyone as offline accounts |
Switch to MODERN. Make a backup under "Backups" first |
| Every player shows the same IP | NONE mode or a backend without forwarding |
Set MODERN on the proxy and backends |
| "Anyone can join this server directly." in the panel | Backend with online-mode=false and no MODERN forwarding |
"Connect to the proxy" |
FAQ
Isn't it enough to keep the backend's address secret?
No. A backend's address and port can be found with a port scan or simply guessed – and a backend with online-mode=false and no forwarding lets anyone in under any name. Real protection comes from modern forwarding with a secret (or a firewall, where you can use one).
Can a whitelist on the backend replace modern forwarding?
No. A whitelist checks the username and UUID, and on an online-mode=false server without forwarding both can be faked. Set up the whitelist after enabling MODERN – then it works on real accounts. More in Minecraft server whitelist.
Does modern forwarding work on Minecraft 1.12.2 and older?
No, only from 1.13. For older backends behind Velocity, use BUNGEEGUARD mode with the BungeeGuard plugin on the backend.
Can players on older game versions join through a MODERN proxy?
Yes. The forwarding mode is about the proxy-to-backend connection, not the player's game version. To support several client versions, use ViaVersion on the proxy or the backend.
Can I still join the backend directly after connecting it to the proxy?
No. With MODERN, anyone who bypasses the proxy gets "This server requires you to connect with Velocity." From then on everyone, admins included, joins through the proxy's address.
How do I disconnect a server from the proxy?
Removing a server from the list under "Servers" only changes velocity.toml – the backend's files stay as they are. To make the server work on its own again, set online-mode=true in server.properties and proxies.velocity.enabled: false in config/paper-global.yml in its "Files" tab, then restart it.