Modify Commenter IP Address
-
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’]?
- The topic ‘Modify Commenter IP Address’ is closed to new replies.