LANLock

⭐ — (13 endorsements) 📥 18,999 downloads 📌 v1.3.7 📅 6/7/2025
🟡 Updated this year

By technicfan · fabric

⬇ Download Mod Source: Modrinth ↗ 📅 Updated: 6/16/2026 📅 Created: 6/7/2025
⚠️ Install Order · 2 steps
1🛠️ Forge — Minecraft Forge (mod loader) Download ↗
2🛠️ Fabric — Fabric Loader Download ↗

Install in this order, then this mod last — most mods fail to load without their framework and dependencies in place.

🔍 Analysis

  • 👍 0.1% endorsement rate
  • 🏆 #767 of 940 fabric mods in this game by downloads

📋 About This Mod

✅ 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

**Note:** This is not needed for e4mc 5.4.0+ as they implemented a whitelist there --- # LANLock A few days ago, I stumbled across (https://github.com/Ovilli/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 :) <br> <br> Also a thanks to (https://github.com/Ovilli) for creating their mod that is the start of this one. ## Reason for this mod More and more players are using mods like (https://github.com/vgskye/e4mc-minecraft-architectury/) 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 (https://www.youtube.com/watch?v=3tK06u22VQg)). With this mod I tried to recreate the Minecraft Server whitelist system as closely as possible (with my non-existent Java knowledge). ## 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`, (https://modrinth.com/mod/cloth-config) 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 (https://github.com/Ovilli/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 (https://github.com/Ovilli/LANGuard) and at least from my understanding of programming should make it more secure. ## License (https://github.com/technicfan/LANWhitelist/blob/main/LICENSE)

Note: This is not needed for e4mc 5. 4. 0+ as they implemented a whitelist there

A few days ago, I stumbled across (https://github.com/Ovilli/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 (https://github.com/Ovilli) for creating their mod that is the start of this one.

## Reason for this mod

More and more players are using mods like (https://github.com/vgskye/e4mc-minecraft-architectury/) 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 (https://www.youtube.com/watch?v=3tK06u22VQg)). With this mod I tried to recreate the Minecraft Server whitelist system as closely as possible (with my non-existent Java knowledge).

## 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`, (https://modrinth.com/mod/cloth-config) 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 (https://github.com/Ovilli/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 (https://github.com/Ovilli/LANGuard) and at least from my understanding of programming should make it more secure.

(https://github.com/technicfan/LANWhitelist/blob/main/LICENSE)

🤖 AI-enhanced — based on mod data

📊 Mod Details

Game
Minecraft Mods
Author
technicfan
Version
1.3.7
Downloads
18,999
Endorsements
13
Category
fabric
Created
6/7/2025
Updated
6/16/2026
Game Versions
26.2
Tags
management, utility

🔧 How to Install Minecraft Mods Mods

Download from Modrinth. Use Prism Launcher or drop into your mods folder.

📖 Full step-by-step install guide for Minecraft Mods →

Visit the official mod page for specific installation instructions for this mod.

🎮 Need cheat codes or console commands? Check ur gaming wiki for Minecraft Mods commands, item IDs, and more.

❓ Frequently Asked Questions

Which Minecraft Mods versions does LANLock support?

The author lists 26.2. Other versions may work but are untested by the author.

What is the latest version of LANLock?

Version 1.3.7, published 2026-06-16 with 18,999 downloads recorded at the source.

Keep browsing — more Minecraft Mods mods await

📋 All Minecraft Mods Mods 🏆 Top 25 📂 More fabric 👤 More by technicfan 🔎 Similar Mods 🌐 Best fabric (All Games) 🔀 Check Compatibility ⚖️ Compare Mods 🆕 New Mods