Hello Support Team,
I would like to block all incoming POST requests based on a specific JSON value in the request body. For example, I want to block any requests where the userId is set to 123 in the request body.
From my understanding after reviewing your documentation (Vercel WAF rule configuration), it seems that blocking requests based on HTTP request body fields isn’t currently supported.
Having this functionality would allow me to block certain requests before they reach the serverless function. Currently, I’m handling these cases with an early return within the function itself. However, each invocation still takes about 5ms, and with a high volume of such requests, this adds up. Being able to block these requests at the WAF level would improve performance and reduce unnecessary processing.
Are there any plans to add this capability in the future? Or, if there are any workarounds or alternative methods to accomplish this, I would greatly appreciate any guidance.
Thank you for your assistance!