13 days ago
Hi team — I run 20+ backend services on Railway (Next.js APIs + a few frontends), and I'm currently seeing persistent bot/scanner traffic hitting exploit paths (/wp-admin, .env, .git, etc.) and abusive request volume across multiple services daily — not a single DDoS spike, just constant low-grade scanning and abuse.
I found Under Attack Mode, but it's not a fit for my API-only services since it blocks all non-browser traffic while active — which would take down legitimate service-to-service and client API calls, not just bots.
What I'm actually looking for is something closer to Cloudflare's always-on WAF: persistent IP block/allow lists, rate-limiting rules enforced at the edge (before traffic reaches my containers), and ideally geo-blocking — running continuously, not just during a manually-triggered incident window.
I've built a Redis-backed rate limiter and IP ban system in application code (proxy.ts / Node middleware) as a stopgap, but edge-level enforcement would reduce load on my containers significantly, especially across 20+ services all currently doing this work independently.
Is this on the roadmap, or is there a recommended pattern for this today (e.g. proxying through Cloudflare in front of Railway)? Happy to be an early tester if something like this is in development.
Pinned Solution
13 days ago
Yes, I'd recommend migrating your domain to Cloudflare's NS/DNS. From there, you'll be able to utilize Cloudflare's WAF features (such as bot block/fight modes).
6 Replies
13 days ago
Having looked into this, the issue appears to be in your application code or configuration rather than the Railway platform itself, which puts it outside what Railway support can resolve directly.
This is exactly the kind of problem the Railway community is good at, so we'd like to open your thread as a community bounty. Railway pays a bounty to the community member who solves it, and threads like this usually get picked up quickly.
Opening it makes this entire thread public, including everything already posted. Nothing becomes public until you decide. Use the buttons below.
- Open to the community - Before you click, take a moment to edit or remove anything you'd rather not share. The thread becomes publicly visible right away.
- Keep it private and close the thread - Nothing becomes public. The thread closes, since this isn't something Railway support can take further.
Status changed to Awaiting User Response Railway • 13 days ago
13 days ago
This thread has been opened as a public bounty so the community can help solve it. The thread and any further activity are now visible to everyone.
Status changed to Open Railway • 13 days ago
13 days ago
Yes, I'd recommend migrating your domain to Cloudflare's NS/DNS. From there, you'll be able to utilize Cloudflare's WAF features (such as bot block/fight modes).
13 days ago
Can u please give me more guide as i have many domains so show should i use it ?
13 days ago
After migrating to Cloudflare's NS, you'll navigate to your domain, then the Security tab, and you'll be able to configure WAF/bot rules from there.
Status changed to Open 0x5b62656e5d • 13 days ago
Status changed to Solved 0x5b62656e5d • 13 days ago
