How to disable worker on certain router?

Hi,

Currently router can only be set to “run” on certain url.
But there is no way to set “not run” on certain url.

All cloudflare feature have Whitelist and Blacklist but for router it only have Whitelist option.

Is it on purpose? So for example we want to run worker on all folder (10.000+) but turn of worker only on (3 folder). That is not possible.

Is there any way to turn off worker on certain url only?

I have a wildcard worker for example.com/*, but then add a route for that folder with Worker set to –

This will exclude my “specials” folder from the more general route Worker.

2 Likes