Self-hosting

Web-Check on a VPS: audit a site's DNS, TLS and headers

Before taking over a client's site, after a migration, or when a certificate expires without warning, you end up opening ten online tools: one for DNS, one for TLS, one for headers, one for SPF. Web-Check brings them together in a single analysis. This guide installs it on your VPS with Docker Compose, turns off the checks that could earn you abuse reports, keeps the interface private behind an SSH tunnel and shows how to query its API from a script.

Deploy on a VPS Cloud →
6 min read3 steps
Contents· What Web-Check does1/11
  1. 01What Web-Check does
  2. 02What the analysis covers
  3. 03Online tools vs. Web-Check on your VPS
  4. 04Prepare the server
  5. 05Install Web-Check with Docker Compose
  6. 06What the configuration closes, and why
  7. 07Publishing the interface on a domain, with care
  8. 08Reading a report
  9. 09Query the API from a script
  10. 10Optional API keys and updates
  11. 11Install Web-Check in one click from the ServOrbit Marketplace

What Web-Check does

Web-Check is an open-source web tool, released under the MIT license. You enter a domain name or an address, and it runs about forty checks in parallel: DNS records and DNSSEC, TLS certificate and connection, HTTP headers and security policy, redirects, email configuration, cookies, robots.txt, sitemap, detected technologies and a screenshot of the page.

Each result is shown in a card, and each check also answers in JSON through an API. The project's public service is often overloaded or rate-limited; your own instance analyses as many sites as you need, from your server.

What the analysis covers

  • DNS — A, AAAA, MX, NS, TXT and CAA records, DNS server and DNSSEC signature.
  • TLS — issuer, validity dates, covered names and certificate chain, HSTS.
  • Security headers — Content-Security-Policy, X-Frame-Options, Referrer-Policy, Permissions-Policy.
  • Email — MX servers, SPF and its DNS lookup count, DMARC, DKIM.
  • Content — redirects, cookies, trackers, robots.txt, sitemap, security.txt.
  • Context — detected technologies, server location, screenshot.

Online tools vs. Web-Check on your VPS

Scroll the table

Separate online toolsWeb-Check on your VPS
Number of toolsOne per checkA single report
Usage limitsQuotas and queuesThose of your server
AutomationRarely an APIJSON API per check
Analysed sitesVisible to the serviceStay on your server
CostFree or subscriptionA small VPS

Prepare the server

Plan for an Ubuntu 24.04 VPS with 1 GB of RAM. Web-Check fits in a single Node.js container, with a bundled Chromium for screenshots, and has no database: about 70 MB of memory at rest, up to about 200 MB during an analysis.

Install Docker and create the application's folder:

apt update && apt install -y docker.io docker-compose-v2
mkdir -p /opt/web-check && cd /opt/web-check

Install Web-Check with Docker Compose

  1. Write the docker-compose.yml file

    The port is published on 127.0.0.1 only: the interface does not answer from outside. The two API_ variables close the risky checks and the internal targets (see the next box).

    services:
      web-check:
        image: lissy93/web-check:2.4.5
        restart: unless-stopped
        environment:
          PORT: "3000"
          API_DISABLED_CHECKS: "ports,trace-route"
          API_BLOCKED_HOSTS: "localhost,127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,169.254.0.0/16,100.64.0.0/10"
        ports:
          - "127.0.0.1:8131:3000"
        healthcheck:
          test: ["CMD", "node", "/app/healthcheck.js"]
          interval: 15s
          timeout: 5s
          retries: 10
          start_period: 30s
  2. Start the container

    The image's health check answers on /healthz within a few seconds:

    docker compose up -d
    docker compose ps
    curl -s http://127.0.0.1:8131/healthz

    The answer "status":"ok" with "ready":true means that every check is loaded.

  3. Open the interface through an SSH tunnel

    From your computer, open a tunnel to the server's local port, then go to http://localhost:8131 in your browser:

    ssh -N -L 8131:127.0.0.1:8131 root@<your-vps-ip>

    As long as the tunnel is open, the interface is yours alone.

What the configuration closes, and why

Web-Check can scan the ports of the analysed machine and run a traceroute to it. Run from your VPS against servers that are not yours, these two checks look like a network scan, and can earn your IP address abuse reports. API_DISABLED_CHECKS disables them.

API_BLOCKED_HOSTS refuses localhost and the private ranges as targets: nobody can use the tool to probe your own server or your internal network. The filter applies to the address entered, not to the result of DNS resolution: it is an extra safeguard, not isolation.

Publishing the interface on a domain, with care

Web-Check has no accounts and no password. Publishing it on a domain therefore opens it to everyone: any visitor could run analyses from your server. The SSH tunnel remains the right answer for team use.

If you want a permanent address, put it behind nginx with HTTPS and HTTP basic authentication (auth_basic and a file created with htpasswd), or behind your identity provider. Keep the port published on 127.0.0.1: only nginx should be able to reach it.

Reading a report

Enter a domain, for example your own site's, and start the analysis. The cards fill in as the checks complete. Three of them reveal most common flaws:

- TLS certificate: the expiry date, and the covered names. A certificate that does not cover www is an outage waiting to happen.
- Security headers: every missing header is flagged. Start with Strict-Transport-Security and Content-Security-Policy.
- Email configuration: an SPF record that exceeds ten DNS lookups is invalid, and a domain without DMARC lets anyone send in its name.

A few cards show "skipped": either the site lacks the element being checked (no sitemap), or the check requires an API key (next section).

Query the API from a script

Each check is an API route: /api/<check>?url=<site>. The /api route on its own returns the full report in one call. On the server, or through the tunnel:

curl -s 'http://127.0.0.1:8131/api/ssl?url=example.com' | jq '.valid_to'
curl -s 'http://127.0.0.1:8131/api/http-security?url=https://example.com'
curl -s 'http://127.0.0.1:8131/api?url=example.com' > report.json

A monitoring script can thus record every night the expiry date of the certificates of a portfolio of domains, or check that a header is still present after each release. The full report takes a few seconds; space out your calls if you analyse dozens of domains.

Optional API keys and updates

Most checks work without any configuration. A few query external services that require a key: Google's quality score and Safe Browsing (GOOGLE_CLOUD_API_KEY), and Shodan (SHODAN_API_KEY). Add them to the environment section of the file, then run docker compose up -d again.

Web-Check keeps no data: there is nothing to back up apart from the docker-compose.yml file. To update, change the image tag to the version you want, as published on the project's releases page:

cd /opt/web-check
# change the image tag in docker-compose.yml, then:
docker compose pull && docker compose up -d
docker image prune -f

Install Web-Check in one click from the ServOrbit Marketplace

The ServOrbit Marketplace installs this same configuration on your VPS: official image, port scanning and traceroute disabled, internal addresses refused as targets, interface published on the loopback. The application works without a domain: you open it through an SSH tunnel, using the port shown in your client area.

All that is left is to run your first analysis, then plug the API into your scripts.

Share this articleservorbit.com/ma-en/blog/self-host-web-check-vps-audit

Your website audits from your VPS

Prices shown excluding VAT, with their renewal price.