WHAT THE FAQ

💥 How I Defeated a Restaurant Website DDoS Attack in 30 Minutes — With Zero Prior Experience

By Olga Svitli

Saturday evening. The busiest hour for a local restaurant. Orders are coming in — or they should be.

Instead, the website is down. Every 3 minutes, it crashes with a 503 error.
The client is in panic. Real orders = real money = real loss.

The website runs on OpenCart via Docker, hosted on DigitalOcean, protected only by a free Cloudflare plan. CPU is at 100%, php-fpm is suffocating.
The logs? An absolute storm of traffic.
I’m the only one from the tech team available.

And I have zero experience fighting DDoS attacks.

But I’m stubborn.

Here’s how I brought the site back to life in 30 minutes — and what I learned on the way ⬇️


🛠 Step-by-step Fix

  1. Diagnosed the Load

    • Opened top and docker stats.

    • Confirmed the CPU was melting.

  2. Scanned the Logs

    • Checked access.log to spot suspicious IPs and traffic patterns.

    • Saw repeated, aggressive requests — likely bots or scanners.

  3. Activated Web Application Firewall (WAF)

    • Switched to paid Cloudflare plan and turned on WAF rules immediately.

    • This was crucial — free plan didn’t help here.

  4. Implemented Rate Limiting

    • Configured a rule: 30 requests per IP per 60 seconds → triggered JS Challenge.

    • Legitimate users passed. Bots didn’t.

  5. Within 60 Seconds — The Website Was Alive Again.

    • The server calmed down.

    • Client could breathe. So could I.

Over 17,000 requests were blocked in the following hour.


🤖 “But Was It Really a DDoS?”

Some folks pointed out: “That’s not DDoS, just DoS”, or “Cloudflare did all the work”.
Here’s the truth:


💬 Community Reaction

The post exploded with reactions:

The best comment?

“Post-factum, everyone knows what ‘should have been done’ — but when it hits the fan, someone has to just solve it.”

And that’s what I did.


🚀 Key Takeaways


💡 What’s Next?

And me?
I’m keeping this as a trophy in my tech diary.
Because when you solve a real problem in real time, that’s worth more than theory.


💬 Inspired by real events and shared with ❤️ by Olga Svitli. Support your local tech heroes — especially when they don’t give up.

Exit mobile version