Cloudflare workers are really awesome when you want to secure your API Endpoint. But most of the code available online can only process single URL Parameter.
But this will be bottleneck when you want to use more than one parameter.
Here is the code for using dual parameter.
You can modify the parameter name in Line 9,10 and 12 with the respective names.
Advantages of using cloudflare workers.
- Block Bots and Unusual traffic
- Save Server Resources
- Hide API URL
- and many more
Thanks for your Feeback. It will helps us to improve our Article quality