F5 is upgrading its customer support chat feature on My.F5.com. Chat support will be unavailable from 6am-10am PST on 1/20/26. Refer to K000159584 for details.

Forum Discussion

2 Replies

  • Josiah_39459's avatar
    Josiah_39459
    Historic F5 Account

    Sure you could write an irule to do this, have an irule event trigger it, store the result in a session variable, and then take a branch path to deny based on the result variable. If you really wanted to you could even use an Empty box in the VPE and put all the TCL into the branch selection, but that might get a little hairy as you have to write it all on one line.

     

  • JG's avatar
    JG
    Icon for Cumulonimbus rankCumulonimbus

    I have not tested the following but it will give you something to get started with:

    when ACCESS_ACL_ALLOWED {
        if {[string tolower [ACCESS::session data get "session.logon.last.username"]] matches_regex {^[A-Za-z]{3}\d{4}$} } {
            HTTP::redirect http://my.other.place/
        }
    }