Skip to main content
GetWCAG accessibility scanner logo

Scan a local site

Check a site running on your own computer before you deploy it. A free Cloudflare Tunnel gives localhost a temporary public URL that GetWCAG can scan.

Checking every pull request?

CI checks scan your app inside GitHub Actions, with no tunnel and no public URL.

1. Install cloudflared#

macOS
brew install cloudflared
Windows
winget install --id Cloudflare.cloudflared

For Linux and other systems, see Cloudflare's downloads page (opens in a new tab).

2. Start your site#

Start your development server as usual and note its port, like 3000.

Terminal
npm run dev

3. Open a tunnel#

In a new terminal window, point a tunnel at your site. Change the port if yours is different:

Terminal
cloudflared tunnel --url http://localhost:3000

After a few seconds it prints a public URL ending in trycloudflare.com, like https://quiet-river-1234.trycloudflare.com. Copy it.

4. Scan it#

In GetWCAG, run a Single page scan on the tunnel URL, one page at a time. Tunnel URLs run on Cloudflare, so you'll see a Cloudflare warning: choose to continue. Fix what's found in your code and scan again.

5. Stop the tunnel#

Press Ctrl + C in the tunnel's terminal. The public URL stops working right away, and a new tunnel gets a new URL. That's why tunnels suit single page checks, not projects or schedules.

Keep it safe#

  • Anyone with the tunnel URL can open your local site while it runs. Don't share it.
  • Don't leave a tunnel running when you're not scanning.
  • Don't run it against a local site that holds real customer data or production credentials.