Forum Discussion
kridsana
Cirrocumulus
Jun 16, 2021iRule to secure flag on specific URL (Multiple URL in one VS)
Hi We know that F5 can add secure attr in cookie from irule HTTP_RESPONSE <https://support.f5.com/csp/article/K11324> but this is apply to all website in virtual server!! We have many U...
spalande
Nacreous
Jun 16, 2021You may try below.
when HTTP_REQUEST {
set sflag 1
if { [class match [HTTP::host] equals secure-flag-domains] } { set sflag 0 }
return
}
when HTTP_RESPONSE {
if { $sflag == 0} {
foreach mycookie [HTTP::cookie names] {
HTTP::cookie secure $mycookie enable
}
}
}
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