IP logging

Status
Not open for further replies.

rodrigu5

Member
Messages
60
Reaction score
0
Points
6
For years I've had a CGI pagecounter that logs the IP address of the visitor to avoid duplicate entries. It relies on the $ENV{REMOTE_ADDR} variable for it, but since my recent change to Starka it only logs Starka's IP address (69.175.120.122) and not the visitors IP.

Can you verify what's happening? I'm user RODRIGU5.

Thanks
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
They are using a load balancing reverse proxy which messes up the variables.
Try using either of:

$ENV{ 'HTTP_X_FORWARDED_FOR' }
$ENV{ 'HTTP_X_REAL_IP' }
 
Last edited:

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
If further assistance is required please re-open this thread or create a new one. You can re-open this thread by clicking on the "Administrative" text at the top of the original post.
 
Status
Not open for further replies.
Top