HTTP_X_FORWARDED_FOR
-
Any plans on adding in something like below, to get the actual IP address if site is behind a load balancer?
if ( isset( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) { $http_x_headers = explode( ',', $_SERVER['HTTP_X_FORWARDED_FOR'] ); $_SERVER['REMOTE_ADDR'] = $http_x_headers[0]; }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘HTTP_X_FORWARDED_FOR’ is closed to new replies.