Forum Discussion
scott_126211
Nimbostratus
Sep 10, 2013iRule to drop HTTP GET requests that don't have zero content length header
I'm new to iRules, and hoping to get some assistance. I've searched here for examples and haven't come across anything. I'm looking to implement an iRule that would only allow GET requests that hav...
scott_126211
Nimbostratus
Sep 12, 2013Thanks Kevin!!!
So does this look like the right way to implement it?
when HTTP_REQUEST { if { ( [HTTP::method] equals "GET" ) and ( [HTTP::header exists Content-Length] ) and ( [HTTP::header Content-Length] == 0 ) } or { not ( [HTTP::header exists Content-Length] ) } do nothing } else { reject } }
scott_126211
Nimbostratus
Sep 12, 2013allow.
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