Forum Discussion

Mike_McCracken_'s avatar
Mike_McCracken_
Icon for Nimbostratus rankNimbostratus
Mar 29, 2012

Need F5 irule to perform HTTP Header insert

From Developer - abstract below.

 

 

The scenario would be to force my pc to the devf5 (using a local hostfile for access to courserooma.capella.edu) and subsequently have f5 change a specific page with an iRule:

 

 

Page on courserooma = webapps/Adbe-AdobeConnectPro-BBLEARN/communication/index.jsp?course_id=_975_1 HTTP/1.1

 

 

We need to insert an http header to the page above that contains the following...

 

 

P3P: CP="This is not a P3P policy! See http://www.capella.edu/p3pPolicy.html"

 

 

Could use a little help writing this (I'm new to F5). Not sure if the Proxy-Pass Lite is overkill or not (https://devcentral.f5.com/wiki/iRul...-Lite.ashx) as I'm to new to modify it anyway. Any help would really be appreciated.

 

 

Mike ()
  • Some browsers require third party cookies to use the P3P protocol to state their privacy practices. In some situations, the cookies we use to secure and authenticate university accounts and store learner preferences may be served from a different domain than the website they are linking to from within a given university page. However, the P3P protocol was not designed with situations like this in mind. As a result, we'd like to insert an HTTP::header (ie, like P3P: CP="This is not a P3P policy! See http://www.capella.edu/p3pPolicy.html") or a link into our cookies that directs users to a page where they can learn more about the privacy practices associated with our university.

     

     

    Any ideas how to code this in an irule? Is this even doable?

     

     

  • Hi Mike McCracken,

     

     

    Yes, the LTM can perform Custom Header Inserts using the HTTP::header command.

     

     

    There are a few examples on the Wiki Page to get you started.

     

     

    Hope this helps.