The MU forums have moved to WordPress.org

source IP of comments - how does wordpress determine this and store this (1 post)

  1. joegoar
    Member
    Posted 15 years ago #

    we're using mu version 2.6.5
    sorry if this is a repost. I posted yesterday but think I put it on wordpress forum vs mu wordpress forum.

    Our site leverages (akamai) caching, so the source IP for our comments is not the true client IP, it appears that recurring edge/cache servers' IP are showing. This is causing an issue for our editors in terms of using akismet to manage spam.
    I found that akamai adds a true-client-IP header to its packets. Now I need to understand the wordpress side of how it pulls the source IP and (I'm guessing) stores it into the DB?
    is the write to the db in wp-comments-post.php somewhere?
    there must be a data structure in there that I'm missing.
    I see in xmlrpc.php where the get_results function pulls (comment_author_IP) from the comments table.
    However, I'm not able to find/follow how the IP gets identified and written to the DB.

    Can anyone point me in the right direction here.
    Thanks a million, Joe

About this Topic

  • Started 15 years ago by joegoar