Note that any HTTP header value can be spoofed by a malicious client. And most HTTP user agents will not send a referer if they are coming from an HTTPS site.
I have to use HTTP_referrer in it…, i would like to have as http_referrer (which is used for that : http://en.wikipedia.org/wiki/HTTP\_referer) wth the original DNS calledoh, this is what you want, isn’t this?
anyway, i wonder even bigip is able to send http referer header in http response, will browser include it in next request?
An HTTP user agent will likely ignore a Referer header that the server sets in a response. The client is responsible for setting the Referer header based on the URL which generated the request. See RFC2616 for details on this (or the wikipedia link Nitass linked to).
I would like to call HTTP_refered header of one of the link to the another one after redirection…sorry i could not catch you. can you show us an example?
[root@ve1023:Active] config b virtual bar list
virtual bar {
snat automap
pool foo
destination 172.28.19.79:80
ip protocol 6
rules myrule
profiles {
http {}
tcp {}
}
}
[root@ve1023:Active] config b pool foo list
pool foo {
monitor all fake
members 200.200.200.101:80 {}
}
[root@ve1023:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
if {[active_members [LB::server pool]] < 1}{
HTTP::redirect "http://dns2.com/?origin=http://[HTTP::host][HTTP::uri]"
}
}
}
[root@ve1023:Active] config b pool foo|grep -i pool\ member
+-> POOL MEMBER foo/200.200.200.101:80 inactive,down
[root@ve1023:Active] config curl -I http://dns1.com/whatever
HTTP/1.0 302 Found
Location: http://dns2.com/?origin=http://dns1.com/whatever
Server: BigIP
Connection: Keep-Alive
Content-Length: 0