For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

rschwarz79's avatar
May 12, 2025
Solved

APM URL Branching tolower

Hello Folks,

 

Situation is: I've a Per-Request-Policy with URL Branching for specific URL to activate a 2 FA. 

-> this is working.

 

Problem: URL Branching is only working with a exact matching URI's => case sensitive

e.g. URL Branch: /path/path123

      -> incoming request -> /path/path123/ -> 2FA working

      -> incoming request -> /path/Path123/ -> 2FA is bypassed

 

Is there any possibility in APM to change all incoming requests to lower case with an in-build-function (only for URL Branch checking)?

 

Current workaround would be an iRule to convert all URI's to lower case. I have no idea whether this is always a good idea (maybe the backend can't handle case - insensitive paths).

 

 

Thanks a lot.

R.

  • So in your URL Branching now you have a branch like "Expression: URL contains: /path/path123/"

    Which if you go to Advanced is actually "expr {[mcget {perflow.branching.url}] contains "/path/path123/"}"

    You then could try "expr {[string tolower [mcget {perflow.branching.url}] contains "/path/path123/"]}"

2 Replies

  • So in your URL Branching now you have a branch like "Expression: URL contains: /path/path123/"

    Which if you go to Advanced is actually "expr {[mcget {perflow.branching.url}] contains "/path/path123/"}"

    You then could try "expr {[string tolower [mcget {perflow.branching.url}] contains "/path/path123/"]}"

    • rschwarz79's avatar
      rschwarz79
      Icon for Cirrus rankCirrus

      Thanks. Working perfect.

       

      correct syntax

        expr {[string tolower [mcget {perflow.branching.url}]] contains "/path/path123/"}