Customize WAF Block Response
Is it possible to customize the waf response with variables such as the user's IP address? for example, "access denied from ${ip.address}"
https://developers.cloudflare.com/waf/custom-rules/create-dashboard/
Create custom rules in the dashboard · Cloudflare Web Application F...
Log in to the Cloudflare dashboard , and select your account and domain.
3 Replies
Yes, the docs are here: https://developers.cloudflare.com/support/more-dashboard-apps/cloudflare-custom-pages/configuring-custom-pages-error-and-challenge/
Configuring Custom Pages (Error and Challenge) · Cloudflare Support...
Cloudflare uses a wide range of error codes to identify issues in handling request traffic. By default, these error pages mention Cloudflare; however, …
The actual Custom Error Pages can use template variables like defined, but the Custom Rule Custom Responses can't use anything like that as far as I know
@Chaika I was hoping it was as simple as using something like a template variable but that's good information