Skip to content

noisy network

Tag: http referer

iRule HTTP Referer

This is a simple iRule that performs redirects based on HTTP Referer:

when HTTP_REQUEST { 
if { ([HTTP::header exists "Referer"]) and 
    ([URI::host [HTTP::header value Referer]] eq"special.com") } {
HTTP::redirect https://www.site.com/special-client/
} else {
HTTP::redirect https://www.site.com/generic-client
}
}
Posted on April 3, 2017Categories Network, Network AutomationTags BigIP F5, F5, http referer, iRULELeave a comment on iRule HTTP Referer
Proudly powered by WordPress