Blog / How the internet works /

Bot protection on the edge

A lot of the traffic hitting your website isn’t human. Some of it is helpful: search engine crawlers, uptime monitors, link preview fetchers. A lot of it isn’t: scrapers copying your content, scripts guessing passwords, bots testing stolen cards, fake signups and scanners probing for old vulnerable plugins.

You can deal with that traffic inside your site, with plugins and rules. Or you can stop it before it reaches your server at all. That second approach is bot protection on the edge.

What “the edge” means

The edge is the part of the network closest to the visitor, before requests arrive at your own server. Services such as Cloudflare, Fastly and others run networks of servers around the world, and they sit in front of your site. Every request goes through them first.

I explained how this arrangement works in what is a CDN, and do you need one? and Cloudflare explained: what it does for a small website.

Because the edge sees traffic from huge numbers of sites, it can spot patterns that a single site can’t: an address that has been attacking others, a browser behaving oddly, a request pattern that looks automated.

An analogy: the doorman

Picture a venue with a doorman at the entrance. Your server is the dance floor. Without a doorman, every troublemaker walks in and your staff deal with them inside, tying up the whole room. With one, most problems are turned away at the door, and the dance floor stays calm.

The trade-off is that a doorman can wrongly turn away a guest, and a clever troublemaker can sometimes talk their way past.

What edge bot protection actually does

Typical tools include:

  • Reputation checks. Traffic from addresses known for abuse is challenged or blocked.
  • Behaviour and fingerprint analysis. The service looks at how the client behaves: does it run JavaScript, how fast does it make requests, does the browser details look genuine?
  • Challenges. Suspicious visitors may see a quick check, ideally invisible, before being let through.
  • Rate limiting. Too many requests from one source in a short window get slowed or blocked.
  • Rules you set. For example: protect the login page more strictly, or block requests to paths that don’t exist on your site.
  • Machine-learning scoring. Some services give each request a “bot score” that you can use in rules.

Some of these features are included on free plans, and the more advanced ones usually come with paid tiers. Check the current plan details of whichever provider you use rather than assuming.

What it’s good at

What it can’t do

Honesty matters here, because no bot filter is perfect.

  • It won’t stop everything. Determined bots mimic real browsers, use residential addresses and solve challenges. It’s an arms race.
  • It can block real people. Visitors on shared networks, privacy tools or older browsers sometimes get challenged repeatedly. Every false positive is a lost customer.
  • It doesn’t fix a vulnerable site. If a plugin has a hole, edge filtering may reduce attempts, but you still need to update. See keeping plugins, themes and core updated safely.
  • It doesn’t replace sensible form protection or two-factor authentication.
  • It adds a dependency. If the edge provider has trouble, your site can too, as the recent Cloudflare outage showed.

Good bots, bad bots, and the grey area

Not all automated traffic is hostile. Bad bots vs good bots draws the line, but in practice there’s a grey area:

  • Search engine crawlers need access, or your pages won’t be indexed. Reputable edge tools recognise verified Googlebot and Bingbot, but a badly written custom rule can still block them. After any change, check that important pages are still reachable by search engines, for example with the URL inspection tool in Search Console.
  • Uptime and monitoring tools may get challenged. Allow-list the ones you use.
  • Payment and webhook callbacks come from automated systems. If you block them, orders may stop completing.
  • AI crawlers are a separate decision. You may choose to allow or block them; I explained the options in AI crawlers explained: GPTBot, Google-Extended and the rest.
  • Your own tools, such as speed testers and crawlers you run for audits.

A sensible setup path

  1. Start with a baseline. Before changing anything, look at your traffic and logs. How much is bots? Which paths do they hit?
  2. Turn on the provider’s standard bot protection at a moderate level.
  3. Use “log” or “challenge” modes first where available, rather than outright blocking. Watch what would have been affected.
  4. Protect the sensitive paths hardest: the login page, checkout, signup, password reset, search and contact forms.
  5. Add rate limits to those same paths.
  6. Allow-list the legitimate automation you rely on: monitors, payment callbacks, your own scripts.
  7. Check Search Console for crawl errors after changes, and test key pages with and without a typical bot user agent.
  8. Review the logs weekly at first, then monthly. Adjust where genuine users were challenged.
  9. Keep a way to bypass it in emergencies, and know how to switch it off if it misbehaves.

Things to avoid

  • Blocking whole countries without thinking. If your customers or search crawlers might come from there, you’ll lose real traffic. Use it only with a clear reason.
  • Setting the strictest level on day one. You’ll find the false positives the hard way.
  • Challenging every visitor. It slows conversions.
  • Forgetting mobile and accessibility. Test challenges on a phone and with assistive tools.
  • Trusting user-agent strings alone. Anyone can fake them.

What to measure

  • Share of traffic challenged or blocked
  • Changes in server load and response time
  • Spam submissions and failed login attempts
  • Conversion rate and checkout completion (to spot false positives)
  • Crawl errors and indexing in Search Console

If blocking bots makes the numbers worse for real customers, you’ve tuned too hard.

Key takeaways

  • Edge bot protection filters traffic before it reaches your server.
  • It reduces scraping, brute force, spam and junk load, but never perfectly.
  • Be careful to let verified search crawlers, payment callbacks and your own monitors through.
  • Start gently, log first, then tighten, and watch for false positives.
  • Pair it with updates, strong logins and form protection.

If you use an edge service already, open its bot or security log this week and look at what’s being challenged. You may be surprised how much of your traffic is not who you think.