Browser Cookie Support Required iRule Using Modernizr
Problem this snippet solves: Validates (using JavaScript) that the client browser supports cookies before continuing. It's a good idea to back up the Modernizr script libraries and store them locall...
Published Aug 02, 2016
Version 1.0Jer-O
Cirrus
Joined May 16, 2019
Jer-O
Cirrus
Joined May 16, 2019
Jer-O
Aug 02, 2016Cirrus
author: Jer O. devcentral.f5.com/users/175899
title: Browser Cookie Support Required iRule Using Modernizr
notes: PLACE THIS IRULE IN THE LAST POSITION ONLY (I suggest stating this in your iRule title)
when HTTP_REQUEST {
if { [HTTP::cookie count] equals 0 and not ( [HTTP::method] contains "OPTIONS" ) } {
HTTP::respond 200 content {
} noserver
}
else { return }
}