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:
To protect a specific section:
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.

Choose which pages require verification

This is a portal setting, not a wrangler.toml variable. Go to your worker in portal.veriox.ioConfigurationAutomated Trigger and choose Every page, Specific pages (list the URL patterns to protect, e.g. /shop/*), or Never if you’ll trigger verification manually. You can also scope this by visitor country — see location targeting.

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