• Resolved Irene

    (@arlinaite)


    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]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Irene

    (@arlinaite)

    I have been researching other threads asking this same question to theme developers, and they answer ambiguously, as if this is not a theme issue.
    I will be grateful if somebody answers

    Thread Starter Irene

    (@arlinaite)

    The X-Forwarded-For HTTP worked best for me in the top of the wp-config file

    You should add the code top of the wp-config file

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Where to add the X-Forwarded-For code in wp-config.php’ is closed to new replies.