
Modrinth · Minecraft mod
LANLock
a whitelist for LAN worlds e.g. when opening them to the public with e4mc
Quick answer
Which LANLock release matches 26.1.2?
LANLock 1.3.7 targets 26.1, 26.1.1, 26.1.2 with Fabric, Quilt. Installation on the client is optional. Installation on the dedicated server is optional. All 1 required mods have matching files.
Where it goes
Is LANLock required on the client, server, or both?
Installation on the client is optional. Installation on the dedicated server is optional.
The source marks this as usable on both the client and server.
What else does LANLock 1.3.7 need?
1.3.7 on 26.1.2. Every mod below is checked against that same setup.
Install Fabric API first. We found matching files for this game-version and loader setup. 1 comes through another mod in the chain.
1 extra mod was pulled in by another dependency. Indented rows show who needs each one. We only count dependency files that match this setup. A file for another loader does not fill the gap.
Before you install it
Add LANLock without breaking your instance.
Built for LANLock 1.3.7 on 26.1.2. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use 1.3.7. It targets 26.1, 26.1.1, 26.1.2 with Fabric, Quilt; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
Install Fabric API first. We found matching files for this game-version and loader setup. 1 comes through another mod in the chain.
- 03
Put it on the correct side
Installation on the client is optional. Installation on the dedicated server is optional.
- 04
Pick the file you checked
Use the “Get this file” button beside 1.3.7. It opens that exact file at the source.
About this project
What does LANLock add?
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
Project description from Modrinth.
Pick your setup
LANLock by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
26.3
2 loader builds26.2
2 loader builds26.1.2
2 loader builds26.1.1
2 loader builds26.1
2 loader builds1.21.11
2 loader builds1.21.10
2 loader builds1.21.9
2 loader builds1.21.8
2 loader builds1.21.7
2 loader builds1.21.6
2 loader builds1.21.5
2 loader buildsShowing the newest 12 of 27 game versions. Older files are in the list below.
Check the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
LANLock versions and loaders
1.3.7
lanlock-1.3.7.jar
16 Jun 2026
1.3.6-2
lanlock-1.3.6.jar
1 Apr 2026
Looking for an older file? The official Modrinth project page is in Resources.