COWMODSКаталог модов

NoInternet

Intercept non-whitelisted network requests during game startup to avoid unnecessary update checks and other factors that slow down startup speed.

Автор: 2eGJHf81,8 тыс.7обновлён 1 окт. 2025 г.
ОптимизацияУтилиты

Описание

NoInternet

English

This description was translated using DeepL.

You can intercept non-whitelisted network requests during the game startup phase to avoid unnecessary update checks and other factors that slow down startup speed.

Reference: NonUpdate Reloaded

Features

  • 🚫 Block non-whitelisted network requests during startup
  • ⚡ Accelerate game startup speed
  • 📋 Flexible whitelist config system
  • 📝 Optional interception log recording
  • 🔧 Configurable invalid proxy ports (used to block connections), randomly generated on first startup

Config

Config file location

config/nointernet.json (automatically created on first startup)

Default Config

{
  “whitelist”: [
    “$emojang.com”,
    “$eminecraft.net”,
    “$ctoriifind.json”,
    “$clynn.json”
  ],
  “logBlockedRequests”: true,
  “blockPort”: -1
}

Notes:

  • Upon first startup, blockPort will be randomly generated between 20000–65535 (inclusive) and written to the configuration.
  • You can also manually modify it to any valid port between 1–65535; if an invalid value is entered, it will be automatically regenerated and written back upon the next startup.
  • The toriifind.json and lynn.json files are required by my other mod “ToriiFind”; if you don't need them, you can delete them.

Configuration Item Description

Configuration ItemTypeDescription
whitelistString arrayList of domains that will not be blocked
logBlockedRequestsBooleanWhether to log blocked requests (default: true)
blockPortIntegerUsed to construct the local invalid proxy localhost:blockPort to block connections

How to add URLs to the whitelist

Multiple matching methods are supported, specified by prefix:

Matching Methods

PrefixDescriptionExampleMatching Result
$rRegular expression$r.+\.mojang\.comsessionserver.mojang.com
$eEnd match$emojang.comsessionserver.mojang.com
$sPrefix match$swwwwww.mojang.com
$cContains match$cminecraftminecraft.example.com
No prefixExact matchhypixel.nethypixel.net

Matching Rules

  • Matching checks the entire URL (domain + path + parameters)
  • Interception will automatically stop after entering the main interface (TitleScreen)
  • When the configuration file is invalid (missing whitelist), to avoid false positives, all requests will be allowed
  • Intercepted requests will be redirected to an invalid proxy at localhost:blockPort for quick failure, avoiding prolonged timeouts
中文

可以在游戏启动阶段拦截非白名单的网络请求,避免不必要的更新检查等拖慢启动速度。

参考自 NonUpdate Reloaded

功能

  • 🚫 拦截启动阶段的非白名单网络请求
  • ⚡ 加快游戏启动速度
  • 📋 灵活的白名单配置系统
  • 📝 可选的拦截日志记录
  • 🔧 可配置的无效代理端口(用于阻断连接),首次启动会随机生成

配置

配置文件位置

config/nointernet.json(首次启动自动创建)

默认配置

{
  "whitelist": [
    "$emojang.com",
    "$eminecraft.net",
    "$ctoriifind.json",
    "$clynn.json"
  ],
  "logBlockedRequests": true,
  "blockPort": -1
}

说明:

  • 首次启动会在 20000–65535(含)之间随机生成 blockPort 并写入配置。
  • 你也可以手动修改为任意 1–65535 的有效端口;若填写无效值,下一次启动会自动重新随机生成并写回。
  • 其中的 toriifind.json 和 lynn.json 是我的另一个 Mod "ToriiFind" 需要的,你如果用不到,可以将其删除。

配置项说明

配置项类型说明
whitelist字符串数组不会拦截的域名列表
logBlockedRequests布尔值是否记录被拦截的请求(默认:true)
blockPort整数用于构造本地无效代理 localhost:blockPort 来阻断连接

如何添加网址到白名单

支持多种匹配方式,通过前缀指定:

匹配方式

前缀说明示例匹配结果
$r正则表达式$r.+\.mojang\.comsessionserver.mojang.com
$e结尾匹配$emojang.comsessionserver.mojang.com
$s开头匹配$swwwwww.mojang.com
$c包含匹配$cminecraftminecraft.example.com
无前缀精确匹配hypixel.nethypixel.net

匹配与拦截规则

  • 匹配会检查完整的 URL(域名 + 路径 + 参数)
  • 进入主界面(TitleScreen)后,拦截将自动停止
  • 当配置文件无效(缺少 whitelist)时,为避免误伤,所有请求将被允许
  • 被拦截的请求将被重定向到 localhost:blockPort 的无效代理以快速失败,避免长时间超时

Последние версии

Все версии →
release

NoInternet 1.0.3

1.0.3
1 окт. 2025 г.1,1 тыс.Minecraft: 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9fabric
Скачать
Что нового
Support 1.21.9
release

NoInternet 1.0.2

1.0.2
9 авг. 2025 г.613Minecraft: 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8fabric
Скачать
Что нового
[English] ``` “Using a non-existent port” will cause some mods to crash. Change it to use a randomly generated port, which can be customized in the configuration file. ``` [中文] ``` “使用不存在的端口”会导致部分mod崩溃,修改为使用一个随机生成的端口,此端口可在配置文件中自定义。 ```
release

NoInternet 1.0.1

1.0.1
8 авг. 2025 г.58Minecraft: 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8fabric
Скачать
Что нового
[English] ``` Added a message to stop interception after startup is complete. Fixed an issue where interception did not stop as expected (stopping after the game started, rather than after entering the world). Changed to use a non-existent port so that the connection fails quickly rather than timing out. ``` [中文] ``` 增加了启动完成后停止拦截的消息 修复了未按照预期停止拦截的问题(在游戏启动完成后停止,而不是进入世界后) 改为使用不存在的端口,让连接快速失败而不是超时 ```
release

NoInternet 1.0.0

1.0.0
22 июл. 2025 г.55Minecraft: 1.21.4fabric
Скачать