Skip to content

LANLock

a whitelist for LAN worlds e.g. when opening them to the public with e4mc

FabricQuilt
Loaders
FabricQuilt
Downloads on Modrinth
23.1K
Followers on Modrinth
15
versions
26
Updated
September 15, 2026Sep 15
Published
in 2025

At a glance

Runs on Fabric and Quilt
For Minecraft 1.19.2–26.3
Needed in the game and on the server
Latest version — 1.3.7 from September 15, 2026
Requires Fabric API
License MIT — free
Where it's needed
In gamerequiredOn serverrequired

Needed both in the game and on the server

Game versions1.19.2–26.3

Note: This is not needed for e4mc 5.4.0+ as they implemented a whitelist there


LANLock

A few days ago, I stumbled across LANGuard, a mod that achieves the same thing as this one and also contributed to it. As this was my first ever contact with Java and Minecraft Mod Development, I started to work on a new PR but soon noticed that I'm basically rewriting the entire mod. So I thought, it would be better if I just start a fully own mod that uses a different approach to enforce the whitelist. And here we are :)

Also a thanks to Ovilli for creating their mod that is the start of this one.

Reason for this mod

More and more players are using mods like e4mc to make their LAN worlds publicly available. But griefers have noticed this too and as LAN worlds provide no tooling to prevent anyone from joining, this starts to become a risk (see this video). With this mod I tried to recreate the Minecraft Server whitelist system as closely as possible (with my non-existent Java knowledge o.O).

Features

  • a whitelist similar to the server counterpart

    • stores name and UUID
    • UUID is used to check if connecting player is on the whitelist
  • config screen made with Cloth Config in modmenu for easy configuration

    • automatically resolves UUID for added player names asynchronously
    • option to disable the whitelist entirely
    • option to use names instead of UUIDs for checking (for testing)
  • same options accessible via the client side command /lanlock

Important

As of version 1.3.5, Cloth Config API is not a hard dependency anymore.

So if you want to configure the mod via Modmenu in a GUI, you need to install both Modmenu and Cloth Config API by yourself.

Technical

Other than LANGuard, LANLock doesn't even allow non whitelisted players to join the server by modifying the connection process with a mixin. So this and the usage of UUIDs differentiate this mod from LANGuard and at least from my understanding of programming should make it more secure.

License

MIT

FAQ

How to install LANLock?

Install Fabric for your Minecraft version, download LANLock for the same version and loader, put the file into the mods folder and launch the game with the loader profile.

Which Minecraft versions does LANLock support?

LANLock has builds for Minecraft 1.19.2–26.3.

Is LANLock needed on the server?

Needed in the game and on the server

License and source
MIT Licensefree to use and share with credit to the author
Original — Modrinth↗Files unchanged, verified with SHA-512Is this your mod? For rights holders

The site uses cookies: the necessary ones for sign-in and the theme, plus the Yandex Metrica and LiveInternet visit counters — they show us how the site is used. We have no advertising cookies. More