How do I whitelist players on a Minecraft server?
The default behavior of Minecraft is to allow anybody onto your server. It is advisable to whitelist which players can connect to your server to protect from greifers, this can be a problem even if you do not publicly share your IP address.