I’m using an iRule to protect some services. One thing I am filtering on is the method.
Below is my basic rule. However the problem is that when it does it’s thing it doesn’t appear
to be obeying the “noserver” argument. This rule:
when RULE_INIT {
set allowed_http_methods [list "GET" "POST" "Head"]
}
when HTTP_REQUEST {
set uri [string tolower [HTTP::uri]]
if { not ([matchclass [HTTP::method] equals $::allowed_http_methods]) } {
HTTP::respond 405 noserver
}
}