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, 2014Further, the class commands work on data groups not lists, so your original iRule (slightly modified):
when HTTP_REQUEST {
if { not ( [class match [HTTP::method] equals good_http_methods] ) } {
reject
}
}
would query a string-based data group:
ltm data-group internal good_http_methods {
records {
GET { }
POST { }
}
type string
}
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