Forum Discussion
Help with pattern match irule required
Yes read some of them but still cant get to work fully work, the bad request bit usually. I want to not pattern match anything internal just forward, for external I want to pattern match but if external client match is wrong then a bad request
when HTTP_REQUEST { if { [class match [IP::client_addr] equals private_net] } { Internal IP match - do nothing } else { switch -glob -- [string tolower [HTTP::uri]] { "/getimage.aspx?vid=&usehttp=&cat=&class=&size=&resize=&dpi=&quality=&type=&width=&height&id=" - "/getimage.aspx?vid=&usehttp=&cat=&shade=&background=&colour=" { Looks good. Do nothing } default { HTTP::respond 400 } }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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