danielng_19608
Apr 28, 2009Nimbostratus
Customizing X-Forwarded-For certain websites
Hi all,
currently my setup is to enable X-Forwarded for all traffic that is hitting the Internet.
What i would like to do is to NOT enable X-Forwarded when accessing certain websites.
My idea of the iRule will be something like this:
==================================================================================
when CLIENT_ACCEPTED {
if { [matchclass [IP::client_addr] equals $::trustedAddresses] }
{
forward
}
else {
HTTP::header insert X-Forwarded-For [IP::remote_addr]
forward
}
Can anyone tell me if this solution will work?
Thanks!!