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, 2013That's a good question....is "not exist" a valid qualifier? so...would this work?
when HTTP_REQUEST { if { ( [HTTP::method] equals "GET" ) and ((( [HTTP::header exists Content-Length] ) and ( [HTTP::header Content-Length] == 0 )) or ( [HTTP::header not exist Content-Length] )) } { do nothing } else { reject } }
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