Forum Discussion
Andrew_7467
Nimbostratus
Sep 08, 2011Insert something into header to distiguish public and private IP Addresses
All, I am working with our developers and need some assistance. What they would like to do is insert a custom header based on the client address. If it is RFC1918 addresses (172.18.0.0, 192.168.0.0...
Michael_Yates
Nimbostratus
Sep 09, 2011Hi Andrew,
That must have been a typo. You can just change the event from CLIENT_ACCEPTED to HTTP_REQUEST. The HTTP::header is only listed as a valid event in the following events:
Valid Events:
CACHE_REQUEST, CACHE_RESPONSE, HTTP_REQUEST, HTTP_REQUEST_DATA, HTTP_REQUEST_SEND, HTTP_RESPONSE, HTTP_RESPONSE_DATA, REWRITE_REQUEST_DONE, SERVER_CONNECTED
http://devcentral.f5.com/wiki/iRules.HTTP__header.ashx
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