Forum Discussion
fubarSUSHI
Altocumulus
Mar 11, 2014irule help: Limit HTTP Methods to ONLY GET and POST and reject everything else?
Im still trying to figure out the iRule nirvana but I am requesting the help of all y'alls to guide me in the right direction.
=================
when RULE_INIT {
set good_http_methods [list “GET...
Kevin_Stewart
Employee
Mar 11, 2014You could significantly simplify the positive model like this:
when HTTP_REQUEST {
if { ( [HTTP::method] equals "GET" ) or ( [HTTP::method] equals "POST" ) } {
return
} else {
reject
}
}
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