Guide · Testing · 8 min read

How to test your bot defence before a launch.

A launch is the wrong moment to learn that your bot defence has a gap. This guide sets out how to test it beforehand, in plain English, and which lines not to cross.

Start with a question, not a tool

Most teams begin by asking whether their defence works. That question is too vague to test. A better one is: for this flow, on this date, how much automated traffic of each kind gets through, and how many real customers are stopped on the way?

Write the flow down first. Sign-up, checkout, a promotion, a login and a catalogue page are different flows with different risks. Testing one flow at a time gives a result you can act on; testing everything at once gives a number nobody can explain.

Test on a staging copy that matches production

A test run on a setup that differs from production tells you about that setup, not about production. Check that staging uses the same defence product, the same rules, the same origin behaviour and the same rate limits.

Where staging cannot match production, write the differences down and say that the results apply to the staging configuration only. The most common reason a test is meaningless is that the defence was switched on only in production, on the day of the launch.

Get authorisation and scope before any traffic

Get written authorisation that names the hosts, the test window, the test accounts you may create and a stop contact who will answer throughout the run. Anything not named is out of scope.

Write down what you will not do as well: no traffic to production, no use of real customers' data, and no attempt to defeat verification steps. If the authorisation is not signed, you do not have a test. You have a guess dressed up as one.

Set a request budget and keep to it

Decide the number of requests before the run, and check the count before each request is sent. A budget protects your staging environment, and it protects the test from itself: a script that loops by mistake can flatten the very thing you were trying to measure.

Record how many requests were sent. When the budget is spent, stop, even if the picture is not finished. An unfinished result that says so is more useful than a complete-looking one that quietly ran past its limits.

Tiers run from simple scripts to real browsers

Automated traffic comes in tiers of sophistication. At the simple end are scripts using an HTTP library with its default settings. They are easy to spot, and they show whether a defence stops the obvious.

Next come clients that imitate a browser's network handshake, then clients that also send a realistic set of browser headers. At the far end is a real browser engine driven by a script with few pauses and few requests. It behaves far more like a person than a simple script does, yet it is still automation.

A defence that stops only the simplest tier has not been tested against the others. Report each tier separately, so a weakness at one level cannot hide behind a good average at another.

Measure false positives as carefully as blocks

A block rate tells you how much automated traffic was stopped. It says nothing about the real customers who were stopped too. Keep a baseline: a normal browser session, driven through the same flow, that should pass every time.

If the baseline is challenged or blocked, the defence is turning people away, and that is a finding in its own right. Track the baseline on every run. A tighter rule that catches more bots and more customers is not a win until you know the second number.

Keep evidence you can check

Keep the raw record of each request and response, not only a summary. Store it somewhere the people reading the report can open, and write down how each figure was counted: what counts as reached, challenged and completed.

Where a stage did not run, say so. A missing result reported as zero looks exactly like a clean run, and it is the error most likely to mislead a launch decision. Seal the evidence when the run ends, so nobody can quietly change it afterwards.

What not to do

  • Do not test production without the owner's written consent for that exact test.
  • Do not use test traffic to fill a live queue, drain stock or affect real customers.
  • Do not try to defeat anti-fraud, identity or verification controls. Measure them and report what they do.
  • Do not use credentials you were not given, and do not collect more data than the test needs.
  • Do not let a test run past its budget or its window to get a cleaner result.

A test that breaks something has failed, however much it found.

Test early enough to act

Run the test several weeks before the launch, so there is time to fix what it finds and test again. A result that arrives the day before the launch can only be worried about, not acted on.

Then compare the result with your operational picture: who watches the launch, how quickly they would notice a change, and what they would do about it. A defence and a team need to be ready together.

Next step

Check where you stand.

The launch readiness check takes about two minutes. It asks ten questions about the basics covered above and returns a band and one plain sentence for each gap. It runs in your browser and stores nothing.

If you have a launch, sign-up or promotion coming up and want an independent view, book a 20-minute call. We agree one flow and a test window on the call, and nothing is signed until the scope is agreed.