• Resolved benoithamet

    (@benoithamet)


    Hi there

    first thanks for this plugin; it is very helpful and works quite fine
    just noticed, I do not have anymore the IP of the client which has generated the 404 redirection log; the IP address field is now empty (in fact it is just displaying the – character) – looking at the wp_redirection_404 table, the IP field is empty too (I can provide a screenshot)
    I used to have the IP addresses listed

    Thanks

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author John Godley

    (@johnny5)

    Do you have the IP logging option enabled on the Redirection options page?

    Thread Starter benoithamet

    (@benoithamet)

    Yes I have it enabled (Full IP logging)
    I even turned it off and on again, no luck

    Plugin Author John Godley

    (@johnny5)

    Does your server allow access to the visitor’s IP address? Redirection uses REMOTE_ADDR, which is provided by PHP. If that value isn’t supplied by your server then it won’t have any IP address to store.

    https://secure.php.net/manual/en/reserved.variables.server.php

    Also, could you have any software on your server that may be altering the IP address. For example, for GDPR purposes?

    Thread Starter benoithamet

    (@benoithamet)

    Thanks John
    sorry for late reply
    there is no software which alter the IP however this has definitively something to do with the REMOTE_ADDR. This is published through a reverse proxy and this returns the original client IP to a different variable X-Forwarded-For (which is a standard one)
    May I suggest you to add a configuration settings to manage which variable REMOTE_ADDR or X-Forwarded-For to use (as many other plugin – especially the security ones)?
    Thanks

    Plugin Author John Godley

    (@johnny5)

    HTTP_X_FORWARDED_FOR is also used. Nothing has changed in the plugin in terms of handling IP addresses, other than adding options to mask it. Could anything have changed in the way your proxy passes IP information?

    Thread Starter benoithamet

    (@benoithamet)

    No, nothing has changed and I can confirm it is well providing the FORWARDED_FOR as I have a security plugin which blocked Google bot because the settings was reverted to REMOTE_ADDR, as soon as I set it back to X_FORWARDED_FOR all went good again

    Plugin Author John Godley

    (@johnny5)

    Ok. At this point the only thing to try is if you create a file on your site called test.php (or something like that). Inside this file enter the following PHP code:

    <?php print_r( $_SERVER )

    If you then access test.php through your browser and send me the details I may be able to help further.

    Thread Starter benoithamet

    (@benoithamet)

    Thanks
    how can I send it to you; don’t want to share this publicly, even if I have removed few sensitive information which clearly will not help anyway
    This is definitely occurring only for remote address; when trying to get a non existent file/page from the server (or client in the same network) I have the IP displayed

    Plugin Author John Godley

    (@johnny5)

    I can be contacted at https://redirection.me/contact/

    Thread Starter benoithamet

    (@benoithamet)

    Thanks John
    Seems it will not be needed; the IP suddenly went logged again
    Interestingly there has been no update on WordPress (the last update was with v 5.2 but the issue still persisted) or plugins, nor on the server
    Don’t know or understand what exactly happened

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘No IP addresses reported’ is closed to new replies.