Title: Evaluate HTTP_X_FORWARDED_FOR
Last modified: September 13, 2021

---

# Evaluate HTTP_X_FORWARDED_FOR

 *  Resolved [Galfom](https://wordpress.org/support/users/galfom/)
 * (@galfom)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/evaluate-http_x_forwarded_for/)
 * It would be great if `HTTP_X_FORWARDED_FOR` was evaluated and there was an option
   to specify the number of upstream proxies which are trusted (this is needed, 
   since users can add own spoofed/rubbish to that field but they obviously cannot
   influence trusted proxies in between).
    An approach like that is handy for todays
   common CDN + load balancers + custom infrastructures.
 * In our current case for example I can work around the limitation of this feature
   partly by using the custom `HTTP_CF_CONNECTING_IP` header. However, due to data
   protection/legal reasons we are not allowed to serve our site through CloudFlare
   for EU users. So those users are routed differently. I don’t know how exactly
   but they reach us without the CF header but in this case would have the same 
   trusted proxy count. Even better would be if you could also set a priority list
   of headers from which to take the IP.
 * Not sure if it is worth it for you to implement it. We probably will not stick
   long with this plugin and will never be “pro” users but I thought I leave it 
   as feedback in case you find it interesting 😉

Viewing 1 replies (of 1 total)

 *  Plugin Author [Mostafa Soufi](https://wordpress.org/support/users/mostafas1990/)
 * (@mostafas1990)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/evaluate-http_x_forwarded_for/#post-14893252)
 * Thanks for the feedback, but I believe this is a unique case, and implementing
   it may have some new side effects for most users.
 * Then we can implement it as a custom service or adding an ability to modify that
   by an `add_filter` if you wish.
    -  This reply was modified 4 years, 8 months ago by [Mostafa Soufi](https://wordpress.org/support/users/mostafas1990/).

Viewing 1 replies (of 1 total)

The topic ‘Evaluate HTTP_X_FORWARDED_FOR’ is closed to new replies.

 * ![](https://ps.w.org/wp-statistics/assets/icon.svg?rev=3081064)
 * [WP Statistics – Simple, privacy-friendly Google Analytics alternative](https://wordpress.org/plugins/wp-statistics/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-statistics/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-statistics/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-statistics/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-statistics/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-statistics/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Mostafa Soufi](https://wordpress.org/support/users/mostafas1990/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/evaluate-http_x_forwarded_for/#post-14893252)
 * Status: resolved