How to restrict access to a worker by ip addresses for the wildcard.myid.workers.dev?

i’ve checked here but my wildcard.myid.workers.dev is still accessible and can lead to abuse. how do i stop people from accessing / ddos this by ip allowlisting etc?

i’ve checked here but it only applies to mapped domains to workers dev

How to restrict access to a worker

You can’t use WAF for the worker.dev domain. The best method is to disable the worker.dev route and use one on your zone which you can use WAF with.

1 Like

thank you.
p.s. : just to add, the way to disable it is adding this line to wrangler.toml below:

workers_dev = false

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.