Forum Discussion
dariusz_19888
Nimbostratus
Aug 18, 2017IRULE - if { [HTTP::uri] matches_regex...
Hello,
I try build irule which stop SQL Injection - I have some problem with using regex.
Negation [^value] - https://support.f5.com/csp/article/K5917
"/((\%3D)|(=))[^\n]*((\%27)|(\')|(\-\-)|(\%...
Stanislas_Piro2
Cumulonimbus
Aug 18, 2017To optimize CPU, you may use switch with -regexp option.
https://devcentral.f5.com/wiki/iRules.switch.ashx
If you want to use if, use elseif for each next conditions. If a condition matches, your code check next conditions.
Do not use multiple times [HTTP::uri], store it in a variable: [HTTP::uri] execute a command extracting uri from HTTP request.
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