Blog
EN
Contact

How to test your website for DDoS: what to know before using an online tester

How to test your website's DDoS resilience legally and safely: the risk of online DDoS testers, what goes in a test plan, which tools to use and what to measure.

6 min read By: Twinlike
Corridor between two rows of server racks in a data centre

Searching for “DDoS test online” and typing your site’s address into a form takes a few minutes. Cleaning up afterwards can take much longer. This post explains how to test the DDoS resilience of a website or application legally and safely, what belongs in a test plan and which numbers to look at in the results.

The problem with online DDoS testers

Most of the “stresser” and “booter” sites that show up in search results sell attacks dressed up as a testing service. They usually send traffic from networks of compromised servers and devices. Europol and US law enforcement have taken down dozens of these sites in a series of actions called Operation PowerOFF, and some of their users have been prosecuted.

Even when the site is yours, three problems remain:

  1. Before the traffic reaches your server it crosses your hosting provider’s and CDN’s networks. Testing without their permission can breach your service agreement and get your account suspended.
  2. Other customers sharing the same server or network can be affected, and disrupting someone else’s system is a crime in most countries.
  3. You do not hold the stop button. You cannot control when or how the traffic ends.

Cloud providers set rules for this too. AWS and Microsoft Azure allow DDoS simulations on their infrastructure only through approved testing partners and with advance notice. Read your other providers’ rules before you plan a test.

Settings to check before any test

Many weaknesses can be found without sending a single request. Before a controlled test we look at the following:

  • Is the origin server’s real IP address exposed? If old DNS records, email headers or subdomains reveal it, an attacker can bypass the CDN and hit the server directly.
  • Does the origin accept traffic only from the CDN’s IP ranges?
  • Do the pages that cost the most to serve, such as search, login, cart and reports, have rate limits, and are the thresholds realistic?
  • Do cache rules cover dynamic pages, or does every request reach the database?
  • When an attack starts, who gets alerted, and through which channel?

Every “no” on this list is a risk you can fix without sending test traffic.

What goes into a safe DDoS test plan

The test plan is a written document you share with your providers and your team. It should cover at least:

  • Targets: the domains, IP addresses and applications to be tested. Where possible, the test runs against a copy of the live system.
  • Permissions: written approval from the system owner, the hosting provider and the DDoS protection provider.
  • Time window: the hours with the least traffic. The technical team and the provider should be reachable throughout.
  • Scenarios: which kind of traffic goes to which pages, at what rate. Network-layer (L3/L4) and application-layer (L7) scenarios are planned separately.
  • Steps: traffic starts low and increases in stages.
  • Stop conditions: the error rate, response time or real user complaints that end the test immediately.
  • Contacts: who calls whom during the test, and who decides to stop it.

You can try the application layer yourself

Network-layer tests need large volumes of traffic and should only be run with approved partners. At the application layer, though, you can learn a lot on your own test environment with open-source load testing tools such as k6, Locust and Apache JMeter.

The k6 script below ramps traffic up in stages and fails the test if the error rate goes above 1% or the 95th percentile response time goes above 800 milliseconds. Replace the URL with your own test environment:

import http from 'k6/http';
import { sleep } from 'k6';

export const options = {
  stages: [
    { duration: '2m', target: 50 },
    { duration: '5m', target: 200 },
    { duration: '2m', target: 0 },
  ],
  thresholds: {
    http_req_failed: ['rate<0.01'],
    http_req_duration: ['p(95)<800'],
  },
};

export default function () {
  http.get('https://test.yourdomain.com/search?q=test');
  sleep(1);
}

Traffic from a single machine does not represent a real attack. What it shows is which page strains the system first and when rate limiting starts blocking requests from that source. If rate limiting never kicks in, that is a finding.

Which numbers to look at in the results

A DDoS test does not end in a simple pass or fail. The report should show these measurements:

  • Response time and error rate: the slowdown and the share of errors real users see as traffic grows.
  • Bottleneck: the load at which the system struggles, and in which component (web server, database, load balancer).
  • Time to mitigation: the second at which malicious traffic is filtered, and how much of it reached the origin before that.
  • Time to alert: when the first warning reached your team.
  • Recovery time: how long the system takes to return to normal response times after the test ends.

Some providers combine these into a single resiliency score. When you read your score, check which scenarios produced it. A high score earned only with network-layer traffic tells you nothing about an application-layer attack.

After the report

Most findings are configuration changes: moving the origin to a new address that only the CDN can reach, putting separate rate limits on expensive pages, widening the cache and fixing alert thresholds. When code changes are needed, they usually involve slow database queries and pages that cannot be cached.

Run the same scenarios again after the fixes, or you will not know whether the changes worked. Write a short response plan alongside the report that says who does what during an attack.

Conclusion

You do not need to type your address into an online tester to learn how well your site handles DDoS. Review the settings first, try the application layer on your own test environment, and run high-volume tests only with your providers’ permission and through approved partners.

We can plan and run this process for you. A settings review, coordination with your providers, a controlled test and the report are all part of our DDoS resilience testing service. We fix the bottlenecks we find through server and IT management, and check the rest of your web application with a web application penetration test. If you would like to talk through a test plan for your system, get in touch.

Bu yazı Türkçe olarak da mevcut — Türkçe oku →

Frequently Asked Questions

It is risky even when the site is yours. Most of these services run on networks of compromised devices, and the traffic also crosses your hosting provider's and CDN's infrastructure. Testing without the provider's written permission can breach your contract, and paying for these services has led to prosecutions in several countries.

They use similar tools but answer different questions. A load test measures where real user traffic starts to strain the system. A DDoS resilience test measures whether your protection layers (CDN, WAF, rate limiting) separate malicious traffic and whether the alert arrives in time.

Whenever the protection provider, architecture or hosting changes, and before busy periods such as campaigns or ticket sales. For systems that do not change, a yearly test is a reasonable starting point for most companies.

Your first project,
live in weeks.

Book a Free 30-Min Call
NEWSLETTER

Stay ahead in software, design and cybersecurity.

New articles, our reports and the security alerts that matter, straight to your inbox. Unsubscribe with one click at any time.

Or follow us on LinkedIn

Your Data, Your Call.

We use cookies to keep the site working, measure performance and improve your experience. Accept all, decline the extras, or choose what stays. Cookie Policy