Forum Discussion
SJoshi_230759
Jun 14, 2016Nimbostratus
irule 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
Jun 14, 2016Cirrus
Hi,
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]
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