class NetUtils {

  public static boolean isLocalHost(String host) {
    return host != null
            && (LOCAL_IP_PATTERN.matcher(host).matches()
            || host.equalsIgnoreCase("localhost"));
  }

}