[200]Get the name of the remote host By Anonymous on 2003/03/26 09:35:20 Rate // Get the name of the remote host and log it String remoteHost = request.getRemoteHost ( ) ; log.info ( "Request from host: " + remoteHost ) ;
// Make sure the host is from one that you expect if ( remoteHost == null || !remoteHost.startsWith ( "127." ) ) { // Not the localhost, do something ...