Forum Discussion
samstep
Feb 17, 2016Cirrocumulus
Hi Dana, iRules can definitely be used to either inject HTML code/script into a response from a backend server (pool member) or to reply back with that script. If the script needs to be maintained on the F5 device then it is best to upload it and store it on BIG-IP as an iFile. There is a very efficient way of performing content injection/manipulation using Stream Profiles and iRules.
Not sure if this is relevant to your case, but here is an example of an iRule which shows how a script for page load performance monitoring from Gomez Networks can be injected: https://devcentral.f5.com/codeshare/gomez-injection
Hope this helps,
Sam