Forum Discussion
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
- Walter_Kacynski
Cirrostratus
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.
- Michael_Jenkins
Cirrostratus
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
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).window.close()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.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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