Blocked from worker custom domain
howdy! i’ve set up a cloudflare worker and wanted to expose it under a subdomain of a website i have registered with cloudflare. i’ve configured the worker with the custom domain (through the cloudflare dashboard), but i’m hitting this error message when i try to access it - can reproduce across devices. thanks in advance and lmk if any more detail is necessary!
![No description](https://cdn.answeroverflow.com/1219278353417113631/IMG_6830.png)
4 Replies
The firewall is blocking the requests. Check under Security -> Events to see why
Magic Link: https://dash.cloudflare.com/?to=/:account/:zone/security/events
If you expand the specific event by clicking on it, you can see the exact rule/service causing it
copy that and thanks for bearing with me! apologies for the portrait screenshot, i’m away from my desktop atm. here’s a security event i triggered by accessing the custom domain normally
![No description](https://cdn.answeroverflow.com/1219281175273668648/BDA2D581-7620-4960-9DC7-02043DFAF959.png)
looks like you have a Custom rule
block unwanted requests
which is blocking thesecopy that - i initially thought this must have been something that cloudflare comes with out of the box 😅 i set up most of this domain’s config a few years ago so it’s all left my head. rummaged around a bit and found the problematic rule & im all good now. thanks for your help!