Forum Discussion
ASM Policy
Uri /abt/color/blue/*
So the /abt/color/blue/ will always be the same.
When I do the wild card, will it match something below. I have a back slash and additional wildcards.
For example: add /abt/color/blue/*/*
I would like for the wildcard example /abt/color/blue/* and it would match below.
example: /abt/color/blue/nevertheasme/neverthesamesdsdsds
- gersbahCirrostratus
Wait, since when does ASM support regex for URLs? Last I checked it was limited to a basic wildcard syntax.
- JRahmAdmin
Good call gersbah, in looking into the ASM-specific support for URL, regex is indeed not supported.
Brandon I removed my answer as a solution. That said, you might investigate using an iRule (shown below) or a local traffic policy to do the same...you could inspect the URL in the HTTP_REQUEST event and check your URL with regex, or simplify to just test your URL string with something like:if { ( [string tolower [HTTP::uri]] eq "/abt/color/blue" ) || ( [string tolower [HTTP::uri]] starts_with "/abt/color/blue/" ) } { # do allowed stuff here... else { # take corrective action here, like raise an ASM violation }
Note that if you have other approved URLs with starting patterns, you'd need to handle that logic as well, this is specific to this use case.
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