Documentation

Up and running in minutes

Install the agent, point it at your upstream, watch it in detect mode, then enforce.

Quick start

  1. Install the agent

    Run the one-line installer on your Linux host as root. It downloads the prebuilt, checksummed binary, installs the obsidianwaf systemd service, and starts in detect mode — no build step, no source tree.

    # token comes from your Fleet console → Add a host
    curl -fsSL https://get.obsidianwaf.com/install | sudo sh -s -- --token <YOUR_TOKEN>
  2. Point it at your upstream

    Set your routes, TLS and dashboard auth in the agent config, then reload with no downtime.

    sudo nano /etc/obsidianwaf/config.yaml
    sudo systemctl reload obsidianwaf
  3. Watch it in detect mode

    It logs what it would block without blocking anything. Trigger a detection and watch it land on the dashboard (kept on 127.0.0.1:9090 — reach it over an SSH tunnel).

    # trigger a detection through the WAF
    curl "https://your-site/?q=1%20UNION%20SELECT%20password%20FROM%20users"
    curl -A "sqlmap/1.7" https://your-site/

    # reach the dashboard over an SSH tunnel
    ssh -L 9090:127.0.0.1:9090 root@your-host
  4. Enforce

    When you're confident, set rules.mode to block in the config and reload. Blocked responses carry X-ObsidianWAF: blocked and X-ObsidianWAF-Rule headers.

Guides

Deeper references in the product documentation.

Enabling the bot challenge

Gate unproven clients behind a JS proof-of-work interstitial. Set a stable secret so solved passes survive restarts.

challenge:
  enabled: true
  secret: "a-long-random-string"
  difficulty: 16  # ~65k hashes; raise to 18–20 to cost bots more

Verify it in a real browser: you'll see "Checking your browser…" briefly, then the page loads and an obsidianwaf_pass cookie is set. curl sees the interstitial (HTTP 503) but can't solve it — which is the point.

Prefer a guided setup?

We'll help you roll out in detect mode and tune for your traffic before you enforce.