Skip to main content

Add a Cloudflare Worker Route

After deploying the worker, you need to tell Cloudflare to run it on requests to your domain.
  1. In the Cloudflare dashboard, go to Workers & PagesOverview
  2. Click your worker, then go to SettingsTriggersAdd Route
  3. Set the route pattern
To protect your entire site:
example.com/*
To protect a specific section:
example.com/members/*
To protect multiple paths: Add multiple routes — one per path.
Veriox will only show the verification popup to visitors who do not already have a valid session cookie. Visitors who have verified previously pass through silently.

Exclude paths from verification

Some paths should never require verification — your homepage, marketing pages, login page, etc. You can configure exclusions in wrangler.toml:
[vars]
VERIOX_EXCLUDE_PATHS = "/,/about,/contact,/login"
Requests matching these paths will be served without the verification check.

Verify the configuration

Visit your site in an incognito window. You should see the Veriox verification popup. If you do not:
  • Check that the Worker Route pattern matches your URL
  • Check that Cloudflare proxying (orange cloud) is enabled for the domain
  • See the testing guide for a full checklist