All Mods Resource Packs Data Packs Shaders Modpacks Plugins
Network Blocker

Network Blocker

by decce6 • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

Network Blocker

Overview

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

By default, this mod permits connections made by vanilla Minecraft, which are necessary for authentication, etc. Network connections made by mods are blocked by default.

While the default is to block all non-vanilla connections, there is also a blacklist mode. This is useful when you want to block only specific connections, filtering by either domain name or the mod that attempted the connection.

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
#When enabled, treat the whitelist as blacklist. This means all connections are allowed by default, and only connections to the specified domains or attempted by specified mods will be blocked.
#This is useful when you want to only block specific connections that are causing issues.
blacklistMode = false
#Specifies the method used to block network connection. Valid values:
#DEFAULT: use the default blocking method (THROW)
#REDIRECT: redirect addresses to 0.0.0.0
#THROW: throw an exception
blockingMethod = "DEFAULT"

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

# Add additional domains/mods to the whitelist in this file, one per line
# Lines starting with # are ignored. (use them as comments!)
# Lines starting with = are treated as modid's.
# Other lines are treated as domain names.
# The following default allows connection by any mod to *.minecraft.net, as well as any connection made by vanilla game.

minecraft.net
=minecraft

When logPermitted or logBlocked is enabled, detailed information is logged, which helps monitor network connection and tells you the mod that attempted each connection:

[Network Blocker/]: Blocked connection to example.com:443, attempted by mod some_awesome_mod
[Network Blocker/]: Permitted connection to api.minecraftservices.com:443, attempted by mod minecraft

Side Requirement

This mod does not have strict side requirements. This means it is possible to install the mod on the client-side without it being present on the dedicated server, and vice versa. Network blocking will work on the side(s) with the mod installed.

How to Install Network Blocker (Mod)

Network Blocker by decce6 is verified for Fabric, Forge, Neoforge, Quilt across Minecraft versions 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1 (latest release: 1.0.0+26.3-neoforge, file size: 1.0 MB). Follow the steps below to install it safely from ModCraft.tv:

  1. Click the Download button above and select your Minecraft version (1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1) and platform (Fabric, Forge, Neoforge, Quilt).
  2. Make sure you have the compatible loader or environment installed for Fabric, Forge, Neoforge, Quilt.
  3. Move the downloaded Network Blocker file into your Minecraft .minecraft/mods folder and launch the game.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
26.3
Neoforge
22d ago 1
26.2 26.1.x
Neoforge
22d ago 1
26.3 26.2 26.1.x
Fabric Quilt
22d ago 1
1.21.x
Neoforge
22d ago 1
1.21.x 1.20.x
Fabric Quilt
22d ago 1
1.21.x
Neoforge
22d ago 1
1.20.1
Forge
22d ago 1
26.3 26.2 26.1.x
Neoforge
7mo ago 1
26.3 26.2 26.1.x
Fabric Quilt
7mo ago 1
1.21.x
Neoforge
7mo ago 1
1.21.x 1.20.x
Fabric Quilt
7mo ago 1
1.21.x
Neoforge
7mo ago 1
1.20.1
Forge
7mo ago 1
26.1.x
Neoforge
8mo ago 1
26.1.x
Fabric Quilt
8mo ago 1
1.21.x
Neoforge
8mo ago 1
1.21.x 1.20.x
Fabric Quilt
8mo ago 1
1.21.x
Neoforge
8mo ago 1
1.20.1
Forge
8mo ago 1
1.21.x
Neoforge
8mo ago 1
1.21.x 1.20.x
Fabric Quilt
8mo ago 1
1.21.x
Neoforge
8mo ago 1
1.20.1
Forge
8mo ago 1
1.21.x
Neoforge
9mo ago 1
1.21.x 1.20.x
Fabric Quilt
9mo ago 1
1.21.x
Neoforge
9mo ago 1
1.20.1
Forge
9mo ago 1
1.21.x
Neoforge
10mo ago 1
1.21.x 1.20.x
Fabric Quilt
10mo ago 1
1.21.x
Neoforge
10mo ago 1
1.20.1
Forge
10mo ago 1
1.21.x
Neoforge
10mo ago 1
1.21.x 1.20.x
Fabric Quilt
10mo ago 1
1.21.x
Neoforge
10mo ago 1
1.20.1
Forge
10mo ago 1
1.21.x
Neoforge
10mo ago 1
1.21.x 1.20.x
Fabric Quilt
10mo ago 1
1.21.x
Neoforge
10mo ago 1
1.20.1
Forge
10mo ago 1
1.21.x
Neoforge
10mo ago 1
1.21.x 1.20.x
Fabric Quilt
10mo ago 1
1.21.x
Neoforge
10mo ago 1
1.20.1
Forge
10mo ago 1
This is a major update to Network Blocker that brings numerous enhancements. It is now possible to block specific connections with the blacklist mode, filtering by either hostname or the mod that attempted the connection.

If you have made changes to the configuration, it is recommended that you either delete the old configurations, or manually add =minecraft to your whitelist to make sure the game can make necessary network requests.

  • Added the ability to filter network requests by modid
  • Added a blacklist mode
  • Removed the useDefaultWhitelist option (the new default whitelist file already allows connections made by vanilla game)
  • This is a breaking change - if you use the whitelist mode, make sure to add =minecraft to the whitelist to make sure the game can still make normal network requests
  • Implemented EarlyBootstrapper for 26.3-neoforge compatibility
  • Added bannerFile and iconFile for compatibility with newer versions of NeoForge
  • Fixed the default value of blockingMethod
  • Changed the default value of allowIP to false
  • Updated bundled dependencies
This is a major update to Network Blocker that brings numerous enhancements. It is now possible to block specific connections with the blacklist mode, filtering by either hostname or the mod that attempted the connection.

If you have made changes to the configuration, it is recommended that you either delete the old configurations, or manually add =minecraft to your whitelist to make sure the game can make necessary network requests.

  • Added the ability to filter network requests by modid
  • Added a blacklist mode
  • Removed the useDefaultWhitelist option (the new default whitelist file already allows connections made by vanilla game)
  • This is a breaking change - if you use the whitelist mode, make sure to add =minecraft to the whitelist to make sure the game can still make normal network requests
  • Implemented EarlyBootstrapper for 26.3-neoforge compatibility
  • Added bannerFile and iconFile for compatibility with newer versions of NeoForge
  • Fixed the default value of blockingMethod
  • Changed the default value of allowIP to false
  • Updated bundled dependencies
This is a major update to Network Blocker that brings numerous enhancements. It is now possible to block specific connections with the blacklist mode, filtering by either hostname or the mod that attempted the connection.

If you have made changes to the configuration, it is recommended that you either delete the old configurations, or manually add =minecraft to your whitelist to make sure the game can make necessary network requests.

  • Added the ability to filter network requests by modid
  • Added a blacklist mode
  • Removed the useDefaultWhitelist option (the new default whitelist file already allows connections made by vanilla game)
  • This is a breaking change - if you use the whitelist mode, make sure to add =minecraft to the whitelist to make sure the game can still make normal network requests
  • Implemented EarlyBootstrapper for 26.3-neoforge compatibility
  • Added bannerFile and iconFile for compatibility with newer versions of NeoForge
  • Fixed the default value of blockingMethod
  • Changed the default value of allowIP to false
  • Updated bundled dependencies
This is a major update to Network Blocker that brings numerous enhancements. It is now possible to block specific connections with the blacklist mode, filtering by either hostname or the mod that attempted the connection.

If you have made changes to the configuration, it is recommended that you either delete the old configurations, or manually add =minecraft to your whitelist to make sure the game can make necessary network requests.

  • Added the ability to filter network requests by modid
  • Added a blacklist mode
  • Removed the useDefaultWhitelist option (the new default whitelist file already allows connections made by vanilla game)
  • This is a breaking change - if you use the whitelist mode, make sure to add =minecraft to the whitelist to make sure the game can still make normal network requests
  • Implemented EarlyBootstrapper for 26.3-neoforge compatibility
  • Added bannerFile and iconFile for compatibility with newer versions of NeoForge
  • Fixed the default value of blockingMethod
  • Changed the default value of allowIP to false
  • Updated bundled dependencies
This is a major update to Network Blocker that brings numerous enhancements. It is now possible to block specific connections with the blacklist mode, filtering by either hostname or the mod that attempted the connection.

If you have made changes to the configuration, it is recommended that you either delete the old configurations, or manually add =minecraft to your whitelist to make sure the game can make necessary network requests.

  • Added the ability to filter network requests by modid
  • Added a blacklist mode
  • Removed the useDefaultWhitelist option (the new default whitelist file already allows connections made by vanilla game)
  • This is a breaking change - if you use the whitelist mode, make sure to add =minecraft to the whitelist to make sure the game can still make normal network requests
  • Implemented EarlyBootstrapper for 26.3-neoforge compatibility
  • Added bannerFile and iconFile for compatibility with newer versions of NeoForge
  • Fixed the default value of blockingMethod
  • Changed the default value of allowIP to false
  • Updated bundled dependencies
This is a major update to Network Blocker that brings numerous enhancements. It is now possible to block specific connections with the blacklist mode, filtering by either hostname or the mod that attempted the connection.

If you have made changes to the configuration, it is recommended that you either delete the old configurations, or manually add =minecraft to your whitelist to make sure the game can make necessary network requests.

  • Added the ability to filter network requests by modid
  • Added a blacklist mode
  • Removed the useDefaultWhitelist option (the new default whitelist file already allows connections made by vanilla game)
  • This is a breaking change - if you use the whitelist mode, make sure to add =minecraft to the whitelist to make sure the game can still make normal network requests
  • Implemented EarlyBootstrapper for 26.3-neoforge compatibility
  • Added bannerFile and iconFile for compatibility with newer versions of NeoForge
  • Fixed the default value of blockingMethod
  • Changed the default value of allowIP to false
  • Updated bundled dependencies
This is a major update to Network Blocker that brings numerous enhancements. It is now possible to block specific connections with the blacklist mode, filtering by either hostname or the mod that attempted the connection.

If you have made changes to the configuration, it is recommended that you either delete the old configurations, or manually add =minecraft to your whitelist to make sure the game can make necessary network requests.

  • Added the ability to filter network requests by modid
  • Added a blacklist mode
  • Removed the useDefaultWhitelist option (the new default whitelist file already allows connections made by vanilla game)
  • This is a breaking change - if you use the whitelist mode, make sure to add =minecraft to the whitelist to make sure the game can still make normal network requests
  • Implemented EarlyBootstrapper for 26.3-neoforge compatibility
  • Added bannerFile and iconFile for compatibility with newer versions of NeoForge
  • Fixed the default value of blockingMethod
  • Changed the default value of allowIP to false
  • Updated bundled dependencies
  • Fixed JiJ discovery on Forge (lazyyyyy compatibility)
  • Fixed JiJ discovery on Forge (lazyyyyy compatibility)
  • Fixed JiJ discovery on Forge (lazyyyyy compatibility)
  • Fixed JiJ discovery on Forge (lazyyyyy compatibility)
  • Fixed JiJ discovery on Forge (lazyyyyy compatibility)
  • Fixed JiJ discovery on Forge (lazyyyyy compatibility)
  • Improved THROW blocking method
  • Changed default blocking method to THROW to avoid mutating final fields warnings on Java 26+
  • [1.21.1 NeoForge] Fixed java.nio.file.ProviderNotFoundException: Provider "jar" not found errors caused by the mod
  • Added 26.1 support
  • Improved THROW blocking method
  • Changed default blocking method to THROW to avoid mutating final fields warnings on Java 26+
  • [1.21.1 NeoForge] Fixed java.nio.file.ProviderNotFoundException: Provider "jar" not found errors caused by the mod
  • Added 26.1 support
Network Blocker Icon
Download Network Blocker
Select game version
Select platform