Security 5 min read

DDoS protection for small business websites

DDoS protection for small business websites explained: what DDoS attacks are, signs of an attack, CDN and edge protection, rate limiting, hosting and response plans.

Usman Muhammad UsmanUpdated October 13, 2026
DDoS protection for small business websites

A distributed denial-of-service (DDoS) attack floods a website with traffic until it slows down or goes offline. Large attacks make headlines, but small businesses also face smaller floods from bots, competitors or random targeting. You do not need enterprise budgets to be protected. Here is what DDoS attacks are and the practical protections I use for client sites.

What a DDoS attack is

In a DDoS attack, many devices, often compromised computers and internet-connected devices in a botnet, send requests to your site at the same time. The goal is to exhaust server resources, bandwidth or application capacity so real visitors cannot get through.

Attacks range from simple floods of requests to targeted attacks on slow pages such as search, login or checkout, which need few requests to overload a server.

Types of attacks

Network-level attacks flood servers with traffic at the network layer and are usually handled by hosting providers and networks. Application-level attacks send many seemingly normal HTTP requests to pages, forcing WordPress to process each one.

Application-level attacks are the most common problem for small sites, because a modest number of requests to uncached pages can overwhelm shared hosting.

DDoS defences
  • Edge CDNAbsorbs floods
  • CachingFewer server hits
  • Rate limitsLogin, search, checkout
  • Bot challengesUnder Attack mode
  • Hidden originTraffic via CDN only
  • Response planContacts and steps

Signs of an attack

Signs include sudden slowdowns or outages, hosting warnings about resource limits, huge spikes in traffic from unusual countries or user agents, many requests to one URL such as wp-login.php, search or xmlrpc.php, and server error messages.

Not every spike is an attack. Check analytics and logs to distinguish a traffic surge from a campaign or viral post from malicious traffic.

Use a CDN with DDoS protection

Content delivery networks with security features, such as Cloudflare, Sucuri and Bunny, absorb large volumes of traffic across their global networks and filter malicious requests before they reach your server. Cloudflare’s free plan includes unmetered DDoS mitigation.

This is the single most effective protection for small businesses. See setting up Cloudflare and do you need a CDN.

Caching reduces impact

Cached pages can be served without running PHP or querying the database, so the server handles far more requests. Edge caching at the CDN means many requests never reach your server at all.

Make sure as many pages as possible are cached for anonymous visitors. See WordPress caching explained.

Rate limiting

Rate limiting restricts how many requests a single IP or client can make in a period. Apply it to login, search, checkout, contact forms and XML-RPC, which are expensive to process and common targets.

Cloudflare, security plugins and some hosts offer rate limiting. See brute force attack protection.

Bot management and challenges

Bot protection features challenge suspicious traffic with invisible checks or CAPTCHAs, letting real visitors through while blocking automated floods. Cloudflare’s Bot Fight Mode and Under Attack mode are useful during attacks.

Under Attack mode shows a brief check page to every visitor; use it only while an attack is ongoing.

Block unnecessary endpoints

Disable or block XML-RPC if you do not use it, restrict access to wp-admin by IP where practical and block requests to files and paths that should never be accessed publicly. Fewer exposed endpoints mean fewer targets.

See XML-RPC and WordPress security.

Choose resilient hosting

Hosts with strong network protection, enough resources and good support handle attacks better. Cheap shared hosting may suspend your account to protect other customers during an attack.

See choosing WordPress hosting.

Hide your origin server

When using a CDN, attackers who know your server’s IP address can bypass the CDN. Keep the origin IP private, avoid DNS records that reveal it, such as unproxied subdomains pointing to the same server, and configure the server to accept traffic only from the CDN where possible.

Email sent directly from the web server can also reveal its IP in headers. Use an external mail service. See WordPress SMTP setup.

Have a response plan

Write down what to do during an attack: who to contact at your host and CDN, how to enable Under Attack mode, which pages to protect and how to communicate with customers. Keep logins accessible in a password manager.

Uptime monitoring alerts you quickly when the site slows or goes down. See website uptime monitoring.

After an attack

Review logs to understand the attack pattern, adjust firewall and rate limiting rules, and check that nothing else was compromised, since DDoS is sometimes used as a distraction. Keep rules that blocked the attack in place.

If the site was hacked as well, follow what to do when your WordPress site is hacked.

DDoS protection on Shopify and hosted platforms

Shopify, Wix and other hosted platforms run on large infrastructure with DDoS protection built in, so store owners rarely need to do anything for network-level attacks. Bot traffic can still affect apps, forms and checkout, and platforms include bot protection for common abuse.

If you run a WordPress site alongside a hosted store, such as a blog on a subdomain, protect that site separately. Attackers target whichever part of your online presence is easiest to overwhelm, which is usually the self-hosted part.

Getting help

Cloudflare setup, firewall rules and response during attacks are part of my website protection service. For a broader view, see do you need a WAF.

For overall security, follow my hardening checklist.

Key takeaways

  • A CDN with DDoS protection is the most effective defence for small sites.
  • Caching and rate limiting reduce the impact of application-level floods.
  • Keep your origin server IP private when using a CDN.
  • Have a response plan with host and CDN contacts ready.

Frequently asked questions

Can small businesses be targeted by DDoS?

Yes. Small floods from bots or random targeting are common.

Does Cloudflare's free plan protect against DDoS?

Yes. It includes unmetered DDoS mitigation.

How do I know if it is an attack or real traffic?

Check analytics and logs for unusual sources, user agents and repeated URLs.

Will my host protect me?

Many hosts protect against network attacks. Application attacks need CDN and firewall rules.

What is Under Attack mode?

A Cloudflare setting that challenges every visitor briefly during an attack.

Can a DDoS attack hack my site?

DDoS itself does not, but it can be used as a distraction. Check for other issues afterwards.

Free website audit

Get a free audit of your website

Tell me your URL and I'll send a short, prioritized list of the speed, SEO and security fixes that will make the biggest difference.

  • No obligation, no sales call
  • 5.0 rating on Google and Upwork
  • Reply within one business day
Written by Muhammad UsmanWeb Development Team Lead with 5+ years building WordPress, WooCommerce, Shopify and Wix websites. Experience · Certificates About me

More on Security

All Security articles

Have a project in mind?

Tell me what you're building and I'll reply with next steps and an estimate.