# What is DDoS protection in hosting? What it covers and what to ask

> What a DDoS attack is, the layers of attack and protection, what hosts mean by DDoS protection and what to ask a provider.

Source: https://comparehostingonline.com/guides/what-is-ddos-protection/

## Short answer

A DDoS attack floods a server or network with traffic so real visitors cannot get through. DDoS protection filters that traffic before it reaches your server. Providers differ in how much they block and whether it is included, so ask for specifics.

Last verified Nov 28, 2026 · [How we test](https://comparehostingonline.com/methodology/)

At a glance

-   **What is a DDoS attack?** A distributed denial-of-service attack uses many machines, often a network of compromised devices, to send more traffic or…
-   **What kinds of DDoS attack are there?** Volumetric and protocol attacks are measured in gigabits per second or packets per second.
-   **How does DDoS protection work?** Protection happens in layers.

## What is a DDoS attack?

A distributed denial-of-service attack uses many machines, often a network of compromised devices, to send more traffic or requests than a target can handle. The aim is to make a site, a game server or a network unavailable. It is “distributed” because the traffic comes from thousands of addresses at once, which makes it hard to block by simply banning one source.

CISA, the US cybersecurity agency, describes denial-of-service attacks as attempts to make a service unavailable to its users, and notes that the symptoms include a slow network, an unavailable site and a flood of spam. Many incidents are short; others last hours or days.

## What kinds of DDoS attack are there?

Volumetric and protocol attacks are measured in gigabits per second or packets per second. Application attacks are smaller in volume but can overload a site by hitting pages that need a lot of server work.

| Layer | What it does | Example |
| --- | --- | --- |
| Volumetric | Fills the network connection with sheer traffic | UDP and amplification floods |
| Protocol | Exhausts connection tables and network equipment | SYN floods |
| Application | Sends many seemingly valid requests to expensive pages | HTTP floods on login or search pages |

## How does DDoS protection work?

Protection happens in layers. At the network edge, a provider can detect abnormal traffic patterns and filter packets, sometimes by routing traffic through scrubbing centres that drop the attack and forward the clean traffic. At the web layer, a CDN or reverse proxy absorbs requests and caches content, so most never reach your server. Rate limits and a [web application firewall](https://comparehostingonline.com/guides/what-is-a-web-application-firewall/) stop abusive requests to specific pages.

Always-on protection filters every packet continuously. On-demand protection switches on after an attack is detected, which can mean a short period of disruption first.

## What do hosts mean when they say “DDoS protection”?

The phrase covers a wide range. It can mean basic network filtering that every customer gets, a bigger scrubbing service with a stated capacity, a CDN with attack mitigation, or a paid add-on you must switch on. It rarely means that no attack can hurt you. Very large or well-aimed attacks can exceed any provider’s defences, and protection that only covers web traffic does nothing for a game server on another port.

## What should you ask a hosting provider?

-   Is DDoS protection included, or is it a paid add-on?
-   What size of attack does it cover, and what happens above that? Some providers null-route the target address.
-   Is protection always on, or enabled only after detection?
-   Does it cover all ports and protocols, or only web traffic?
-   Is there a cost if I am attacked, for example for extra bandwidth?
-   How will I find out, and who responds at night?

## What can you do yourself?

Keep the server itself hardened as described in [how to secure a new VPS](https://comparehostingonline.com/guides/how-to-secure-a-vps/).

1.  1
    
    **Put a CDN or proxy in front**
    
    It hides your server and absorbs traffic; see do you need Cloudflare?.
    
2.  2
    
    **Cache what you can**
    
    Static and cacheable pages cost your server almost nothing; see what a CDN is.
    
3.  3
    
    **Rate-limit expensive pages**
    
    Protect login, search and API endpoints.
    
4.  4
    
    **Hide the origin**
    
    Allow web traffic only from the CDN and keep the real IP private.
    

## Who needs DDoS protection the most?

Game servers, voice servers, sites in competitive or controversial fields, online shops during sales and any business that loses money when it is offline. A personal blog is rarely a target, but it can still be hit by indiscriminate traffic. If you choose a VPS or a dedicated server for such a workload, compare the protection on our [best VPS hosting](https://comparehostingonline.com/best/vps-hosting/) and [dedicated servers](https://comparehostingonline.com/best/dedicated-servers/) lists and ask the questions above before you buy.

## What should you do during an attack?

Contact your provider first: they can see the traffic and may be able to filter it. Turn on any stronger protection mode you have, put a CDN in front of the site, and serve a static fallback page if needed. Keep logs for later. Do not pay anyone who emails a ransom demand. Afterwards, review what failed and whether a different plan or provider would have coped better.

## A worked example: a small game server under attack

A hobbyist runs a game server on a VPS. One evening players report lag, then disconnects. The provider’s graphs show inbound traffic spiking far above normal, and the server’s network connection saturating. The provider’s basic protection filters part of the flood but the server still struggles, so the owner turns on the stronger, paid mitigation the provider offers on request. Traffic stabilises within minutes. Afterwards the owner moves the game port behind a service built for that traffic and keeps the web panel behind a CDN.

The incident showed two gaps: protection that only covered web traffic and an on-demand mode that took time to switch on. They chose a plan with always-on protection for game ports.

## How do you prepare an incident plan?

1.  1
    
    **Know who to call**
    
    Keep the provider's abuse and support contacts handy.
    
2.  2
    
    **Know what you can switch on**
    
    Stronger protection modes, a CDN or a static fallback page.
    
3.  3
    
    **Keep logs and monitoring**
    
    You need evidence and early warning.
    
4.  4
    
    **Review afterwards**
    
    Decide whether a different plan or provider is justified.
    

## Sources and further reading

-   [CISA: Understanding denial-of-service attacks](https://www.cisa.gov/news-events/news/understanding-denial-service-attacks)
-   [Cloudflare DDoS protection documentation](https://developers.cloudflare.com/ddos-protection/)
-   [OWASP Top Ten](https://owasp.org/www-project-top-ten/)

## Common questions

What is DDoS protection?

It is filtering that detects and drops attack traffic before it reaches your server, using network filtering, scrubbing centres, CDNs and rate limits. Protection varies from basic filtering to large always-on services, so ask what yours covers.

Do all hosts include DDoS protection?

Many include basic network-level filtering. Stronger protection may cost extra or be available only on certain plans. Ask whether it is always on, what attack size it covers and whether it protects ports other than web traffic.

Will DDoS protection stop every attack?

No. Very large or well-aimed attacks can exceed any provider's defences, and some providers respond by blocking the targeted address. Protection reduces risk. Combine it with a CDN, caching and a hardened origin server.

Is a CDN enough to stop DDoS attacks?

For web traffic, a good CDN absorbs a lot of it and hides your origin. It does not protect other services such as a game server on a different port. Check what the CDN covers and keep the origin address private.

What should I do during a DDoS attack?

Contact your provider, turn on stronger protection if you have it, put a CDN in front of the site, serve a static fallback page if needed and keep logs. Do not pay a ransom demand. Review what failed afterwards.

## Related

[Best VPS hosting](https://comparehostingonline.com/best/vps-hosting/) [What is a CDN?](https://comparehostingonline.com/guides/what-is-a-cdn/) [VPS hosting explained](https://comparehostingonline.com/hosting-types/vps/)

## More guides

[What is a web application firewall (WAF)? How it works and when you need one](https://comparehostingonline.com/guides/what-is-a-web-application-firewall/) [Bandwidth, storage and data transfer: what is the difference?](https://comparehostingonline.com/guides/bandwidth-vs-storage-vs-transfer/) [cPanel vs Plesk vs DirectAdmin: which hosting control panel?](https://comparehostingonline.com/guides/cpanel-vs-plesk-vs-directadmin/) [Do you need Cloudflare? What it does and how to set it up](https://comparehostingonline.com/guides/do-you-need-cloudflare/) [Ecommerce hosting checklist: what an online shop needs from a host](https://comparehostingonline.com/guides/ecommerce-hosting-checklist/) [Email hosting vs web hosting: should you keep email separate?](https://comparehostingonline.com/guides/email-hosting-vs-web-hosting/)

MH

**[Muhammad Hamza](https://comparehostingonline.com/team/muhammad-hamza/)** Founder & Editor

Writes and signs off every comparison, and runs the compliance reviews. Has worked on SOC 2 and HIPAA compliance programs for companies.

Our [editorial policy](https://comparehostingonline.com/editorial-policy/) and [testing method](https://comparehostingonline.com/methodology/) are public.
