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...
Kevin_Stewart
Employee
Sep 10, 2013Are you looking for requests that have any content length (like a POST):
when HTTP_REQUEST {
if { [HTTP::header exists Content-Length] } {
drop
}
}
Or something that specifically has a content length of zero:
when HTTP_REQUEST {
if { ( [HTTP::header exists Content-Length] ) and ( [HTTP::header Content-Length] == 0 ) } {
drop
}
}
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