How to restrict access to a worker by ip addresses for the

i’ve checked here but my 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 domain. The best method is to disable the 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.