Forum Discussion
Kalpesh_48932
Nimbostratus
Feb 13, 2012Http_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...
hoolio
Cirrostratus
Feb 13, 2012Hi 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
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
