Forum Discussion
Illegal HTTP status in response with CDN
Hi Poka, if by "masking" you mean ASM Blocking page responding with HTTP 200 when the request is blocked by ASM Policy, then the solution can be easier. ASM blocking response page by default has HTTP Response Code 200, you have 2 options:
1) change the ASM Blocking Response page from HTTP 200 to another code which will not be masked - people most frequently change ASM response code to 403 Forbidden or to 503 Service Unavailable - 4xx and 5xx are not cached by CDN
2) leave ASM Blocking Response Page response code as 200 but add header:
Cache-Control: no-cache
to the ASM blocking response page, this will instruct CDN not to cache the blocking page.
I hope this helps,
Sam
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