Forum Discussion
iRule assistance
HI,
You can achieve your need easly:
first create a DG with your internal IP:
Internal_user
Then use this IP. if you come from internal network this irule inser a header with the following header:
name: env
value: prod
when CLIENT_ACCEPTED {
set header 0
if { [class match [IP::client_addr] equals Internal_user] } {
set header 1
}
}
when HTTP_RESPONSE {
if {$header}
HTTP::header insert env prod
}
}
keep me in touch
regards
Youssef,
After trying out this iRule I think there may have been a miscommunication. On the HTTP Response I need something that will alter the HTML and add an HTML Header that says "PRODUCTION!" The HTTP Header is different from modifying the HTML in the response. I basically need an iRule or other policy that will edit the HTML in the response by adding "PRODUCTION!" to it. Is this possible?
Thanks.
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