Forum Discussion
SANEESHPV_13756
Nimbostratus
Feb 05, 2014Replace the F5 injected Script before sending the Response
F5 injects a CSPM script in the response when we have Page Load Time option in BIG-IP Analytics. The subject script was injected in the HEAD tag of the HTML response. We have some metadata in the HEA...
nitass
Employee
Feb 08, 2014not sure if this is usable. anyway, html content profile is introduced in 11.4. we can use it to prepend and remove html tag (i.e. add new html tag and delete the old one).
e.g.
root@(ve11-8)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm virtual bar
ltm virtual bar {
destination 172.28.24.201:80
ip-protocol tcp
mask 255.255.255.255
pool foo
profiles {
cspm { }
http { }
myhtml { }
tcp { }
}
source 0.0.0.0/0
source-address-translation {
type automap
}
vs-index 2
}
root@(ve11-8)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm pool foo
ltm pool foo {
members {
200.200.200.101:80 {
address 200.200.200.101
}
}
}
root@(ve11-8)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm profile analytics cspm
ltm profile analytics cspm {
app-service none
collect-page-load-time enabled
defaults-from analytics
description none
notification-email-addresses none
partition Common
traffic-capture {
capturing-for-cspm { }
}
}
root@(ve11-8)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm profile html myhtml
ltm profile html myhtml {
app-service none
content-detection enabled
content-selection { text/html text/xhtml }
defaults-from html
description none
rules {
prepend_meta
remove_meta
}
}
root@(ve11-8)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm html-rule tag-prepend-html prepend_meta
ltm html-rule tag-prepend-html prepend_meta {
action {
text " "
}
match {
attribute-name id
attribute-value f5_cspm
tag-name script
}
}
root@(ve11-8)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm html-rule tag-remove remove_meta
ltm html-rule tag-remove remove_meta {
match {
attribute-name name
attribute-value description
tag-name meta
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects