Next/Verce - usage : Millions of requests on a simple webpage
Unanswered
Red-breasted Flycatcher posted this in #help-forum
Red-breasted FlycatcherOP
Hi everyone, something strange is happening on our site, there are more than 1 million requests since this morning with requests every second. In the vercel logs, I see the favicon and the home image loaded more than 10 per second. Enormous costs may apply.
I just used Google Maps and Places api to get a place and send that place mysql PlanetScale database. I use a middleware to protect routes with a Captcha and CORS policy. Nothing more.
Do you have any ideas for investigation?
Thanks
I just used Google Maps and Places api to get a place and send that place mysql PlanetScale database. I use a middleware to protect routes with a Captcha and CORS policy. Nothing more.
Do you have any ideas for investigation?
Thanks
7 Replies
Red-breasted FlycatcherOP
Any idea ?
either setup cloudflare for ddos protection
Or setup upstash and rate limiter (google for upstash, nextjs rate limiting). Also add ip blocking.
and lastly make sure the requests arent originating from your own ips
Red-breasted FlycatcherOP
do you have any idea to know how can I be sure that is not coming from my own ips?
Red-breasted FlycatcherOP
It's going crazy right now, I have so many request each second... dont know what happened
Red-breasted FlycatcherOP
@linesofcode is it possible to do it with Vercel logs?