For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

Kalpesh_48932's avatar
Kalpesh_48932
Icon for Nimbostratus rankNimbostratus
Feb 13, 2012

Http_referrer in iRule

Can anyone tell me how to use HTTP_Referrer in iRule...?

 

 

I have my current rule is

 

 

when HTTP_REQUEST { if {[active_members [LB:erver pool]] < 1} { HTTP::redirect "http://dev-sorry-webarch.xyz.com" } }

 

 

and is working fine for re-direction..but I need to use HTTP_Referrer in it..

13 Replies

  • when HTTP_REQUEST {
       if {[active_members [LB::server pool]] < 1}{
          HTTP::redirect "http://dns2.com/?origin=http://[HTTP::host][HTTP::uri]"
       }
    }