Daily request limit exceeded for Cloudflare Workers and/or Pages Functions

I have recently been recieving emails that my daily request limit has been exceeded. On checking the functions log this is caused by an AI bot making requests every one or two seconds. This is happening on my pages.dev and not on my custom domain. I have enabled 'Block AI Bots' and also setup a rule in WAF. Do these cover the pages.dev as well as my custom domain? I am not sure what else I can do to block this bot
Solution:
This seems to have fixed it. Many Thanks
Jump to solution
2 Replies
Chaika
Chaika2mo ago
It covers just your custom domain, not your pages.dev. You can make your pages.dev inaccessible though: https://developers.cloudflare.com/pages/how-to/redirect-to-custom-domain/
Cloudflare Docs
Redirecting *.pages.dev to a Custom Domain · Cloudflare Pages docs
Learn how to use Bulk Redirects to redirect your *.pages.dev subdomain to your custom domain.
Solution
Wayne
Wayne2mo ago
This seems to have fixed it. Many Thanks

Did you find this page helpful?