Forum Discussion
Disabling certain blocking policy element for specific URLs
Not sure if this is the best solution, but this seems to work. Copy your policy and name it for example 'my_policy_allow_500'. In this policy, you will allow 500 as a valid response. So you have the policy 'my_policy' enabled on your virtual server. And select when needed the 'my_policy_allow_500' when needed.
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/folder/folder/" } {
ASM::enable /Common/my_policy_allow_500
}
}
The disadvantage of this approach is that you have to maintain two policies. Hopefully someone comes up with a better solution 🙂
Hi, Thank you very much. This is indeed simple to create. I also agree that possibly there could be another solution, but if there isn't, this is a very useful solution.
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