Wednesday, November 28, 2012

WSO2 ESB Support of "X-Forwarded-For "

What is X-Forwarded-For

The X-Forwarded-For (XFFHTTP header field is a de facto standard for identifying the originating IP address of a client connecting to a web server through an HTTP proxy or load balancer. This is an HTTP request header which was introduced by the Squid caching proxy server's developers. An effort has been started at IETF for standardizing the Forwarded HTTP header.   [1]

Following will log the value of X-Forwarded-For HTTP header.



<log>
            <property name="xforward-header" expression="$trp:X-Forwarded-For"/>
 </log> 





[1] http://en.wikipedia.org/wiki/X-Forwarded-For

No comments:

Post a Comment

Using Zotero for academic writing