Prefer get_browser_real_ip() over REMOTE_ADDR

This commit is contained in:
slawkens
2024-11-12 20:59:51 +01:00
parent a4a2480995
commit 941846605c
5 changed files with 8 additions and 8 deletions

View File

@@ -37,7 +37,7 @@ class Visitors
$this->sessionTime = $sessionTime;
$this->cleanVisitors();
$ip = $_SERVER['REMOTE_ADDR'];
$ip = get_browser_real_ip();
$userAgentShortened = substr($_SERVER['HTTP_USER_AGENT'] ?? 'unknown', 0, 255);
if($this->visitorExists($ip))