{"id":91741,"date":"2026-06-05T08:48:23","date_gmt":"2026-06-05T05:48:23","guid":{"rendered":"https:\/\/vpesports.com\/minecraft\/mods\/lanlock\/"},"modified":"2026-06-05T08:48:23","modified_gmt":"2026-06-05T05:48:23","slug":"lanlock","status":"publish","type":"mod","link":"https:\/\/vpesports.com\/minecraft\/mods\/lanlock\/","title":{"rendered":"LANLock"},"content":{"rendered":"<p>**Note:** This is not needed for e4mc 5.4.0+ as they implemented a whitelist there<\/p>\n<p>&#8212;<\/p>\n<p># LANLock<\/p>\n<p>A few days ago, I stumbled across LANGuard,<br \/>\na mod that achieves the same thing as this one and also contributed to it.<br \/>\nAs this was my first ever contact with Java and Minecraft Mod Development,<br \/>\nI started to work on a new PR but soon noticed that I&#8217;m basically rewriting the entire mod.<br \/>\nSo I thought, it would be better if I just start a fully own mod that uses a different approach to enforce the whitelist.<br \/>\nAnd here we are \ud83d\ude42<\/p>\n<p>Also a thanks to Ovilli for creating their mod that is the start of this one.<\/p>\n<p>## Reason for this mod<\/p>\n<p>More and more players are using mods like e4mc to make their LAN worlds publicly available.<br \/>\nBut 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).<br \/>\nWith this mod I tried to recreate the Minecraft Server whitelist system as closely as possible (with my non-existent Java knowledge).<\/p>\n<p>## Features<\/p>\n<p>&#8211; a whitelist similar to the server counterpart<br \/>\n    &#8211; stores name and UUID<br \/>\n    &#8211; UUID is used to check if connecting player is on the whitelist<br \/>\n&#8211; config screen made with Cloth Config in modmenu for easy configuration<br \/>\n    &#8211; automatically resolves UUID for added player names asynchronously<br \/>\n    &#8211; option to disable the whitelist entirely<br \/>\n    &#8211; option to use names instead of UUIDs for checking (for testing)<br \/>\n&#8211; same options accessible via the client side command `\/lanlock`<\/p>\n<p>## Important<\/p>\n<p>As of version `1.3.5`, Cloth Config API is not a hard dependency anymore.<\/p>\n<p>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.<\/p>\n<p>## Technical<\/p>\n<p>Other than LANGuard, LANLock doesn&#8217;t even allow non whitelisted<br \/>\nplayers to join the server by modifying the connection process with a mixin.<br \/>\nSo this and the usage of UUIDs differentiate this mod from LANGuard<br \/>\nand at least from my understanding of programming should make it more secure.<\/p>\n<p>## License<\/p>\n<p>MIT<\/p>\n","protected":false},"excerpt":{"rendered":"<p>a whitelist for LAN worlds e.g. when opening them to the public with e4mc<\/p>\n","protected":false},"featured_media":91742,"template":"","meta":{"_minecraft_slug":"lanlock","_minecraft_project_id":"MslL8bqz","_minecraft_author":"technicfan","_minecraft_license":"MIT","_minecraft_downloads":13306,"_minecraft_follows":9,"_minecraft_client_side":"required","_minecraft_server_side":"required","_minecraft_storage_type":"zip","_minecraft_archive_name":"lanlock.zip","_minecraft_size_bytes":298788,"_minecraft_version_count":15,"_minecraft_updated_at":"2026-05-16T00:29:42.565701Z","_minecraft_date_created":"2025-06-07T22:37:38.389420Z","_minecraft_date_modified":"2026-04-01T17:18:20.758450Z","_minecraft_project_url":"https:\/\/modrinth.com\/mod\/lanlock","_minecraft_icon_attachment_id":91742,"_minecraft_imported_at":"2026-06-05T05:48:24+00:00","_minecraft_import_hash":"93ae63921faf662cfb8050ea7056a229","_minecraft_versions":"","_minecraft_links":"","_minecraft_gallery":"","_minecraft_api_metadata":""},"mod_category":[97,126,98,92],"mod_loader":[99,100],"minecraft_version":[56,57,58,59,36,60,93,94,101,102,62,37,40,41,73,74,38,78,79,80,81,82,83,167,163],"class_list":["post-91741","mod","type-mod","status-publish","has-post-thumbnail","hentry","mod_category-fabric","mod_category-management","mod_category-quilt","mod_category-utility","mod_loader-fabric","mod_loader-quilt","minecraft_version-1-19-2","minecraft_version-1-19-3","minecraft_version-1-19-4","minecraft_version-1-20","minecraft_version-1-20-1","minecraft_version-1-20-2","minecraft_version-1-20-3","minecraft_version-1-20-4","minecraft_version-1-20-5","minecraft_version-1-20-6","minecraft_version-1-21","minecraft_version-1-21-1","minecraft_version-1-21-10","minecraft_version-1-21-11","minecraft_version-1-21-2","minecraft_version-1-21-3","minecraft_version-1-21-4","minecraft_version-1-21-5","minecraft_version-1-21-6","minecraft_version-1-21-7","minecraft_version-1-21-8","minecraft_version-1-21-9","minecraft_version-26-1","minecraft_version-26-1-1","minecraft_version-26-1-2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>LANLock - Minecraft<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/vpesports.com\/minecraft\/mods\/lanlock\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"LANLock - Minecraft\" \/>\n<meta property=\"og:description\" content=\"a whitelist for LAN worlds e.g. when opening them to the public with e4mc\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vpesports.com\/minecraft\/mods\/lanlock\/\" \/>\n<meta property=\"og:site_name\" content=\"Minecraft\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/lanlock\\\/\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/lanlock\\\/\",\"name\":\"LANLock - Minecraft\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/lanlock\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/lanlock\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/lanlock-icon-48b5289230c06e089f7fadcf7116551fa5f00c40_96.webp\",\"datePublished\":\"2026-06-05T05:48:23+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/lanlock\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/lanlock\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/lanlock\\\/#primaryimage\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/lanlock-icon-48b5289230c06e089f7fadcf7116551fa5f00c40_96.webp\",\"contentUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/lanlock-icon-48b5289230c06e089f7fadcf7116551fa5f00c40_96.webp\",\"width\":96,\"height\":96},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/lanlock\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Mods\",\"item\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"LANLock\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/\",\"name\":\"Minecraft\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"LANLock - Minecraft","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/vpesports.com\/minecraft\/mods\/lanlock\/","og_locale":"en_US","og_type":"article","og_title":"LANLock - Minecraft","og_description":"a whitelist for LAN worlds e.g. when opening them to the public with e4mc","og_url":"https:\/\/vpesports.com\/minecraft\/mods\/lanlock\/","og_site_name":"Minecraft","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/vpesports.com\/minecraft\/mods\/lanlock\/","url":"https:\/\/vpesports.com\/minecraft\/mods\/lanlock\/","name":"LANLock - Minecraft","isPartOf":{"@id":"https:\/\/vpesports.com\/minecraft\/#website"},"primaryImageOfPage":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/lanlock\/#primaryimage"},"image":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/lanlock\/#primaryimage"},"thumbnailUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/lanlock-icon-48b5289230c06e089f7fadcf7116551fa5f00c40_96.webp","datePublished":"2026-06-05T05:48:23+00:00","breadcrumb":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/lanlock\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vpesports.com\/minecraft\/mods\/lanlock\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/vpesports.com\/minecraft\/mods\/lanlock\/#primaryimage","url":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/lanlock-icon-48b5289230c06e089f7fadcf7116551fa5f00c40_96.webp","contentUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/lanlock-icon-48b5289230c06e089f7fadcf7116551fa5f00c40_96.webp","width":96,"height":96},{"@type":"BreadcrumbList","@id":"https:\/\/vpesports.com\/minecraft\/mods\/lanlock\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/vpesports.com\/minecraft\/"},{"@type":"ListItem","position":2,"name":"Mods","item":"https:\/\/vpesports.com\/minecraft\/mods\/"},{"@type":"ListItem","position":3,"name":"LANLock"}]},{"@type":"WebSite","@id":"https:\/\/vpesports.com\/minecraft\/#website","url":"https:\/\/vpesports.com\/minecraft\/","name":"Minecraft","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/vpesports.com\/minecraft\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod\/91741","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod"}],"about":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/types\/mod"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media\/91742"}],"wp:attachment":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media?parent=91741"}],"wp:term":[{"taxonomy":"mod_category","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_category?post=91741"},{"taxonomy":"mod_loader","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_loader?post=91741"},{"taxonomy":"minecraft_version","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/minecraft_version?post=91741"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}