class IllegalURItargetDetector {

	public boolean isIllegal(URI uri) {
		if (uri == null) {
			return true;
		}
		String host = uri.getHost();

		if (host == null) {
			return true;
		}
		/* loop back variants are all not a legal target */
		return loopbackfinder.isLoopback(host);
	}

}