#How to rate-limit and only allow request from specific origin for my worker?

6 messages · Page 1 of 1 (latest)

bleak plume
#

Is it possible for my worker to only accept requests from my domain while also limiting the amount of requests people can do from that domain? In my case people can go to my website/domain and press buttons that fire events to my worker, now I want to prevent people from just spamming my worker till my costs explode. Is there any easy way to do this?

keen arch
#

Though this applies to any HTTP-based origin, not just Workers

hushed briar
#

Hello

#

Nice to meet you.

#

Here is my view.