✓ 99.9% UPTIME ✓ 24/7 SUPPORT ✓ SINCE 2016 Status Looking Glass +92 312 6565434
Security · 2026-11-21 · Zain Ul Abddin

DDoS on a small server: what actually helps

Layer 3, 4 and 7 attacks explained without jargon, what a host can filter, what you must do at the app layer, and when to move behind a proxy.

Network patching panel used for traffic filtering

“We have DDoS protection” is the most oversold line in hosting. Protection is a set of layers, and each layer only stops certain attacks. Knowing which one you have prevents the worst outcome: discovering the gap during an attack.

The three layers

  • Layer 3/4 — volume and packets. Bandwidth floods, SYN floods, UDP amplification. Filtered upstream, before traffic reaches your server.
  • Layer 7 — requests. HTTP floods that look like real users: expensive search pages, add-to-cart loops, login attempts. Needs rate limiting and caching, not just a scrubbing centre.
  • Application abuse — one account hammering an API, scraping, credential stuffing. Blocked with auth, quotas and logs.

What a host can honestly promise

Network filtering on flagship infrastructure, sized to the uplink, with a mitigation path for common floods. What no honest host promises: “we absorb anything”. A 500 Gbps attack against a 10 Gbps port is a routing decision, not a server setting.

Ask three questions before you buy:

  1. Is filtering always-on or only after detection?
  2. At what volume does traffic get null-routed, and who decides?
  3. Is layer 7 handled, or only layer 3/4?

What you control on the server

  • Rate limit at nginx — limit_req per IP, plus stricter limits on login and search routes.
  • Cache aggressively — a flood against cached pages costs a fraction of dynamic requests.
  • Close what you do not use — RDP, databases, Redis, admin panels should never be open to the world.
  • Fail2ban for repeated offenders, with a short ban and a whitelist for your own IPs.
  • Static maintenance page that can be switched on without PHP.

Signs you are under layer 7 attack

CPU pinned, PHP workers maxed, access log full of one path or one user agent, but bandwidth looks normal. That pattern is requests, not volume — scrubbing centres will not help much. Rate limits and caching will.

When to move behind a proxy

If you are a repeated target — game servers, controversial content, a store during a launch war — put Cloudflare or a game-aware proxy in front and hide the origin IP. That is the only durable answer to “they know my IP”. Change the IP after the move, or the old one stays a target.

Our position

We filter on flagship infrastructure and will tell you plainly what is and is not covered for your plan. For high-risk workloads we recommend a proxy in front plus rate limits inside — and we will help configure both during setup.

Questions from readers

Can a VPS survive any DDoS?

No. Filtering is sized to the network. Very large attacks are handled by routing decisions, and layer 7 floods need app-level limits.

Does Cloudflare hide my server IP?

Only if the origin IP is not discoverable. Change the IP when you move behind a proxy, and never expose it in DNS history or mail headers.

What is the first thing to do during an attack?

Check whether it is volume or requests. Volume needs upstream filtering; requests need rate limits and cache.

Need this set up for you?

Managed VPS and Windows RDP from $12.50/mo, with the stack installed before handover.

Chat on WhatsApp See prices