Where to add the X-Forwarded-For code in wp-config.php

I had inserted this code in the wp-config.php

// Use X-Forwarded-For HTTP Header to Get Visitor's Real IP Address

if ( isset( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) {

$http_x_headers = explode( ',', $_SERVER['HTTP_X_FORWARDED_FOR'] );

$_SERVER['REMOTE_ADDR'] = $http_x_headers[0];


I put it before

/* That's all, stop editing! Happy blogging. */

But it seems is not working

The place will differ depending upon the theme. I use Hueman theme, but the developer has not answered messages in the last week. May be he is not able.
It would be from great help if somebody knows about this.

Thanks in advance

The page I need help with: [log in to see the link]

Source link