Forum Discussion

snormoyle_36342's avatar
snormoyle_36342
Icon for Nimbostratus rankNimbostratus
Dec 27, 2018

iRule for URI

I was handed an F5 to administator. With no experience, but a few months and the 4 day ASM class.

 

the F5 is setup for WAF. When a user access the website the user is prompted for a certificate, which is all working fine.

 

Now the developers do not want a user to be prompted for a certificate when accessing the main web site page. Instead when a user access specific URI that is when the developers want the user to authenticate by asking to select a certificate.

 

I have no iRule experience and organization not going to pay for PS help.

 

1 Reply

  • It seems like what you are asking for is a URI rewrite though its a bit hard to tell with the vague details provided. If you want to have a certain URI direct users to a page where they can select a certificate, then get redirected to the main webpage, I think this iRule will help.

    when HTTP_REQUEST
    {
        if {[HTTP::uri] eq "/specific/uri/of/page"}
        {
            [HTTP::uri] "/certificate/selection/page"
        }
    }
    

    If you explain further, I am certain I can help more.