HostNameWhiteList 1.4

[Bungee or Bukkit] Redirect users who try to connect to your server using an unofficial domain

  1. EDawg878
    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
    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'
    Screenshots
    [​IMG]
    [​IMG]
    alekitopi, RobinMC, agusztin and 4 others like this.

Recent Updates

  1. Release 1.4
  2. HostNameWhiteList 1.3
  3. HostNameWhiteList v1.2

Recent Reviews

  1. Luky584
    Luky584
    5/5,
    Version: 1.4
    Super easy and awesome plugin!
    Works as expected.

    Newline support would be great.
  2. Froad
    Froad
    4/5,
    Version: 1.4
    Good plugin. Please add ignorecase. People type domain name with CAPS and it does no work.
  3. TIMORAD
    TIMORAD
    4/5,
    Version: 1.4
    If you add per player subdomain option it will be fantastic plugin! Gooooood plugin!
  4. HaynoGames
    HaynoGames
    4/5,
    Version: 1.4
    I really needed this plugin and it is just what I was looking for, however, you add the config option to disable the MOTD message as I have my MOTD message already saying the new IP.
  5. itismejoey
    itismejoey
    5/5,
    Version: 1.4
    Awesome plugin!! Could I request a feature to add a new line (\n)?
  6. Tsetsi
    Tsetsi
    4/5,
    Version: 1.4
    Hey man why i cant edit messages ? this is bad
    1. EDawg878
      Author's Response
      I'm assuming you are talking about the Bukkit version?
  7. teledong
    teledong
    4/5,
    Version: 1.4
    I Think Bukkit version is broken.
    PlayerLoginEvent.getHostName() Function is showing player's client IP address, so anybody can't connect server.
    1. EDawg878
      Author's Response
      Yes, the Bukkit version is currently broken. Although I'm was pretty sure only the MOTD part was broken.
  8. Emerald_Craft
    Emerald_Craft
    5/5,
    Version: 1.2
    Very good if you need to change your domain!!!
    1. EDawg878
      Author's Response
      Good point, never thought of that. I'll add it to the description
  9. Siceth
    Siceth
    5/5,
    Version: 1.1
    Astounding! Sounded like a useless plugin at first, but I can guarantee it is anything but. I am getting some errors with the new Bungee (#1012+), probably because of the 1.8 protocol. Either way, I am definitely sticking with this plugin as long as I'm hosting a proxy.
    1. EDawg878
      Author's Response
      Just released an update, let me know if you are still getting errors.
  10. GigaTechFr
    GigaTechFr
    5/5,
    Version: 1.1
    Good plugin :)