HomeJavaModsAsnBlacklist
AsnBlacklist
ModsJava

AsnBlacklist

by _Novit_ · on Modrinth

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.19.1–1.21.8 · BungeeCord⬇ Download for 1.19.1–1.21.8 · Velocity
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.
AsnBlacklist — screenshot 1AsnBlacklist — screenshot 2AsnBlacklist — screenshot 3

Plugin for Velocity and BungeeCord proxies that blocks user IPs based on their AutonomousSystemNumber (ASN). Protect your server against Layer 7 bot attacks with ASN-level filtering.

WARNING! This solution is quick fix does not guarantee complete protection against all bots, however, it correctly performs the intended functionality.

Localization

The localization files are located in the translations directory of the plugin and support the MiniMessage format. Localization files are generated automatically on the first plugin startup. The message shown when a user is blocked by ASN can be configured using the asnblacklist.message.kick key.

Example:

asnblacklist.message.kick=<lang:asnblacklist.prefix>Your ASN is blacklisted on this server.

Disconnect reason

If you need to display a message with line breaks, use the <newline> tag.

Example:

asnblacklist.message.kick=<lang:asnblacklist.prefix><newline>\
  Your ASN is blacklisted on this server.

Configuration

All duration formats must be specified using the standard ISO 8601 format, for example:


asn-blacklist

Blacklisted ASN. You can look up information or obtain the ASN number on website bgp.tools

Example:

asn-blacklist:
  - "AS35048" # Value with the AS prefix
  - "53667" # Value without the AS prefix

maxmind-database

MaxMind database settings.

  • api-key — MaxMind API key. The default configuration already includes a valid one. If necessary, you can use your own key generated on the MaxMind website.
  • file — Path to the local database file
  • ttl — Local database retention period (ISO 8601). After the retention period expires, the database will be downloaded again.

Example:

maxmind-database:
  api-key: "apiKey"
  file: "GeoLite2-ASN.mmdb"
  ttl: "P3D"

cache-ttl

Cache duration for verified ASNs (ISO 8601).

Example:

cache-ttl: "PT12H"

Commands

Commands

Support and Feedback

Please use the GitHub issue tracker to report bugs and submit suggestions.

License

The project is licensed under GNU GPL v3.0 license.


Описание на русском

Плагин для прокси Velocity и BungeeCord, предназначенный для блокировки IP адресов пользователей по AutonomousSystemNumber (ASN). Блокировка по ASN позволяет серверам защититься от ботов на уровне L7.

ВНИМАНИЕ! Данное решение является костылём не гарантирует полноценную защиту от всех ботов, однако, оно корректно выполняет задуманный функционал.

Локализация

Локализация находится в директории translations плагина, поддерживает формат MiniMessage. Файлы локализации создаются автоматически при первом запуске. Сообщение о блокировке пользователя по ASN настраивается с помощью ключа asnblacklist.message.kick.

Пример:

asnblacklist.message.kick=<lang:asnblacklist.prefix>Ваш ASN заблокирован на данном сервере.

Причина отключения

Если необходимо вывести сообщение с переносами строк, то необходимо использовать тег <newline>.

Пример:

asnblacklist.message.kick=<lang:asnblacklist.prefix><newline>\
  Ваш ASN заблокирован на данном сервере.

Конфигурация

Все форматы времени указываются в стандарте ISO 8601, например:


asn-blacklist

Список заблокированных ASN. Узнать информацию или получить номер ASN можно на сайте bgp.tools

Пример:

asn-blacklist:
  - "AS35048" # Значение с префиксом AS
  - "53667" # Значение без префикса AS

maxmind-database

Настройки базы MaxMind.

  • api-key — Ключ API MaxMind. Конфигурация по умолчанию уже содержит действующий. При необходимости можно использовать собственный ключ, сгенерированный на сайте MaxMind.
  • file — Путь к локальному файлу базы данных.
  • ttl — Срок хранения локальной базы данных (в ISO 8601). После истечения срока база данных будет загружена повторно.

Пример:

maxmind-database:
  api-key: "apiKey"
  file: "GeoLite2-ASN.mmdb"
  ttl: "P3D"

cache-ttl

Продолжительность кэша для проверенных ASN (в ISO 8601).

Пример:

cache-ttl: "PT12H"

Команды

Причина отключения

Поддержка и обратная связь

Используйте трекер проблем GitHub для сообщений об ошибках и предложений.

Лицензия

Проект распространяется под лицензией GNU GPL v3.0.

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.

Verified by MCModsHub

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

Explore more