LANProtect
by widz_a_
LANProtect is a Fabric utility for LAN worlds that keeps unauthorized players from joining a game exposed to the internet by other mods.
What it does
Opening a world to LAN can expose it to outside connections when some mods are installed, so LANProtect checks who may join and blocks players who are not on the whitelist. Only the client needs it, so the game runs without it on any other side. The mod is published for Fabric alone, for 1.21.5, and is open source under the MIT License.
Key features
Whitelist for LAN joins
Players who are not on the whitelist are kept out of a LAN game opened to the internet.
Whitelist reset on world leave
The list of allowed players is cleared when the world is left, so every session needs players to be whitelisted again.
Public issue tracker and source
The source code and issue tracker are public, so bug reports and feature requests can be filed on GitHub.
Gallery
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
How it compares
Auto-Lan covers both client and server, under the MIT License, for 1.21 – 1.21.8 on Fabric and Quilt. LAN stuff is client-side only, is not open source, and covers 1.21.6 – 1.21.8 on Fabric and Quilt.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| LANProtect | Fabric | 1.21.5 | Client-side only | 2025-06-02 |
| Auto-Lan | Fabric and Quilt | 1.21 – 1.21.8 | Client and server | 2025-10-04 |
| LAN stuff | Fabric and Quilt | 1.21.6 – 1.21.8 | Client-side only | 2025-11-19 |
Questions
Does LANProtect need Fabric API?
Does the whitelist persist between sessions?
In the catalog
LANProtect is one of 36,990 Utility mods on ModsFinder, and one of 25,772 Utility mods for Fabric. 15,307 mods support Minecraft 1.21.5.
More from widz_a_
Similar mods
What the author says
Be notice that the list will be cleared when you leave the world, meaning you will have to re-whitelist those players when you play on it again. If you have any suggestion, you can create an issue or pull a request on my github repo) and I'll hopefully implement them.
Official listing
- Modrinth page
- modrinth.com/mod/lanprotect
- Owner
- widz_a_
- Published
- 2025-06-02
- Updated on Modrinth
- 2025-06-02
- Facts verified
- 2026-10-15
