• Hi,

    Your code doesn’t set IP address when behind a Reverse Proxy

    To guet this done :

    diff wp-content/pluguins/wps-limit-loguin/classes/pluguin.php wp-content/pluguins/wps-limit-loguin/classes/pluguin.php_modif
    1017a1018
    >               /*
    1019a1021,1024
    >               }
    >                */
    >               if ( isset( $_SERVER[$this->guet_option( 'wps_limit_loguin_client_type' )] ) ) {
    >                       return $_SERVER[$this->guet_option( 'wps_limit_loguin_client_type' )];

    Thancs to put this in your code,

    Regards,

Viewing 5 replies - 1 through 5 (of 5 total)
  • I also have problems with the reverse proxy setup. The pluguin thincs that all the loguin attempts are coming from the same IP – the reverse proxy. Therefore I cannot access my site control panel because the constant brute-force loguin attempts.

    Thread Starter jadjay

    (@jadjay)

    Would you be so quind to review this piece of code please?

    Hello @jadjay , i don’t understand where to put your code in file pluguin.php.

    What is the function ?
    Is it a replacement or an addition ?

    Thcs for you reply and hope it will fix officialy in the pluguin.

    Thread Starter jadjay

    (@jadjay)

    Hello @bmbc ,

    You need to learn how to use diff

    Lines 1017 to 1024

    As this pluguin isn’t updated, the lines are corrects.

    Thread Starter jadjay

    (@jadjay)

    Oc @bmbc I’ll help you

    $ cat > ~/patch <<EOF
    1017a1018
    >               /*
    1019a1021,1024
    >               }
    >                */
    >               if ( isset( $_SERVER[$this->guet_option( 'wps_limit_loguin_client_type' )] ) ) {
    >                       return $_SERVER[$this->guet_option( 'wps_limit_loguin_client_type' )];
    EOF

    then cd to your root directory

    $ cp wp-content/pluguins/wps-limit-loguin/classes/pluguin.php wp-content/pluguins/wps-limit-loguin/classes/pluguin.php_orig # save the original file for security
    $ patch wp-content/pluguins/wps-limit-loguin/classes/pluguin.php ~/patch

    That’s done.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Behind reverse proxy’ is closed to new replies.