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
Percy6mo ago
Project ID: 45918766-340c-4a98-9d7a-5a8871ce694a
Solscihub
SolscihubOP6mo ago
45918766-340c-4a98-9d7a-5a8871ce694a
Adam
Adam6mo ago
Do you still have Under Attack Mode on in Cloudflare? That would explain why your app is down.
Solscihub
SolscihubOP6mo ago
Hello, yeah but, how can we mitigate this Attack without using the attack mode?
Adam
Adam6mo ago
Is the high amount of requests targeted or are they just bots? How is the attack negatively affecting your service?
Solscihub
SolscihubOP6mo 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
Adam6mo ago
That would be the way to go. Railway does not provide any native protection Cloudflare should be more than enough
Solscihub
SolscihubOP6mo ago
right now we put this two rules, we're monitoring:
No description
No description
Adam
Adam6mo 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
SolscihubOP6mo 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
Brody6mo 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
Want results from more Discord servers?
Add your server