Get started
Domain verification
Prove that you may test a system.
Swarmetry only generates load against systems you are allowed to test. Three checks apply, in this order, when you estimate or start a run (and when a monitoring check is created):
- Valid and not forbidden. Cloud metadata addresses are always refused. Private, loopback and link-local addresses are refused unless the platform allows private targets.
- Site to test of the project. The host must match one of the project's sites to test.
A site given as a bare domain (
example.com) also admits itswww.host (www.example.com), the usual redirect of a bare domain; any other subdomain needs its own entry or a*.wildcard. - Verified domain: the host must be covered by a verified domain of your organization. A verified domain covers itself and all its subdomains.
Every test needs this verification, whatever its size.

Verify a domain
From a project: Sites to test. When an organization administrator adds a site, the values to publish appear under it at once and stay there until the domain is verified, with the two check buttons; a site whose verification is not started yet has a Verify button that starts it. The Ownership column shows where each site stands, and other members see whom to ask. Or Administration > Domains > Add a domain. Choose one of the two methods:
| Method | What you do |
|---|---|
| DNS TXT | create a TXT record at _swarmetry-challenge.<your-domain> with the value swarmetry-verification=<token> |
| File | serve https://<your-domain>/.well-known/swarmetry-verification (or http://) whose body is the token |
Then click Check DNS or Check file. IP addresses have no DNS name: use the file method, or ask Swarmetry support to validate manually (the reason is audited). A failed check is explained (no record, mismatch, file not found, redirect to another host, blocked address...). You can retry every 5 seconds.
The file check is hardened: only ports 80 and 443, redirects only to the same host, at most 4 KiB read, certificates verified, and addresses checked when the connection is made.
A bare domain that redirects to www. (example.com answers every address with a redirect to www.example.com)
cannot be proved with the file: the check does not follow the redirect and says so. Either use the DNS record for
example.com (it covers www.example.com too), or add www.example.com as its own domain and verify it with its own
file; your tests then use the www. addresses.
Removing a verified domain makes later runs against it fail with "target not verified".
When a run is refused
The start dialog lists every host with a verdict: not allowed (add it to the project), unverified (verify the domain),
private or metadata (never accepted). In a scenario built in the editor or imported from a recording, an address that
is only data of a request (a Referer or Origin header, a field of the body) is not a host of the test and is not
judged; in a free script every address written in the script is. Large runs may also need an approval (see
Administration).