Attacking by DDoS in my express/api application

We're experience a high amount of request and our application is down. We're trying a bunch of middlewares, but, nothing is working right now.
11 Replies
Percy
Percy2mo ago
Project ID: 45918766-340c-4a98-9d7a-5a8871ce694a
Solscihub | 3³
Solscihub | 3³2mo ago
45918766-340c-4a98-9d7a-5a8871ce694a
Adam
Adam2mo ago
Do you still have Under Attack Mode on in Cloudflare? That would explain why your app is down.
Solscihub | 3³
Solscihub | 3³2mo ago
Hello, yeah but, how can we mitigate this Attack without using the attack mode?
Adam
Adam2mo ago
Is the high amount of requests targeted or are they just bots? How is the attack negatively affecting your service?
Solscihub | 3³
Solscihub | 3³2mo ago
yeah, is targeted request, yesterday i was consoling all the logs and like a thoused of thousend of request was entering in a second in the service, and then, the service was unavailable because was saturated we're right now testing a lot of things with cloudflare
Adam
Adam2mo ago
That would be the way to go. Railway does not provide any native protection Cloudflare should be more than enough
Solscihub | 3³
Solscihub | 3³2mo ago
right now we put this two rules, we're monitoring:
No description
No description
Adam
Adam2mo ago
Are both your frontend and backend hosted on Railway? If they are, they can communicate with each other using private networking so your backend doesn't have to be exposed to the internet
Solscihub | 3³
Solscihub | 3³2mo ago
oh.. i see, our front is hosted in Vercel but, dunno if u can recommend us some rules/config we can put in cloudflare with our current setup
Brody
Brody2mo ago
that's not always true, it would only be true for ssr apps, apps that are csr would need to use the public network