Zhu Bajie
CDCloudflare Developers
•Created by gekkepop. on 7/13/2024 in #workers-help
How to rate-limit and only allow request from specific origin for my worker?
It is possible to configure your worker to only accept requests from your domain and to limit the number of requests from users.
This can be achieved through a combination of techniques including referer checking, rate limiting, and API usage monitoring.
You can inspect the Referer or Origin header to ensure that the request is originating from your domain. Rate limiting can be implemented to ensure that each user or IP address can only make a certain number of requests within a given timeframe.
If you're using cloud services like AWS, Cloudflare, or Google Cloud, their API gateways often come with built-in functionalities for rate limiting and request validation.
7 replies
CDCloudflare Developers
•Created by gekkepop. on 7/13/2024 in #workers-help
How to rate-limit and only allow request from specific origin for my worker?
Here is my view.
7 replies
CDCloudflare Developers
•Created by gekkepop. on 7/13/2024 in #workers-help
How to rate-limit and only allow request from specific origin for my worker?
Nice to meet you.
7 replies
CDCloudflare Developers
•Created by gekkepop. on 7/13/2024 in #workers-help
How to rate-limit and only allow request from specific origin for my worker?
Hello
7 replies