Forum Discussion
Snl
Cirrostratus
Oct 18, 2018Irule help
Folks
I have requirement to the request start with /abc/ directory and contains the parameter si or di
the value of this parameter should not exceed more than 50 characters , if exceed should dr...
Snl
Cirrostratus
Oct 18, 2018done some research found below , how i can call the parameters in this particular those 2 value
when RULE_INIT {
set DEBUG 1
set sec_http_max_post_data_length 50
}
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] equals "/abc/" and [HTTP::method] equals "POST" } {
set len [HTTP::header "Content-Length"]
if { [expr $len > $::sec_http_max_post_data_length] } {
log local0. " SEC-ALERT: POST Length: uri=[HTTP::uri]; len=$len; max_len=$::sec_http_max_post_data_length"
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