Appearance
Bot mitigation
Symptoms of bot mitigation: TLS and HTTP fingerprints, scores, challenges, CAPTCHAs, login protection, behaviour thresholds, verified bots and signed agents, and bot lists.
Bot events show no JA4 or JA3
- Cause: the request came over a plain HTTP listener (TLS fingerprints exist only on HTTPS listeners), or the connection was opened before bot mitigation was turned on. Envoy keeps a connection's listener settings until it closes.
- Check: the event's
bot.ja4hstarts with the HTTP version (ge11orge20); the access log'stls_versionis empty for plain HTTP. - Fix: serve the application on an HTTPS listener. New connections get fingerprints.
A real browser is refused or logged with bot.http.* or bot.tls.*
- Cause: the browser lacks a trait that its user agent's family normally has (a privacy extension that strips headers, an unusual build, or an in-app browser with a desktop user agent). Or a proxy in front of the node removes headers (
Accept-Language,Sec-Fetch-*), or terminates TLS itself, in which case the JA4 is the proxy's. - Check: the event's bot score card, which lists the signals and the user agent.
- Fix: mark the event as a false positive (an exception for those signals and the client's JA4). If a proxy strips headers, fix the proxy, or set
fingerprints.consistency=false. Report browser cases so that the trait rules can be corrected.
Many users behind one address are refused together
- Cause: clients are scored by address, so one client's signals raise everyone's score behind a shared NAT or a corporate proxy.
- Check:
waap events list -client ADDRESS -rule bot.score. - Fix: if the proxy is yours, add it to
trusted_proxiesso that clients are told apart byX-Forwarded-For. Otherwise add an exception, or an access rule with actiontrustandskip: [bots]for the address list, or raise the step of the ladder that refuses.
A mobile app's fingerprint changed after a release
- Symptom: the app's requests are no longer named as the known client.
- Cause: the app or the OS changed its TLS library or settings, so its JA4 changed.
- Check: the Fingerprints tab shows a new JA4 with the app's user agent.
- Fix: add the new JA4 to the known client. Keep the old one until old versions are gone.
A real search engine is not allowed (verification: pending or failed)
- Cause: pending means its published ranges were not fetched yet (no internet access, or
bot_catalog.fetch_ranges: false) and the reverse-DNS check is queued. The first requests from a new address are ordinary clients by design. Failed means the address is in none of the bot's ranges and its DNS name is not the bot's, or a proxy in front of the node hides the real client address (add that proxy totrusted_proxies). - Check:
waap bots catalog -category search_engine(range fetch status);waap bots classify -ua "..." -ip ADDRESS -app APP; the metricwaap_bot_verifier_lookups_total(manyerrorordroppedresults mean the resolver is slow or the queue is full). - Fix: let the control plane reach the range URLs, or verify by an address list (
bot_catalog.botswithip_lists). Fix the node's DNS resolver.
A mobile app or script is scored as bot.category.http_library
- Cause: its user agent is an HTTP library's (okhttp, python-requests, curl). It is scored by default (30 points), not refused.
- Fix: name your own app as a known client, or set
categories.http_librarytolog. For one client, add an exception forbot.category.http_library.
Browsers get the challenge page again and again
- Cause: the token cookie is not kept or does not verify. Possible reasons: the browser blocks cookies for the site; the page is served over HTTPS but the site sets cookies for another host; the client's network changes beyond
challenge.bind.ipv4_prefixoripv6_prefix(mobile networks, some VPNs); its TLS fingerprint changes between connections (some privacy browsers); or the key that signed the token was rotated out twice (manual rotations). - Check: the event's bot score card: "Challenge token: expired" (lifetime or rotation) or "invalid" (binding);
waap bots challenge-keys list -app APP; the browser's cookiewaap_bot. - Fix: widen the binding (
challenge.bind.ipv4_prefix=16), turn offchallenge.bind.tls_fingerprint, lengthenchallenge.token_ttl, or lower the score that reaches the step (with exceptions for the signals).
The challenge page says "The check did not complete"
- Cause: the verification answer was refused. The page was open for more than two minutes (the challenge expired), the client's address or TLS stack changed in the meantime, or the verification path is blocked by an access rule or another proxy.
- Check:
waap_bot_challenges_total{result="expired"|"failed"}; requests to/.waap/verify(or yourchallenge.path) in the access log. - Fix: reload the page, and allow POST to the challenge path in front of the node.
Challenge steps only log ("no signing key yet", "not a page navigation")
- Cause: the application has no signing key yet (the active node makes one within ten seconds; a standby, or a control plane that is not running, makes none). Or the request is not a page navigation: API calls, assets and scripts never get a challenge (
non_browser). Or the path is inchallenge.skip, or the client is a known client. - Check: the
bot.scorereason text;waap bots challenge-keys list -app APP. - Fix: wait for the key, or check that the active node's control plane runs. To refuse non-browsers at challenge steps, set
non_browser=block.
An API client or app is refused at a challenge step
- Cause:
non_browserisblock, so clients that cannot run a challenge are refused. - Fix: set
non_browser=log, name the app as a known client, or cover the path with the application's API protection (described API paths are never challenged).
Tarpit steps refuse at once
- Cause:
tarpit.max_concurrentrefusals are already held on this node (the reason says "tarpit full"), or the module is in detect mode. - Fix: raise
tarpit.max_concurrentif the node has room. The refusal applies either way.
The CAPTCHA widget does not appear, or every answer is refused
- Cause: no secret is set (the self-hosted CAPTCHA is shown instead, and the
bot.scorereason says "no ... secret set"); a wrong site key for the domain (the widget shows the provider's error); a wrong secret (answers are refused withbot.challenge.failed, "refused by the provider"); or a browser extension blocks the provider's script. - Check:
waap bots captcha get -app APP;waap bots captcha test -app APP("the secret is refused (invalid-input-secret)"); the events withbot.challenge.failed. - Fix: set the right secret (
waap bots captcha set) and site key, and register the site's hostnames with the provider.
CAPTCHA answers fail with "unavailable" (503), or pass with a short token
- Cause: inspection could not reach the provider within
captcha.timeout: no outbound HTTPS from the inspection node, a proxy is needed, or DNS fails. Fail-closed applications answer 503; fail-open ones issue a 5-minute JavaScript-level token. - Check:
waap_bot_challenges_total{kind="captcha",result="unavailable"};waap bots captcha test -app APPrun from the control plane, which may use a different network path than inspection on split deployments. - Fix: allow outbound HTTPS from inspection nodes to the provider, or set
captcha.proxy, or raisecaptcha.timeout.
Login failures are not counted (waap bots logins shows attempts, no failures)
- Cause: the application signals failure differently: a 200 with an error page, or a redirect to another prefix. Or the method or path does not match (
/loginversus/login/). - Check:
waap bots logins -app APP(are attempts counted at all?); the application's answer to a wrong password (status andLocation). - Fix: set
failure_statusorfailure_locationto what the application answers. A failure that is visible only in the response body cannot be detected, by design, because bodies are not inspected.
Users are asked for a CAPTCHA on login during an attack, or an app's login is refused
- Cause: a
per_usernameorglobalthreshold with an action holds, because of an attack on that account or a stuffing run. App and API logins getnon_browser(or are refused withblock). The reason isbot.login.usernameorbot.login.global. - Fix: expected during an attack. For apps, prefer
weightthresholds or name the apps as known clients. Lower the window or raise the counts if legitimate traffic trips them.
An office, school or mobile carrier is challenged with bot.behavior.*
- Cause: many people behind one address count as one client. Together they request many distinct paths (
bot.behavior.crawl) or hit many 404s (bot.behavior.scan). - Check:
waap bots clients -app APP(the address and its counts against the thresholds); the event's signals. - Fix: people there can pass the challenge (the default ladder). For a known office, put its address in an address list and add an exception for
bot.behavior.*withwhen: { ip_lists: [office] }, or raise the threshold.
A monitoring tool or search engine trips the scanning threshold
- Cause: it requests many paths that do not exist (link checkers, uptime checks of old URLs) or well-known paths (
/.well-known/, or security scanners you run yourself). - Fix: verified bots in an allowed category are not counted. Name your own tools as known clients, or add an exception for
bot.behavior.scanfor their address list.
A signing agent's requests are not verified (or are bot.signature.invalid)
- Cause: its key directory was not fetched (no internet from the active node,
fetch_ranges: falsewithout configured keys, or an error page). The agent rotated its keys after the last fetch (every 12 hours). The node's clock is off by more than a minute. Or the signature does not cover@authorityorsignature-agent, or carries notag="web-bot-auth". - Check:
waap bots agents list(keys and fetch status); the event's reason text names the failure (expired, unknown key, does not verify); the node's time. - Fix: let the active node reach the agent's origin, or list its keys (
waap bots agents add ... -keys). Fix the clock with NTP.
The Clients view or the dashboard's bot card is empty
- Cause: nodes publish clients and verdict counts every 10 seconds, and only clients with a positive score are listed. The inspection role writes them to its node's store; a standby shows the active node's data after replication.
- Check:
waap bots clients -app APP; the node's log for "storing bot clients" or "storing bot verdicts" errors. - Fix: wait 10 seconds and reload. Check that the inspection role runs on that node.
waap bot-lists refresh fails, or a fetched list shows an error
- Cause: the URL is unreachable, is not https, is larger than 50 MiB, or returned no fingerprints (an error page). Or the node is the standby, and lists are fetched by the active node.
- Check:
waap bot-lists get(error column); the control plane's log line "fetching a list failed". - Fix: correct the URL or the feed. The last good copy stays in use meanwhile.
waap bots set: "fingerprint list ... is not defined", or bot-lists set refused
- Cause: a deny or allow list must exist in
bot_listsbefore an application names it, and a list that is still named cannot be removed. - Fix: define the list first (
waap bot-lists set), or remove it from the applications'fingerprints.deny_listsorallow_listsbefore deleting it.