• That’s pretty much it– all of the Comment logs are putting down my server’s IP address as the address of origin, which I know isn’t correct. Any suggestions on why this may be happening?
    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • I have the same problem, please help!

    Thanks!

    I found the solution:

    In wp-includes/comment-functions.php change:

    $commentdata[‘comment_author_IP’]= $_SERVER[‘REMOTE_ADDR’];

    with:

    $commentdata[‘comment_author_IP’] = getenv(HTTP_X_FORWARDED_FOR);

    Try it!
    ??

    Could i change somekind of global setting (or edit a global WP file) so that the whole site (other plugins etc.) does this instead of just the comments function?

    Read again the post above yours: it says clearly which file to edit!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘IP Logging for Comments is loogging my server’s I’ is closed to new replies.