// Minecraft

Securing your Minecraft server: whitelist, permissions, DDoS

Securing your Minecraft server: whitelist, permissions, DDoS

Your own Minecraft server is set up in no time: generate a world, send friends the address, start playing. Security usually only makes the agenda afterwards — typically at the exact moment a stranger has wrecked the spawn or someone with too many permissions was "just testing something". A shame, because the most important measures take an evening at most and are all free.

Good security is built in layers. Below you'll walk through them one by one: who gets in (whitelist and ops), what players are allowed to do (permissions via LuckPerms), what you do when things go wrong anyway (backups) and what happens outside your server entirely (DDoS attacks, and what MC-Node absorbs by default).

Start at the front door: whitelist and ops

By far most of the trouble on small servers comes in through the front door: someone who shouldn't be there, or someone allowed to do far more than necessary. You can fix both in five minutes, and they deliver the biggest win right away.

Enabling the whitelist

With a whitelist, only players you've put on the list can join. For a server with friends or a small community, there's really no good reason to leave it off. Enable it from the console or in-game:

  • /whitelist on — turns the whitelist on
  • /whitelist add PlayerName — adds a player
  • /whitelist remove PlayerName — removes a player again

Also set enforce-whitelist to true in server.properties. Players you remove from the list then get kicked from the server immediately, instead of being able to wander around calmly until they happen to log out.

Go easy on /op

Giving a player /op sounds harmless, but op permissions are virtually unlimited: stopping the server, banning players, switching game modes, spawning items. One shared account or one friend who misunderstands a command, and you're spending an evening cleaning up. A good starting point: only you as the owner have op, everyone else gets exactly the permissions they need through a permissions plugin. On a public server that's not a luxury but a necessity.

Managing permissions properly with LuckPerms

LuckPerms is the de facto standard for permission management on Minecraft servers: free, actively maintained and far more organised than scattered ops and config files tweaked here and there. The idea is simple: you create groups (for example default, moderator and admin), attach permissions to those groups and put players in the right group.

A minimal setup looks like this:

  1. Install LuckPerms and restart your server.
  2. Create a group: /lp creategroup moderator
  3. Give the group a permission, for example kicking: /lp group moderator permission set minecraft.command.kick true
  4. Put a player in the group: /lp user PlayerName parent set moderator

Fortunately you don't need to memorise every permission node: with /lp editor you open a web editor where you click groups, permissions and players instead of typing them. Start small — a default group with no special rights and one moderator group — and only expand once your community grows. The fewer exceptions you pile up, the less can break and the easier it is to trace later who's allowed to do what.

Backups: your safety net when things go wrong anyway

Security reduces the chance of problems; backups reduce the damage. And that damage is by no means always caused by bad actors: a corrupted world after a crash, a plugin update that drains your economy or accidentally overwriting the wrong file yourself all happen more often in practice than griefing.

A few rules of thumb that prove themselves time and again:

  • Automatic and regular. A backup you have to remember yourself isn't a backup. Schedule it daily as soon as your server is actively played on.
  • Before every big change. New plugin, version update, different world generator? Run a backup first, then start clicking.
  • Keep a copy outside the server. Download a backup to your own computer or cloud storage every now and then. If something goes badly wrong, you'll always have a version stored elsewhere.
  • Test your restore. A backup you've never restored is a gamble. Try it once at a quiet moment; then, under pressure, you'll know exactly which buttons to press.

Also check what your host offers here. At MC-Node you manage your server through a control panel, so you don't need loose scripts or FTP sessions to handle your backups.

DDoS attacks: what MC-Node absorbs by default

A DDoS attack has nothing to do with your settings: someone sends so much traffic to your server that legitimate players can no longer get in. Minecraft servers are unfortunately a popular target — sometimes out of spite after a ban, sometimes simply because it's possible.

There's little you can do about this yourself; this is the point where your host has to do the work. At MC-Node, DDoS protection is included with every plan by default, at no extra cost and without a separate add-on. Attacks are filtered at the edge of the network before they reach your server, and the servers themselves run on our own hardware in the Previder PDC2 data center in Hengelo.

To be fair: no protection makes attacks completely invisible. During a large attack there can be a brief noticeable hiccup before the filters push everything away. And DDoS protection does nothing against problems that arise inside the game — no network filter stops a leaked op account or a malicious plugin. That's why the earlier steps remain just as important.

Five small settings that make a big difference

Finally, a list of tweaks that take little time but together prevent a lot of hassle:

  • Use a strong, unique password for your control panel and enable two-factor authentication wherever possible. Anyone who can get into your panel can do anything — including deleting your backups.
  • Leave online-mode set to true. That way player accounts are actually verified and nobody can get in with a spoofed player name. If you run behind a proxy like Velocity, things are different: there, the proxy takes over that check.
  • Only install plugins from official sources like SpigotMC, Hangar or Modrinth. "Free" versions of paid plugins from shady download sites regularly contain malware.
  • Clean up what you don't use. Every plugin is extra attack surface and one more thing that can break with an update.
  • Protect your spawn. Spawn protection in server.properties or a claim plugin prevents a new player from demolishing your spawn building within two minutes.

Which plan suits a secure server?

Good news: security is independent of your plan choice. Whitelist, LuckPerms and backups work on every plan, and DDoS protection is included everywhere at MC-Node by default. So the choice mostly comes down to how many players and plugins you expect. A selection of the Minecraft plans, showing the standard line alongside the Premium variant:

PlanPrice per monthPremium variant per month
Cobblestone€0.50€1.25
Iron€3.30€7.50
Diamond€7.70€17.50
Gravel€15.00€37.50

All plans run on NVMe storage and can be cancelled monthly, so starting small and scaling up later is always an option. You'll find the full range and specifications per plan in the MC-Node Minecraft store.

Enable the whitelist and run your first backup today — that's ninety percent of the work. The rest you build out calmly as your server grows.

// TRY IT YOURSELF
Your Minecraft server online in 60 seconds
View packages →