Request body in waf event

request body value in waf event?

Logging the request body would be pretty risky (legally and technically) since it would mean Cloudflare is now potentially storing personal or illegal content on their servers, and because logging POST data could use up petabytes of data.

If you want to log POST data, you should be able to use a Workers script and an external logging provider (but I don’t believe you can check if WAF was triggered or not).

1 Like

This topic was automatically closed after 30 days. New replies are no longer allowed.