Home›Java›Mods›Network Blocker
Network Blocker
ModsJava

Network Blocker

Java mod listed for Minecraft 1.20–1.21. Downloads from the MC Java Mods app on Android.

by decce · on CurseForge

Which build do you need?

This mod ships a separate file for every mod loader and every version of the game. Pick both, then download — the wrong build installs fine and then does nothing in the game.

Mod loader

Minecraft version

⬇ Download for 1.21.10–1.21.11 · NeoForge⬇ Download for 1.21–1.21.8 · NeoForge⬇ Download for 1.20.1–1.21.11 · Fabric⬇ Download for 1.20.1–1.21.11 · Quilt⬇ Download for 1.20.1 · Forge
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.

Network Blocker

Overview

Network Blocker is a utility mod that allows you to block unwanted network connection.

By default, only connections to Minecraft services are permitted, which are necessary for authentication, etc. IP connections are also allowed, but this can be changed in the configuration file. By observing the log, you can know which connections are blocked.

This mod is currently in beta. There might be connections it cannot detect and block, and it should not be considered as a comprehensive security measure against malicious mods.

Configuration

You can find the main configuration file in config/networkblocker/config.toml:

#When enabled, connections that are permitted will be logged
logPermitted = false
#When enabled, connections that are blocked will be logged
logBlocked = true
#When enabled, stacktrace will be logged
logStacktrace = false
#When enabled, direct IP connections will be allowed even if they are not in the whitelist
allowIP = true
#Set to true to add some useful domains to the whitelist. The current defaults are:
#
#minecraft.net
#minecraftservices.com
#minecraft-services.net
#mojang.com
#
#You can add additional domains to the whitelist using the file in the config folder.
useDefaultWhitelist = true
#Specifies the method used to block network connection. Valid values:
#REDIRECT: redirect addresses to 0.0.0.0
#THROW: throw an exception
blockMethod = "REDIRECT"

You can add domains to the whitelist in config/networkblocker/whitelist.txt:

# Add additional domains to whitelist in this file, one per line
# Lines starting with # will be ignored.
#
# Example:
minecraft.net
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

File checked by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more