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

Jinshu_134425's avatar
Jinshu_134425
Icon for Nimbostratus rankNimbostratus
Oct 06, 2015

Irule for closing the connection

Hello Friends,

 

I am using a decision box before F5 APM logon page for disclaimer and my requirement is to close the window if the user click on decline? Is it possible to do that with irule? If yes, can somebody help me to do that?

 

-Jinshu

 

2 Replies

  • You would need to perform customization in the "Advanced" section to insert javascript code for the decline decision. You should not need an an iRule in this case.

     

  • You may not be able to close the browser window as expected using javascript (at least not across all browsers) due to security restrictions for the

    window.close()
    function. I believe most browsers today will only allow you to close a window that has been opened by script (see here for example). Otherwise the command will most likely do nothing (though I think in IE it will prompt the user to close the tab/window) (see here for a StackOverflow answer about the question).

    What you may need to end up doing it directing the user to a custom deny page if they decline and customize it through the APM configuration section (Access Policy >> Customization) to tell them to close the window.