WordPress.org

Ready to get started?Download WordPress

Forums

comments all appear from server IP address (5 posts)

  1. dherren
    Member
    Posted 9 years ago #

    Previously in Kitten's Spaminator, and now in Spam Karma, all comments appear to come from the same IP address as the server. If that IP get's blacklisted, then ALL comments get blacklisted.

    I don't think this is the way it should be working. What have I got configured incorrectly such that the server can't tell what the ip address of the commentor is?

  2. beau32
    Member
    Posted 9 years ago #

    same problem here. can anyone help with this issue?

  3. beau32
    Member
    Posted 9 years ago #

    it is to do with your server envriment variables. REMOTE_ADD is the one that normally holds the visiter ip. but some server uses HTTP_X_FORWARDED_FOR. that's why you are getting 127.0.0.1 for every single visiters.

    i could not figure out how to swap over in wordpress. i have fixed PHPBB2 on this issue

  4. dherren
    Member
    Posted 8 years ago #

    still no response or solution. Where do I look for the problem? PHP environment variables? SQL variables? WordPress?

  5. usws
    Member
    Posted 7 years ago #

    I found a code for to fix this problem but i don't know where to put it (it's from byethost, not sure if it works for other webhosts)

    $HTTP_SERVER_VARS['REMOTE_ADDR'] = $REMOTE_ADDR = $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_X_FORWARDED_FOR'];

    It should be put in a global WP file. Anyone got ideas?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.