{"id":82233,"date":"2026-06-04T20:19:11","date_gmt":"2026-06-04T17:19:11","guid":{"rendered":"https:\/\/vpesports.com\/minecraft\/mods\/hostname-ip-whitelist\/"},"modified":"2026-06-04T20:19:11","modified_gmt":"2026-06-04T17:19:11","slug":"hostname-ip-whitelist","status":"publish","type":"mod","link":"https:\/\/vpesports.com\/minecraft\/mods\/hostname-ip-whitelist\/","title":{"rendered":"Hostname IP Whitelist"},"content":{"rendered":"<p># Hostname Whitelist<\/p>\n<p>A simple yet powerful Velocity proxy plugin that restricts server access to<br \/>\nspecific hostnames or IP addresses. This is useful for preventing direct IP<br \/>\nconnections or enforcing the use of specific domains (e.g., `play.example.com`).<\/p>\n<p>## Why is this important?<\/p>\n<p>Malicious actors can create their own BungeeCord or Velocity proxy and forward<br \/>\nplayers to your server without their knowledge. This allows them to perform a<br \/>\n**Man-in-the-Middle (MitM) attack**, enabling them to:<\/p>\n<p>&#8211; Log all commands (including `\/login` and `\/register` passwords on non-premium<br \/>\n  servers).<br \/>\n&#8211; Hijack player sessions (playing as the user).<br \/>\n&#8211; Execute commands on behalf of the victim.<\/p>\n<p>By enforcing a hostname whitelist, you ensure that players can ONLY connect via<br \/>\nyour official domain (e.g., `uwu.org.ua`), effectively blocking these malicious<br \/>\nredirects.<\/p>\n<p>Similar security systems are used by major servers like **DonutSMP**, **2b2t**,<br \/>\nand **Hypixel** to protect their players.<\/p>\n<p>## Features<\/p>\n<p>&#8211; **Hostname Whitelisting**: Only allow connections from specified domains or<br \/>\n  IPs.<br \/>\n&#8211; **Wildcard Support**: Easily whitelist subdomains (e.g., `*.uwu.org.ua`) or IP<br \/>\n  ranges (e.g., `192.168.1.*`).<br \/>\n&#8211; **Customizable Messages**: Configure the kick message shown to blocked<br \/>\n  players.<br \/>\n&#8211; **Custom MOTD**: Display a specific MOTD for players pinging with an invalid<br \/>\n  hostname.<br \/>\n&#8211; **Discord Webhook Logging**: Optionally log allowed and blocked connections to<br \/>\n  a Discord channel.<\/p>\n<p>## Installation<\/p>\n<p>1. Download the latest release of the plugin.<br \/>\n2. Place the `.jar` file into your Velocity server&#8217;s `plugins` folder.<br \/>\n3. Restart your proxy server.<\/p>\n<p>## Configuration<\/p>\n<p>The plugin creates a configuration folder at `plugins\/hostname-whitelist\/`<br \/>\ncontaining two files: `config.yml` and `hostnames.txt`.<\/p>\n<p>### config.yml<\/p>\n<p>This file handles the general plugin settings.<\/p>\n<p>&#8220;`yaml<br \/>\n# Hostname Whitelist Configuration<\/p>\n<p># Message shown when player connects with invalid hostname<br \/>\n# Placeholders: {hostname}<br \/>\nkick-message: &#8220;&#038;cUnknown Server: {hostname}nn&#038;7Please make sure you are using the correct IP&#8221;<\/p>\n<p># MOTD shown for invalid hostname pings<br \/>\ninvalid-motd: &#8220;&#038;cInvalid Hostname. Please use the correct IP address.&#8221;<\/p>\n<p># Discord Webhook URL for logging connections<br \/>\n# Leave empty or set to &#8220;YOUR_WEBHOOK_URL_HERE&#8221; to disable<br \/>\ndiscord-webhook: &#8220;YOUR_WEBHOOK_URL_HERE&#8221;<\/p>\n<p># Whether to log allowed connections (true\/false)<br \/>\nlog-allowed-connections: false<\/p>\n<p># Whether to log denied connections (true\/false)<br \/>\nlog-denied-connections: false<br \/>\n&#8220;`<\/p>\n<p>### hostnames.txt<\/p>\n<p>This file is where you define which hostnames or IPs are allowed. You can add<br \/>\none entry per line.<\/p>\n<p>**Examples:**<\/p>\n<p>&#8220;`text<br \/>\n# Allow all subdomains of uwu.org.ua<br \/>\n*.uwu.org.ua<\/p>\n<p># Allow exact hostname match<br \/>\nuwu.org.ua<\/p>\n<p># Allow specific IP address<br \/>\n192.168.1.1<\/p>\n<p># Allow IP range 192.168.1.0-255<br \/>\n192.168.1.*<br \/>\n&#8220;`<\/p>\n<p>## Discord Webhook<\/p>\n<p>To use the Discord logging feature:<\/p>\n<p>1. Create a Webhook in your Discord server (Server Settings -> Integrations -><br \/>\n   Webhooks).<br \/>\n2. Copy the Webhook URL.<br \/>\n3. Paste it into the `discord-webhook` field in `config.yml`.<br \/>\n4. Enable `log-allowed-connections` or `log-denied-connections` as desired.<\/p>\n<p># License<\/p>\n<p>This project is licensed under the Mozilla Public License 2.0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A simple yet powerful Velocity proxy plugin that restricts server access to specific hostnames or IP addresses. This is useful for preventing direct IP connections or enforcing the use of specific domains (e.g., `uwu.org.ua`).<\/p>\n","protected":false},"featured_media":0,"template":"","meta":{"_minecraft_slug":"hostname-ip-whitelist","_minecraft_project_id":"SNx1hIEk","_minecraft_author":"9gv","_minecraft_license":"MPL-2.0","_minecraft_downloads":47,"_minecraft_follows":2,"_minecraft_client_side":"unsupported","_minecraft_server_side":"required","_minecraft_storage_type":"zip","_minecraft_archive_name":"hostname-ip-whitelist.zip","_minecraft_size_bytes":11370,"_minecraft_version_count":1,"_minecraft_updated_at":"2026-05-15T21:17:00.303432Z","_minecraft_date_created":"2026-01-13T21:56:53.895442Z","_minecraft_date_modified":"2025-12-31T06:16:32.418468Z","_minecraft_project_url":"https:\/\/modrinth.com\/mod\/hostname-ip-whitelist","_minecraft_icon_attachment_id":0,"_minecraft_imported_at":"2026-06-04T17:19:12+00:00","_minecraft_import_hash":"4c93f76abab71ad7286306005aabf5bd","_minecraft_versions":"","_minecraft_links":"","_minecraft_gallery":"","_minecraft_api_metadata":""},"mod_category":[126,123,92,985],"mod_loader":[986],"minecraft_version":[41],"class_list":["post-82233","mod","type-mod","status-publish","hentry","mod_category-management","mod_category-technology","mod_category-utility","mod_category-velocity","mod_loader-velocity","minecraft_version-1-21-11"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Hostname IP Whitelist - 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\/hostname-ip-whitelist\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Hostname IP Whitelist - Minecraft\" \/>\n<meta property=\"og:description\" content=\"A simple yet powerful Velocity proxy plugin that restricts server access to specific hostnames or IP addresses. This is useful for preventing direct IP connections or enforcing the use of specific domains (e.g., `uwu.org.ua`).\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vpesports.com\/minecraft\/mods\/hostname-ip-whitelist\/\" \/>\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\\\/hostname-ip-whitelist\\\/\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/hostname-ip-whitelist\\\/\",\"name\":\"Hostname IP Whitelist - Minecraft\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\"},\"datePublished\":\"2026-06-04T17:19:11+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/hostname-ip-whitelist\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/hostname-ip-whitelist\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/hostname-ip-whitelist\\\/#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\":\"Hostname IP Whitelist\"}]},{\"@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":"Hostname IP Whitelist - 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\/hostname-ip-whitelist\/","og_locale":"en_US","og_type":"article","og_title":"Hostname IP Whitelist - Minecraft","og_description":"A simple yet powerful Velocity proxy plugin that restricts server access to specific hostnames or IP addresses. This is useful for preventing direct IP connections or enforcing the use of specific domains (e.g., `uwu.org.ua`).","og_url":"https:\/\/vpesports.com\/minecraft\/mods\/hostname-ip-whitelist\/","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\/hostname-ip-whitelist\/","url":"https:\/\/vpesports.com\/minecraft\/mods\/hostname-ip-whitelist\/","name":"Hostname IP Whitelist - Minecraft","isPartOf":{"@id":"https:\/\/vpesports.com\/minecraft\/#website"},"datePublished":"2026-06-04T17:19:11+00:00","breadcrumb":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/hostname-ip-whitelist\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vpesports.com\/minecraft\/mods\/hostname-ip-whitelist\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/vpesports.com\/minecraft\/mods\/hostname-ip-whitelist\/#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":"Hostname IP Whitelist"}]},{"@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\/82233","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:attachment":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media?parent=82233"}],"wp:term":[{"taxonomy":"mod_category","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_category?post=82233"},{"taxonomy":"mod_loader","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_loader?post=82233"},{"taxonomy":"minecraft_version","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/minecraft_version?post=82233"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}