Security Irules 101: You can't always get what you want.. or can you?
Introduction
iRules are a powerful tool in the F5 administrators arsenal. They allow administrators to adapt and customize the F5 to their needs. They provide extensive power for security enginee...
Published Nov 08, 2014
Version 1.0jwham20
Nimbostratus
Joined November 08, 2011
jwham20
Nimbostratus
Joined November 08, 2011
jwham20
Nov 09, 2012Nimbostratus
@Chris
Indeed! The data groups listed above are just simple examples. To include the OPTIONS method, I'd do either ( Beware,off the cuff code below:)
if { string tolower [HTTP::method][ contains "OPTIONS" } {
log local0. " So, you want to see my options eh? How bout no?"
HTTP::respond 405 content [subst $static::Servers]
}
or:
when HTTP_RESPONSE {
if {HTTP::header exists Allows} {
HTTP::header replace Allows "PUT, POST, OPTIONS"
}
Could also maybe have the data group list build the OPTIONS list into a variable and send that as the replacement header.
Just an idea.
-joshm