Forum Discussion
Bubbagump_12531
Oct 30, 2013Nimbostratus
I got that, I just don't know how to add the header to the rule. I tried
when HTTP_REQUEST {
foreach x [HTTP::header names] {
if { [string tolower $x] equals "x-forwarded-for" } {
HTTP::header remove $x
HTTP::header replace X-FORWARDED-FOR [IP::client_addr]
}
else
{ HTTP::header insert X-FORWARDED-FOR [IP::client_addr]}
}
}
But that tacked on seemingly a zillion headers