Forum Discussion
Kalpesh_48932
Feb 13, 2012Nimbostratus
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...
hooleylist
Feb 13, 2012Cirrostratus
Hi Kalpesh,
You can get the value of the referer header (or any other HTTP header) using [HTTP::header value Referer].
http://devcentral.f5.com/wiki/iRules.http__header.ashx
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.
Aaron
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects