Forum Discussion
insert a HTTP: header into a HTTP:redirect
I am fairly new to writing iRules and I am not even sure if this is possible. My company is trying to have me write an iRule that will redirect users who are using less then 128 bit encryption on SSL ciphers to redirect them to a information page. I need to somehow come up with a way to insert a HTTP::header so that after they see the informatiional page, that they will be redirected back to the same virtual server that they were just at, but I have to see if a HTTP:: Header "LOW_CIPHER" = "TRUE" then to let them in without the redirect to give the users the time to update there browsers without not giving them access to the website in the mean time. I have the redirect down pat, but I am stumped at how to insert the "LOW_CIPHER" header and set the value to "TRUE" in a HTTP::redirect, if even possible.
Any help I could get on this would be greatly appreciated.
- Brian_Van_StoneNimbostratusWhen you redirect a client to another page, I don't think there is a way to ask them to then send a specific header in the request they make to that page. What you should probably do instead is insert a cookie that indicates they have viewed the information page, and allow them to the main site whenever that cookie is present. If they decide to clear their cookies or browse in a "private" mode, they will see the information page multiple times, but I don't really see any good way around that. I think a cookie is the way to go.
The advantage of the cookie is it will also allow you to set an expiration. This means that after someone views the informational page, if they do not update their browser in a day/week/month they will see the page again, and so on until they update.
Recent Discussions
Related Content
* 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