RSS Feed/News Xenforo is logging all user's IP addresses as the load balancer's private IP address

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
30,435
Points
823

Reputation:

Apache Version: Apache/2.4.38 (Ubuntu)
PHP Version: 7.2.15

I'm hosting the website on an AWS server behind a load balancer. The website is logging every user's IP address as the private IP address of the load balancer instead of the user's public IP address.

964347d52c.png


In admin.php?tools/phpinfo on my site, the $_SERVER['REMOTE_ADDR'] variable is showing up as 172.30.0.200
The $_SERVER['HTTP_X_FORWARDED_FOR'] variable has my local...

Read more

Continue reading...
 
Status
Not open for further replies.
Top