Note
As of 1.4, this is a universal plugin meaning you can use it with either BungeeCord or Bukkit.
To put it simply, you can place the jar in the BungeeCord plugins folder or the Bukkit plugins folder.
Description
This plugin creates a whitelist of host names that can connect to your servers. This plugin is useful to block other domains (i.e. unofficial domains that you don't have ownership of) that are linking to your server while also providing a helpful message to the end user that redirects them to the official address. This plugin may also be useful if you have changed your server IP and want to redirect your users to a new one.
Source Code
Github
Commands
Aliases: hostnamewhitelist, hnw
/hnw reload
- Reloads configuration
- permission: hostnamewhitelist.admin
Configuration
Screenshots
![[IMG]](//proxy.spigotmc.org/edb20fa7b996426704afe687d714d4c1cd84e8cd?url=http%3A%2F%2Fi.imgur.com%2FalDV7wO.png)
![[IMG]](//proxy.spigotmc.org/6045a95ba06b1e2239b8257e3d5a0d94195d99a8?url=http%3A%2F%2Fi.imgur.com%2F6w1C0zH.png%3F1)
As of 1.4, this is a universal plugin meaning you can use it with either BungeeCord or Bukkit.
To put it simply, you can place the jar in the BungeeCord plugins folder or the Bukkit plugins folder.
Description
This plugin creates a whitelist of host names that can connect to your servers. This plugin is useful to block other domains (i.e. unofficial domains that you don't have ownership of) that are linking to your server while also providing a helpful message to the end user that redirects them to the official address. This plugin may also be useful if you have changed your server IP and want to redirect your users to a new one.
Source Code
Github
Commands
Aliases: hostnamewhitelist, hnw
/hnw reload
- Reloads configuration
- permission: hostnamewhitelist.admin
Configuration
Code (Text):
# Message that is displayed on the MOTD or when a player tries to connect
warning: '&cYou entered the wrong IP address, please use &3example.com &c instead'
# Block legacy players since we can't check which hostname they are connecting from
block-legacy: true
# Ignore hostname capitalization
ignore-case: true
# Players can only connect through the following host names
allowed-host-names:
- 'localhost'
warning: '&cYou entered the wrong IP address, please use &3example.com &c instead'
# Block legacy players since we can't check which hostname they are connecting from
block-legacy: true
# Ignore hostname capitalization
ignore-case: true
# Players can only connect through the following host names
allowed-host-names:
- 'localhost'
![[IMG]](http://proxy.spigotmc.org/edb20fa7b996426704afe687d714d4c1cd84e8cd?url=http%3A%2F%2Fi.imgur.com%2FalDV7wO.png)
![[IMG]](http://proxy.spigotmc.org/6045a95ba06b1e2239b8257e3d5a0d94195d99a8?url=http%3A%2F%2Fi.imgur.com%2F6w1C0zH.png%3F1)
Quick facts
- Edition: Minecraft Java
- File type: .jar
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
HostNameWhiteList is a free Minecraft Java mod. Downloaded 2,715 times (via Spigot). Download it and open it directly in the game.