What a botnet swarm is
The old picture of a bot attack is a handful of servers in a data center hammering your site. You'd spot the addresses in your logs, block them, and move on. A swarm is different. The requests come from thousands or hundreds of thousands of ordinary home internet connections, each one sending only a few requests, together adding up to a flood.
Those home connections are usually residential proxies: devices whose internet connection is rented out so that someone else's traffic can leave through it. Some owners install "earn money from your spare bandwidth" apps knowingly. Many don't know at all, because the proxy software arrived inside malware or came preinstalled on a cheap device.
The scale became clear this month. On November 2, 2026, Krebs on Security reported that Google and industry partners had dismantled a botnet called XCPE. It had turned more than 1.3 million Android TV boxes into residential proxies, with the boxes' addresses resold through several proxy services. Google's researchers expect the takedown to cut off at least 10 million more infected devices. The same report describes residential proxy services as a major source of account takeover attempts, advertising fraud and mass content scraping for AI projects. Earlier in the year, the FBI seized hundreds of domains linked to another proxy provider it said ran a botnet of its own.
Takedowns like this help, but the market they supply is still there. If your site has content worth copying, prices worth tracking, or logins worth trying, plan on seeing swarms.
What one looks like from the server
Here's a real example from a small online store we protect, with identifying details removed.
One afternoon the store's two server CPUs went to 100% and stayed there. The traffic logs showed a steady stream of requests to the shop page with filter parameters, every combination of color, size and category the shop could produce, at roughly one request a second. Each filtered page was built fresh by the store software and took about a second and a half to generate, so the server never caught up. Real shoppers got slow pages or timeouts.
Every request carried an up-to-date Chrome user agent. The addresses belonged to a mobile carrier at first, then to a cable internet provider, the same networks the store's real customers use. No single address sent more than a handful of requests before the next one took over. The crawler ignored robots.txt completely.
That's the pattern to recognize:
- The target is something expensive to generate: search results, filtered product lists, add-to-cart and cart pages, login forms, or anything else that skips your cache.
- Lots of addresses, few requests each: the total is high, but every address looks like a light user.
- The requests look like browsers: current user agents, normal-looking headers, home and mobile IP addresses.
- It persists. Block a range and the traffic moves to another one within minutes.
Why the usual defenses don't work
- Blocking IP addresses is whack-a-mole with millions of moles. Worse, residential and mobile addresses are shared and reassigned. The address a bot used an hour ago may belong to one of your customers tomorrow, and mobile carriers put many phones behind the same address.
- Per-IP rate limits never trigger, because no single address is busy. A limit of 30 requests a minute per address does nothing against 2,000 addresses sending 3 each.
- Blocking by user agent works for bots that tell the truth about what they are and fails against ones that pretend to be Chrome.
robots.txtis a polite request. Swarms don't read it.- Geo blocking helps against attacks from countries you don't sell to, but residential proxies let attackers pick addresses in your own country, often in your own region.
- CAPTCHAs on every page stop bots and customers alike, and the more determined bots pay services to solve them.
None of these is useless. Each one still removes some of the traffic. But on their own they're built for the old picture, and a swarm walks around all of them. What works is a set of layers that make the attack expensive and the target cheap.
Make the expensive pages cheap
A swarm hurts because each request costs your server real work. Reduce that cost and the same swarm becomes background noise.
- Cache everything you can, at the edge if possible. A page served from cache costs almost nothing, no matter who asks for it.
- Find your uncacheable endpoints. Search, faceted filters, cart and checkout, login and account pages are the usual list. Those are the pages to protect hardest.
- Limit how many filter combinations exist. A shop with ten filters that can be stacked in any order has a practically endless number of URLs. Cap how many filters can be combined, and mark filtered pages
noindexso legitimate search engines stop crawling them too. - Give the origin a connection limit. If your proxy or load balancer holds excess requests in a queue instead of passing them all through, the origin keeps serving at its best speed, and the queue becomes a clear signal that you're under pressure (more on that below).
Limit by what's being hit, not just who
Since the swarm spreads itself across addresses, put limits on the target as well. A rule like "no address may load the shop's filter pages more than 30 times a minute" still matters, because a real shopper won't come close and a sloppy bot will. Then go further on your most expensive paths:
- Use tighter limits on expensive paths than on the rest of the site, so your homepage isn't held to the same limit as your search endpoint.
- Limit by method. Real visitors rarely send many POST requests to a login form; a credential-stuffing run does.
- Run new limits in log-only mode first to see what they would have blocked before they block anyone.
Challenge instead of block
When you can't tell a bot from a customer by address, make each request prove something. A challenge page runs a short check in the visitor's browser and lets them through. A real browser passes once and carries on, while a scraping script either can't run the check at all or has to spend real computing time on every request.
- A JavaScript check stops the simplest scripts, which never run JavaScript.
- A proof-of-work puzzle makes the browser do a small amount of computation. It's invisible to one person loading one page and expensive for a swarm loading a million pages.
- An interactive check, such as dragging a slider, is the strongest option and adds the most friction, so keep it for the paths under the heaviest attack.
Scope challenges to the paths that are actually being hit. Challenging the filter pages while the product pages, cart and checkout stay friction-free stops the attack without costing you sales.
Tighten up only when you're under load
Most of the time, your site can absorb its bot traffic without anyone noticing. The problem is the hour when it can't. So instead of challenging everyone all the time, challenge only while the origin is struggling.
The simplest trigger is the origin connection queue described above. When requests start waiting for the origin, switch on a challenge for page visits. When the queue has been empty for a while, switch it off again. Real visitors only ever see a challenge during an attack, and the attack stops getting through precisely when it would have done the most damage.
Leave the requests that must never be challenged alone: background requests from your own pages, payment and webhook callbacks, admin areas and APIs used by apps.
Look past the IP address
Addresses are cheap for an attacker to change. Some other properties are harder to fake consistently:
- Header consistency. A request claiming to be Chrome but missing the headers Chrome always sends (such as
Sec-Fetch-ModeandAccept-Language) is lying about something. - Honest tools. Plenty of bots identify themselves as
curl,python-requests, Go or Java HTTP clients. No real visitor browses a shop with them, so there's no reason to let them into anything sensitive. - The network, not the address. When a swarm concentrates on one provider's address range, a temporary block or challenge on that range catches the next thousand addresses before they're used. Expire it, because the range also holds real people.
- TLS fingerprints. The way a client sets up an encrypted connection identifies the software behind it. A script claiming to be Chrome usually doesn't connect the way Chrome does.
Treat declared AI crawlers separately
Not every heavy bot is a disguised swarm. Many AI companies run crawlers that identify themselves honestly, and some of them still crawl hard enough to slow a small site down. Handle these on their own terms:
- Keep search engines welcome. Blocking Googlebot or Bingbot removes you from search.
- Decide what you want for each AI crawler and say so in
robots.txt. The well-behaved ones respect it. - Block or rate-limit by user agent the ones that don't respect it. Expect to need more than one rule, because a single company can run several differently named crawlers.
An incident playbook
When the site slows down and the logs fill up, work through these in order:
- Find the target. Group recent requests by path. A swarm nearly always concentrates on one or two paths.
- Protect that path first. Turn on a challenge for it, or a tight per-address limit, before you try to identify the attacker.
- Look for a shared trait. A query parameter, a user agent, a header that's always missing, or one or two networks supplying most of the addresses.
- Block on that trait, with an expiry if it's an address range.
- Make the target cheaper once the fire is out: cache it, limit filter combinations, mark it
noindex. - Write down what worked, because the same swarm, or the next one, will be back.
How ShieldIngress handles swarms
ShieldIngress sits in front of your site and handles each of these layers at the edge, before a request reaches your server:
- Bot Challenge offers an invisible JavaScript check, a proof-of-work puzzle and a drag-to-verify slider, scoped to the paths you choose. In heuristic mode it challenges only requests that don't look like a real browser, including scripts that honestly identify as tools like
curlorpython-requests. - Overload Protection challenges page visits only while your origin's connection queue is backed up, and turns itself off once the queue clears. WordPress admin and API paths, WooCommerce callbacks and non-page requests are exempt automatically, and you can exempt your own cookies.
- Under Attack mode puts every visitor on a domain through a bot check with one click, for an hour, a day or until you turn it off. The Incident tab shows the paths, networks, countries and IPs hitting the domain in the last 15 or 60 minutes.
- Rate limiting by path, query parameter, HTTP method and country. A limit can count each address on its own or all clients combined, which is what catches a swarm whose addresses each stay under a per-address limit. It can block or send visitors to a challenge, and log-only mode tests a limit before it acts.
- Request-match rules to block or require a particular header, query parameter or cookie, so a crawler with a distinctive user agent or parameter can be stopped by that trait.
- IP rules, network blocks and Geo Blocking. Blocks can expire on their own, Traffic Logs show the network behind each request, and you can block a whole provider's network for a set time. Bulk blocking across all your domains and ready-made country groups are included.
- AI crawler controls per domain, plus verified Googlebot and Bingbot checks, so you can let real search engines through and block bots that only pretend to be them.
- A managed web application firewall built on Coraza and the OWASP Core Rule Set, for the login attacks and exploit attempts that often ride along with a swarm.
- Edge caching on the Pro plan, so cacheable pages never reach your server at all.
- Traffic Logs and alerts that show every request the edge blocked and why, plus alerts for WAF spikes, repeat offenders and swarms (an unusual number of different addresses suddenly on one path), so you can see where an attack is landing while it's happening.
For a look at what's hitting the sites we protect each week, including the most common attack types and where they come from, see our weekly security report.
Stop the next swarm at the edge
Put your site behind ShieldIngress and get bot challenges, overload protection, rate limiting and a managed WAF, with a 7-day free trial on every plan.