Forum Discussion
dgytech
Altostratus
Dec 15, 2017iRule to exclude specific URI from http header insert (x-frame-options) on http_response
Attempting to exclude two URI from a http header insert on a HTTP_RESPONSE. Basically if the URI contains "/wp-login.php" or "/wp-admin" i do not want this header applied on the response.
I was pre...
Simon_Blakely
Employee
Dec 17, 2017Lots of good answers above.
Just to explain the logic of the required structure reflected in the above irules ...HTTP::uri is not valid in HTTP_RESPONSE
Valid Events:
ASM_REQUEST_DONE, CACHE_REQUEST, CACHE_RESPONSE, HTTP_CLASS_FAILED, HTTP_CLASS_SELECTED,
HTTP_PROXY_REQUEST, HTTP_REQUEST, HTTP_REQUEST_DATA, HTTP_REQUEST_SEND,
REWRITE_REQUEST_DONE, SERVER_CONNECTED
So you need to set a flag in HTTP_REQUEST that controls the HTTP_RESPONSE action. I hope this helps.
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