Patti_G_72768
Nov 04, 2013Nimbostratus
iRule creation for a client detection - Need help
Hi all, I'm trying to write another iRule. I need the irule to detect if the method is a POST over HTTP 1.0 and the content-length is 1 million bytes or more. Here is the iRule that I wrote hoping that it covers the requirements.
when HTTP_REQUEST {
if {([HTTP::method] equals "POST") and ([HTTP::version] equals "1.0") and ([HTTP::header "Content-Length"] >999999)}
{
log local0. "Client detection."
reject
}
}
Thanks!!