Forum Discussion
Patti_G_72768
Nimbostratus
Nov 04, 2013iRule 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!!
1 Reply
- What_Lies_Bene1
Cirrostratus
Looks OK to me, you just need a space between > and 999999.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects