Forum Discussion
shlomi_133455
Nimbostratus
Jul 30, 2014Referrers from https to http
Hello,
I have an issue regarding referrers.
we are working with a company that want to link to one of our websites, the problem start when they want to link from their site that works with https to o...
Kevin_Stewart
Employee
Jul 30, 2014You may find that HTTP Referer header passing inside SSL is a browser-dependent behavior, but otherwise you could potentially use a cookie from your HTTPS VIP to your HTTP VIP:
when HTTP_REQUEST {
if { [HTTP::header exists Referer] } {
HTTP::respond 302 Location "http://mysite.domain.com" "Set-Cookie" "refer: [HTTP::header Referer]; path=/;"
}
}
This iRule, placed on the HTTPS VIP, will redirect the user to the HTTP VIP and send a cookie (refer) with the contents of the Referer header. One important caveat is that the HTTPS and HTTP VIP need to have the same hostname (ie. https://www.domain.com and http://www.domain.com). You can technically use a domain cookie if they're not, but it'd be easier if they are.
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