Where to add the X-Forwarded-For code
-
Hi,
I have to insert this code in the wp-config
// Use X-Forwarded-For HTTP Header to Get Visitor's Real IP Address if ( isset( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) { $http_x_headers = explode( ',', $_SERVER['HTTP_X_FORWARDED_FOR'] ); $_SERVER['REMOTE_ADDR'] = $http_x_headers[0]; }
I put it before
/* That's all, stop editing! Happy blogging. */
But it seems is not working
Where to add the X-Forwarded-For code in the wp-config.php file?
This will differ depending upon your theme. If you are unsure, please contact your theme’s owners.
Thanks in advance
The page I need help with: [log in to see the link]
- The topic ‘Where to add the X-Forwarded-For code’ is closed to new replies.