WAF for Cloudflare Pages product only

I want to apply WAF, espcially WAF custom rules to my static site that is deployed on Cloudflare Pages only. Please note that I have set up a custom domain with my Cloudflare Pages

On your zone you can setup Custom Rules like normal:

To stop your project.pages.dev domain from being accessed, check this out:

@Erisa Thank you for helping out.
This does not work for my as I can’t change the nameservers for some reason. I’ve applied the WAF rule and it does not seems to be working may be due to this reason.


Please find attached screenshot.