We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

real IP in load balanced situation

Development and Programming

vodkafish's avatar
vodkafish
122 posts
15 years ago
vodkafish's avatar vodkafish

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

       
vodkafish's avatar
vodkafish
122 posts
15 years ago
vodkafish's avatar vodkafish

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)?

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.