Forum Discussion
mikey_webb
Cirrus
Jan 07, 2015Help with pattern match irule required
Need help with an irule to drop the request if pattern is not matched. The link and pattern is always as below whereby only the values will change....such as vid, height, quality values etc
htt...
mikey_webb
Cirrus
Jan 09, 2015when HTTP_REQUEST { set pattern1 "/getimage.aspx?vid=&usehttp=&cat=&class=&size=&resize=&dpi=&quality=&type=&width=&height=&id=" set pattern2 "/getimage.aspx?vid=&usehttp=&cat=&shade=&background=&colour="
if { not ([string match "$pattern1" or "$pattern2" [string tolower [HTTP::uri]]]) } {
HTTP::respond 400
}
}
it does not like the OR
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