WordPress.org

Ready to get started?Download WordPress

Forums

Modify Commenter IP Address (1 post)

  1. lexhair
    Member
    Posted 4 years ago #

    WordPress captures a commenter's IP from the variable $_SERVER['REMOTE_ADDR']. Since my site is behind a proxy, every commenter's IP resolves to the proxy host. How do I get WordPress to store $_SERVER["HTTP_X_FORWARDED_FOR"] instead of $_SERVER['REMOTE_ADDR']?

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 4 years ago by lexhair
  • This topic is not a support question
  • WordPress version: 2.9.2