From 600b31ee4bb3a89ee17e28936d1e0bb685ad2e5e Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Thu, 11 Jul 2024 15:31:38 +0200 Subject: [PATCH] remove ip check, it's secure without aswell but more flexible --- application/models/User_model.php | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/application/models/User_model.php b/application/models/User_model.php index 4ffd5718f..4c1f0209b 100644 --- a/application/models/User_model.php +++ b/application/models/User_model.php @@ -677,23 +677,13 @@ class User_Model extends CI_Model { // Client Browser and OS $client_browser = base64_encode($_SERVER['HTTP_USER_AGENT']); - // Client IP - if (!empty($_SERVER['HTTP_CLIENT_IP'])) { - $cip = $_SERVER['HTTP_CLIENT_IP']; - } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { - $cip = $_SERVER['HTTP_X_FORWARDED_FOR']; - } else { - $cip = $_SERVER['REMOTE_ADDR']; - } - $client_ip = base64_encode($cip); - // Client language $client_lang = base64_encode($_SERVER['HTTP_ACCEPT_LANGUAGE']); $uid = base64_encode($user_id); // Create a long string out of the client data - $client_string = $client_browser . $client_ip . $client_lang . $uid; + $client_string = $client_browser . $client_lang . $uid; // Now we load the Encryption Lib if (!$this->load->is_loaded('encryption')) {