/** * @return string */ public function getClientIp() { $clientIp = $this->_request->getClientIp(); if (strpos($clientIp, ',') !== false) { // more than one ip given (due to proxy) -> normalize ip list($firstIp, ) = explode(',', (string) $clientIp, 2); $clientIp = trim($firstIp); } return $clientIp; }