Forum Discussion
Fluidetom_12222
Jan 13, 2014Cirrus
OK for some reason the iRule is not properly displayed, so here's a stripped down version without the HTML code
when HTTP_REQUEST {
if { not ( [HTTP::cookie exists WRONGBROWSER] ) AND [class match [HTTP::header "User-Agent"] contains "Mozilla"]} { set expires [clock format [clock seconds] -format "%A, %d-%b-%Y 20:00:00"]
HTTP::respond 200 content "
HTML
click here to continue (with a link to https://whatever_he-was_trying_access
/HTML
" "Set-Cookie" "WRONGBROWSER=1; path=/; expires=$expires"
}
}