An ecommerce site DDoS attack rarely announces itself the way retailers expect: no bandwidth graph pinned to the ceiling, no dramatic outage banner, just a checkout that takes eleven seconds to respond on the busiest Friday of the quarter, a scatter of 504s at the load balancer, and a support inbox filling with “payment failed”while the CDN dashboard reports a perfectly ordinary day. Bandwidth looks fine. That is usually the point.
Distributed denial-of-service (DDoS) attacks against online shops have shifted away from raw volume towards the handful of endpoints that cannot be cached and cannot be skipped: search, faceted filtering, cart, login, coupon validation and the payment callback. Those are the parts of the stack that hit the database on every request. This piece is a runbook for the hour an attack starts, and for the fortnight before it, when the decisions that determine how that hour goes are actually made.
What an ecommerce DDoS attack actually targets on your shop
Three surfaces belong to the retailer, and they fail in different ways.
The first is the network pipe: the transit into your hosting, saturated by volumetric floods (UDP reflection, amplified DNS or NTP responses, carpet-bombing across a /24). The second is the application layer, where HTTP requests are cheap for the attacker and expensive for you. The third is authoritative DNS, which is the layer most retailers leave sitting with a domain registrar on a free plan while paying four figures a month for web protection. Take DNS down and the shop is gone regardless of how well the HTTP layer is defended. Nobody reaches your beautifully scrubbed origin if the name never resolves.
Why a small Layer 7 flood hurts more than a big volumetric one
Consider a mid-sized Adobe Commerce (Magento) install behind a CDN. A few thousand requests per second aimed at /search?q= with randomised terms, each one stacking two or three facet filters, will bypass the page cache entirely because every URL is unique. Each request opens a database connection. Connection pool exhausts, PHP-FPM workers queue, the load balancer starts returning 502s and 504s, and the bandwidth graph stays flat enough that the first hour is spent looking at the wrong dashboard.
The same logic applies to add-to-cart, coupon code validation, account login and the postcode lookup on the delivery step. Anything that writes to session state, queries stock or calls a third-party API is a lever. Attackers who bother to browse the site first find these in about ten minutes.
Payment and fulfilment callbacks: the failure nobody plans for
Checkout is not a single request. It is a conversation between your site, a payment service provider (PSP), a 3-D Secure step at the card issuer, and a webhook coming back the other way to confirm the transaction. Under load, that conversation breaks in ugly ways: the shopper is charged but the order never lands in the ERP; the webhook retries against a timed-out endpoint and eventually gives up; the fulfilment feed to your 3PL falls behind. Reconciliation the next morning is often more expensive than the lost trading hours, and it is the part that finance remembers.
Who attacks shops, and why
Motive matters because it predicts timing. Ransom DDoS operators send a short demonstration burst of a few minutes, then an email demanding cryptocurrency with a deadline and a threat of something longer, and they time it for peak trading because that is when a retailer’s patience is thinnest. Competitor sabotage is harder to attribute and should be treated as an open question rather than an assumption, though the pattern of short attacks during flash sales is familiar to anyone who has run mitigation for consumer brands. Hacktivist targeting follows the news cycle and picks brands for what they represent. Retail has been in the firing line for years; the DDoS attack that took CafePress offline is an early example of the pattern that later became routine.
Attack, flash sale or bad crawler? Ten minutes to a working diagnosis
Genuine traffic converts. That single fact separates most incidents from most spikes.
If sessions triple while conversion rate collapses towards zero, and requests per session climb far above your normal browsing pattern, you are not looking at a successful email campaign. Check the source spread next: real UK retail traffic arrives from a wide mix of consumer ISPs and mobile carriers. Attack traffic tends to concentrate in a handful of autonomous system numbers (ASNs), often hosting providers or VPN ranges, and frequently in geographies you barely trade with.
Then read the machine evidence:
- Origin CPU and database connections high while inbound bandwidth is unremarkable points to a Layer 7 flood, not a volumetric one.
- Cache hit ratio falling off a cliff means requests are being crafted to miss cache, which is deliberate.
- 502/504 patterns clustered on a small set of paths tell you which endpoints to protect first.
Misdiagnosis is common and costly. A scraper hammering product pages for price comparison looks like an attack until you notice it respects a single user agent and crawls in order. A runaway marketplace feed integration can generate the same load profile. So can an expired intermediate certificate, or a database lock from a bulk product import that someone kicked off at 09:00 without telling anyone. Rule those out before you escalate, because a provider who receives three false alarms will treat the fourth accordingly.
Whatever the verdict, capture evidence while it is still in the buffer: precise timestamps with time zone, sample log lines showing the offending requests, the target URLs, request rates per minute, and the spread of source IPs and ASNs. Weak attack reporting is how retailers end up unable to prove anything to a PSP, an insurer or a board committee six weeks later.
The first 60 minutes: a runbook for a shop that is down
Print this. Put it somewhere that does not depend on the website being up.
Minutes 0 to 10: confirm scope from outside your own network
- Test the site from a mobile connection off the office network, and from a second geography if you have a colleague or a VPS available.
- Test DNS resolution separately from HTTP. Query your authoritative nameservers directly. A shop that fails to resolve is a different incident from a shop that resolves and times out, and the two go to different teams.
- Open the ticket with severity wording your contract recognises. “Site slow”gets queued. “Production checkout unavailable, suspected volumetric or Layer 7 DDoS, revenue impacting, requesting mitigation engineer”does not.
Minutes 10 to 30: establish who is authorised to act
This is the moment retailers discover what they actually bought. A self-service plan gives you a dashboard, a rules engine and a support queue. If nobody on the provider’s side is empowered to change a mitigation profile at 03:00 without your written sign-off, you have bought monitoring, not management. Define this in the contract long before you need it: onboarding, tuning of Layer 7 rules against your specific checkout and search paths, named escalation numbers with out-of-hours cover, and explicitly who may apply mitigation on your behalf. Our guide to managed DDoS protection in the UK goes into the contractual detail; the short version is that “managed”is a marketing word until somebody writes down what it obliges them to do.
Minutes 30 to 60: tactical controls that buy time
In rough order of how much collateral damage they cause:
- JavaScript or managed challenges on non-cacheable paths only (search, filters, login, cart), leaving product and category pages untouched.
- Rate limits per IP and per session on the endpoints identified in your diagnosis. Set them against your real 95th percentile, not a guess.
- A checkout queue, if your platform supports one. Slow is survivable. Broken is not.
- Geo or ASN blocking as a blunt last resort, and only for ranges you genuinely do not sell to. Blocking a whole country during an incident is a trading decision, not a technical one.
In parallel, someone commercial needs to pause paid media (every pound spent driving traffic to a dead checkout is burned), update the status page and brief customer service with a line that does not invite speculation, and start logging downtime minute by minute for the loss calculation later.
Origin IP leakage: why the proxy quietly stops protecting your checkout
When a proxied site gets flattened, the cause is more often a leaked origin address than an attack too big to absorb. The attacker simply goes around the front door.
The usual leak paths on retail stacks are depressingly consistent: an old A record still pointing at the previous host; transactional email (order confirmations, dispatch notices) sent directly from the web server, exposing the origin in the mail headers; a staging or dev subdomain on the same box; cPanel, webmail and FTP hostnames; historic certificates recorded in public certificate transparency logs; and direct-to-origin API endpoints built for a mobile app, an EPOS integration or a marketplace channel because someone found the proxy inconvenient.
Closing it is unglamorous work:
- Rotate the origin IP after going behind a proxy. If the old address is still live, the migration achieved nothing.
- Allow-list only the provider’s published IP ranges at the host firewall, and drop everything else on ports 80 and 443.
- Move outbound mail to a separate service or IP entirely.
- Audit every subdomain, including the ones marketing created for a campaign in 2019.
Authoritative DNS deserves its own budget line
Treat DNS as a project, not a checkbox on the registrar’s control panel. Anycast delivery, redundancy across two independent providers, and a rehearsed time-to-live (TTL) plan so an emergency reroute propagates in minutes rather than a day. Drop TTLs to 300 seconds a week before peak trading and put them back afterwards. Rehearse the failover once, with the person who would actually be awake at 02:00 doing the typing.
Choosing protection that fits an online shop, and what it costs
Three deployment models are realistic for retailers. A reverse proxy or CDN in front of the shop is the default for anyone on Shopify Plus, WooCommerce or a hosted Magento, and it handles Layer 7 properly. BGP scrubbing suits retailers who own their address space and run their own infrastructure. Hosting-level filtering, bundled by the platform or by a DDoS protected hosting provider, is the cheapest option and usually the least tunable; it protects the shared estate first and your checkout second. The trade-offs are set out further in this comparison of how the main mitigation providers differ.
Always-on versus on-demand is a different sum for a shop than for a corporate website. An on-demand BGP diversion that takes several minutes to complete can span an entire checkout window at peak, and those are minutes of failed payments, not a slightly late intranet. Always-on proxying removes that delay, at the cost of making every payment redirect and PSP webhook dependent on that provider’s own availability. Neither answer is universally right. Pick deliberately, and know which one you chose.
Ask who owns the network behind the badge
A large share of UK ecommerce protection is resold. The terabits-per-second figure on the datasheet may belong to an upstream scrubbing network three companies away, and your escalation path may run through a reseller’s support desk before it reaches anyone who can change a mitigation profile. Ask directly: whose network, what capacity is contracted to you specifically, and how many hops sit between your phone call and the engineer.
Then ask for evidence rather than a deck. Request a redacted sample attack report and check whether it lists attack vectors, packet and request rates, target URLs and mitigation timestamps. A report you can hand to your PSP, your insurer or your board is part of what you are paying for. Testing vendor claims properly is a discipline of its own, covered in more depth in this piece on judging protection claims against real attacks.
Build the case on downtime cost, not gigabits
Finance directors do not fund gigabits. Take annual online revenue, divide by trading hours to get a baseline hourly figure, then apply a peak multiple for Black Friday week, when checkout volume runs at several times a normal day for most consumer brands. Add the paid media spend that would burn during the outage window and an honest estimate of the carts that never come back. That number, not the attack size, sets your budget.
UK managed deals typically price as a monthly commit tied to clean bandwidth or request volume, with overage charges above it, sometimes a per-attack or emergency onboarding fee, plus one-off setup and rule tuning. Annual contracts with a peak-season uplift clause are common. Check current pricing directly with providers; the shape is stable, the numbers are not.
A pre-peak checklist you can run in a week
Contract evidence. SLA definitions expressed in seconds to mitigate rather than “rapid response”; a redacted sample attack report; a named escalation path with out-of-hours cover and a phone number that reaches a human; a documented change freeze covering the trading peak.
Proof of value. Run a controlled load test through the proxy with the provider’s knowledge and written permission. Rehearse a DNS failover. Dry-run your rate limits on search and login against real traffic in log-only mode first, because a mistuned limit will block your own customers faster than any botnet.
Application hardening. Cache product and category pages aggressively. Put challenges in front of login, coupon and account-creation endpoints. Offload search to a dedicated service so a flood cannot reach the primary database. Decide in advance what a degraded-but-trading site looks like: static product pages, no faceted filtering, checkout still live.
Legal and reporting. Unauthorised denial of service falls under the Computer Misuse Act 1990, as amended by the Police and Justice Act 2006. Report attacks and any extortion attempt to Action Fraud and, for significant incidents, to the National Cyber Security Centre. Tell your PSP and your insurer early. A pure DDoS does not usually touch personal data, but if the flood turns out to be cover for an intrusion, UK GDPR breach notification timelines to the Information Commissioner’s Office start running.
And on the ransom question, the guidance from UK law enforcement and the NCSC has not changed: do not pay. Payment funds the next campaign, marks you as compliant to other groups, and buys no enforceable guarantee. Preserve the email headers and the attack logs instead.
Frequently Asked Questions
How can I tell if my ecommerce site is under a DDoS attack or just having a traffic spike?
Look at conversion rate against session volume. Genuine spikes convert at roughly normal rates; attack traffic sends sessions up while conversions fall towards zero, with abnormally high requests per session. Concentration in a few ASNs or hosting ranges, a collapsing cache hit ratio and errors clustered on non-cacheable paths such as search and cart confirm the picture.
What should I do in the first hour of an ecommerce site DDoS attack?
Confirm the outage from outside your network, test DNS resolution separately from HTTP, then open a ticket using severity wording your contract recognises. Apply challenges and rate limits to the affected non-cacheable endpoints, pause paid media, and capture timestamps, sample logs and source data while they are still available. Escalate to a named contact rather than a generic support address.
Can a DDoS attack steal customer or payment card data?
A denial of service attack floods capacity; on its own it does not exfiltrate data. The risk is that a flood is used as cover while an intruder works elsewhere, or that emergency changes such as disabling a firewall rule create an opening. Review authentication logs and any configuration changes made during the incident before you close it out.
Does Shopify, Magento or WooCommerce hosting already include DDoS protection?
Most platforms and hosts include some baseline network filtering, and fully hosted platforms carry more of it than self-managed stacks. Baseline filtering is aimed at volumetric floods across shared infrastructure, not at application-layer attacks tuned to your search and checkout paths. Ask your host what it actually mitigates, how quickly, and whether anyone will tune rules for your site specifically.
Should we ever pay a ransom demand attached to a DDoS attack?
No. UK guidance from law enforcement and the NCSC is consistently against payment; it funds further attacks, identifies you as a paying target and secures no enforceable promise that the attack stops. Preserve the demand with full email headers, report it to Action Fraud, and put your effort into mitigation and evidence.
How much does managed DDoS protection cost for a UK online retailer?
Pricing is usually structured as a monthly commit tied to clean bandwidth or request volume, with overage above that level, plus one-off onboarding and rule tuning; per-attack or emergency onboarding fees appear in some contracts, and annual deals often carry a peak-season uplift clause. Quotes vary widely by traffic profile and by how much human response is included, so compare on defined response times and named escalation, not headline capacity. Justify the spend against revenue per trading hour at peak rather than against attack size, because that is the number that decides whether an ecommerce site DDoS attack costs you an hour or a quarter.

