Forum Discussion
MatoS
Apr 13, 2022Nimbostratus
HTTP redirect passing HTTP referer value
Hi, I have a request from a customer which I cannot resolve by myself. Customer wants to track http referers at their sharepoint site like this: When on site "xyz" and you click site "linkit" you w...
T-Trust
Apr 14, 2022Cirrostratus
Hi Matos,
I would like to share iRules below, I hope this will help you, Please find more information in this link (https://cloud-ttrust.com/f5-irules-check-http-referrer-and-redirect-traffic/)
when HTTP_REQUEST {
if { [string tolower [HTTP::header value Referer]] contains "linkit" } {
HTTP::redirect "https://sharepoint.aspx"
} elseif { [string tolower [HTTP::header value Referer]] contains "xyz" } {
HTTP::redirect "https://sharepoint.aspx"
} else {
pool pool1
}
}
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