Back to mods
LANLock project artwork

Modrinth · Minecraft mod

LANLock

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

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which LANLock release matches 26.2?

Updated 2 months ago
Best match for your filters 1.3.7
Game version 26.2
Loader Fabric, Quilt

LANLock 1.3.7 targets 26.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.

Client Optional
Dedicated server Optional
Loader for this release Fabric, Quilt
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

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.2. Every mod below is checked against that same setup.

All 1 required mods have matching files

Install Fabric API first. We found matching files for this game-version and loader setup. 1 comes through another mod in the chain.

3 listed on this file 1 pulled in by one of those mods
Cloth Config API Optional for LANLock 1.3.7
optional
Matching file found Matched file: 26.2.155+fabric
Fabric API Needed by LANLock 1.3.7
required
Matching file found Matched file: 0.161.0+26.2
Mod Menu Optional for LANLock 1.3.7
optional
Matching file found Matched file: 20.0.3
Text Placeholder API Needed by Mod Menu
pulled in
Matching file found Matched file: 3.1.0-beta.1+26.2

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.2. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 1.3.7. It targets 26.2 with Fabric, Quilt; another release may have different loader, side or dependency requirements.

  2. 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.

  3. 03

    Put it on the correct side

    Installation on the client is optional. Installation on the dedicated server is optional.

  4. 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

MIT

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.

54 available setups

Showing 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 of 26 releases match
Clear filters

Looking for an older file? The official Modrinth project page is in Resources.