mirror of
https://github.com/slawkens/myaac.git
synced 2025-12-04 16:46:50 +01:00
Prefer get_browser_real_ip() over REMOTE_ADDR
This commit is contained in:
@@ -33,7 +33,7 @@ class Visitors
|
||||
$this->sessionTime = $sessionTime;
|
||||
$this->cleanVisitors();
|
||||
|
||||
$ip = $_SERVER['REMOTE_ADDR'];
|
||||
$ip = get_browser_real_ip();
|
||||
if($this->visitorExists($ip))
|
||||
$this->updateVisitor($ip, $_SERVER['REQUEST_URI']);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user