I’m not getting the real IP of any users/commenters.
I know I need to change $_SERVER[‘REMOTE_ADDR’] to $_SERVER[‘HTTP_X_FORWARDED_FOR’] but I don’t know where.
I did it for 1.x, but I cannot remember where I made the change. If I could, maybe I could figure out where it’d be in 2.x.
Moved to Development and Programming by Moderator
Ok, found my problem: for some reason HTTP_X_FORWADED_FOR has disappeared, but still have HTTP_X_CLUSTER_CLIENT_IP
What’s the best way to set this? I don’t want to update codeigniter/system/core/input.php every update. Put it in the config file? Make a hook (which hook location to use)?
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.