WAF Custom Rule - Enabling a URI path whitelist custom rule makes my website super laggy

I'm using Cloudflare proxy primarily interested in its WAF rules and API Gateway related features. I created a custom Rule to whitelist only the valid URI paths to prevent sending invalid path requests to my origin load balancer. I'm aware Cloudflare has their own managed DDoS rules but they're not mitigated. Maybe because I'm under the free plan, Idk.

When this custom Rule is enabled, my website is super laggy and takes forever to load. But when the rule is disabled, everything works at regular speed.

I'm suspicious that Cloudflare having to check every single path to make sure this rule doesn't block the request, it makes it slow. But I was under the impression that Cloudflare caches everything.

Your help and guidance is appreciated.

Thank you
image.png
Was this page helpful?