Forum Discussion
SJoshi_230759
Nimbostratus
Jun 13, 2016irule for X-Forwarded-For
Hi All,
I got one request for tracking the real IP in server side. I have enabled X-Forwarded-For in http profile, but the user still facing some trouble. I checked few documents and got to know...
Yann_Desmarest
Cirrus
Jun 14, 2016Hi,
I recommend to remove possible existing X-Forwarded-For before inserting a new one :
when HTTP_REQUEST {
HTTP::header remove "X-Forwarded-For"
HTTP::header insert "X-Forwarded-For" [IP::client_addr]
}You can also include the code below in an existing irule :
HTTP::header remove "X-Forwarded-For"
HTTP::header insert "X-Forwarded-For" [IP::client_addr] Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects