AFD WAF - How to configure custom rule for CookieName request attribute

Brittany Wolf 1 Reputation point
2024-02-09T14:27:04.86+00:00

@GitaraniSharma-MSFT Hoping you can help me. I have WAF on AFD with DefaultRuleSet_2.1. I am seeing blocks associated with matchVariableName value CookieName. Based on this resource, I understand that I cannot use an exclusion for this attribute type at this time. https://learn.microsoft.com/en-us/azure/web-application-firewall/afds/waf-front-door-exclusion#exclude-other-request-attributes However, the resource implies that a custom rule can be used instead. I've been trying a few different custom rule configurations but they don't seem to be preventing these requests from being blocked. I wondered if you had a recommendation on how to accomplish this so that I don't have to disable the rule or change its action to log instead. THANK YOU!

Azure Front Door
Azure Front Door
An Azure service that provides a cloud content delivery network with threat protection.
584 questions
Azure Web Application Firewall
{count} votes