Forum Discussion

Al_3585's avatar
Al_3585
Icon for Nimbostratus rankNimbostratus
Aug 29, 2012

Web Usage Warning Page

Is there a way to insert an iRule that would warn users that " You are accessing a Information System (IS) that is ..........", and they would have to select an "I Agree" button before it lets them continue on and if not times out and drops the session? Thx!

2 Replies

  • Hi Al,

     

     

    Check this post for a related reply:

     

     

    Login Banner

     

    http://devcentral.f5.com/Community/GroupDetails/tabid/1082223/aff/5/afv/topic/aft/1172328/afc/1196598/Default.aspx

     

     

    Aaron
  • I would like to add that Access Policy Manager makes this RIDICULOUSLY easy to accomplish - just add a message box object in the visual policy and edit its HTML under advanced customization. Working with pure iRules is a little trickier because you essentially need to track the state of the session so that you're not presenting the banner page in the middle of the application session (APM takes care of this part for you). You necessarily need some persistent token that identifies that the browser has already seen (and acknowledged) the banner.

     

     

    That said, there are a bunch of ways to pull this off, all depending on the app:

     

     

    1. Cookie insertion on first request (a dummy request) that sets the cookie and shows the banner.

     

     

    2. A session table entry mapped to the client IP (if IP addresses are consistent).

     

     

    3. Setting the application's start page to a (fake) URI that tells the iRule to display the banner and then forward to the real start page.

     

     

    4. Some combination of all of these (1 and 3 specifically).