When you make site its always static and you can't make it dynamic. You can make it only with server beside your frontend. I mean you need to make server that will response on users requests. You can't make it only with your frontend part, It's unbeliavable.
When you make your server-side part it's always dynamic cause you everytime you need to have response on your request. You can't do rate limiting only with Frontend.
Laravel's built-in throttle middleware.
Cloudflare rate limiting rules.
Node.js proxy (if you need advanced control).