How do I set a password on my Minecraft server?
🔒 How to Set a Password (Whitelist) for Your Minecraft Server
- * ---
🧠 Can You Set a Password on Minecraft Servers?
Minecraft does not support setting a password for joining a server.
However, you can restrict access by using a whitelist, which only allows specific players to connect.
✅ Whitelisting is the safest and most common way to make your server private.
- * ---
🛠️ How to Restrict Access with a Whitelist:
- Log into the Control Panel.
- Click 'Manage' next to your server.
- Navigate to 'File Management'.
- Open the
server.properties
file.
- Set these two options:
white-list=true
enforce-whitelist=true
- Save the file and restart your server.
👥 How to Add Players to the Whitelist
You can whitelist players using the Console or the Players page:
- Console Command:
whitelist add playername
❗ Important Security Notes
- Never disable online mode (
online-mode=false
) unless you know exactly what you're doing — it disables Mojang authentication and opens your server to impersonators.
- Whitelisting is the safest way to control access without needing to run risky plugins or alter security settings.
- Always keep your server and plugins up-to-date.
📚 Related Guide:
✅ Visit How to Enable Whitelist for a full step-by-step guide.
Updated on: 25/04/2025
Thank you!