• Resolved Davide

    (@bestfrenchmortgage)


    I’m having problems resolving IP address detection (I have worked through https://wpcerber.com/wordpress-ip-address-detection/)

    The site runs through WP-Rocket caching and Cloudflare. The site is behind recverse proxy option is ticked.

    Your IP address as reported by Cerber is the Cloudflare IP.

    What is my IP address reports my actual IP address.

    TOOLS>Diagnostic>Server Info tab reports
    [HTTP_CF_CONNECTING_IP] => MY ACTUAL ADDRESS
    [HTTP_X_FORWARDED_FOR] => Cloudflare address
    [REMOTE_ADDR] => MY ACTUAL ADDRESS
    [SERVER_ADDR] => an address in the range 10.168.0.0 – 10.168.255.255

    There is no [HTTP_X_REAL_IP] => Is this an example text string or what?

    What is the key referred to?

    From your step by step instructions I can’t work out what the string should be to add to the wp-config.php file as:

    define(‘CERBER_IP_KEY’, ‘HTTP_X_REAL_IP’ );

    I guess I just don’t have the requisite background knowledge to make sense of the instructions. Can you explain more simply please, David

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author gioni

    (@gioni)

    Hi!

    Based on your environment you don’t need to check My site is behind a reverse proxy because the plugin takes addresses from [REMOTE_ADDR].

    Alternatively, you can add to wp-config.php the following definition

    define("CERBER_IP_KEY", "HTTP_CF_CONNECTING_IP" );

    Thread Starter Davide

    (@bestfrenchmortgage)

    Thanks Gioni, looks like the best advice is to uncheck the reverse IP box. Many thanks, Davide

    • This reply was modified 7 years ago by Davide. Reason: tick as resolved
    Plugin Author gioni

    (@gioni)

    Cheers! If you come across some issue, install the latest development release: https://wpcerber.com/development-version-5-7-2/

    Thread Starter Davide

    (@bestfrenchmortgage)

    Thanks Gioni, I have done this – you guys work fast the development version I downloaded within minutes of your update has already gone to 5.7.3!!!! Amazing.

    • This reply was modified 7 years ago by Davide. Reason: miss typing
    Plugin Author gioni

    (@gioni)

    If something goes wrong, we have to act fast. It’s all about taking responsibility and reputation.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can’t solve incorrect IP address detection’ is closed to new replies.