Guides

Installing KanaryGate: Cloudflare Worker or WordPress plugin

About five minutes on Cloudflare, three on WordPress. Nothing changes for your readers, search crawlers keep the normal page, and if anything goes wrong your site carries on as before.

Published · Last reviewed by the KanaryGate editorial team

What gets added to your site

  • Two hidden links on each page, pointing to a path such as /cg-archive/. People can't see them, screen readers skip them, and keyboards don't reach them.
  • One line in robots.txt under every group: Disallow: /cg-archive/. Honest crawlers read this and never follow the links[3], so anything that does has ignored your rules.
  • A dated fingerprint of each page version, sent once when the page changes, so you can show what you published first.

Nothing is stored about ordinary visitors. See canary tokens for content for how the evidence works, and our guide to AI crawlers and your website for the wider strategy.

Install on Cloudflare (about 5 minutes)

  1. In the Cloudflare dashboard, open Workers & Pages, choose Create, then Create Worker. Name it kanarygate and deploy the starter code.
  2. Choose Edit code, replace everything with the KanaryGate Worker script, and deploy.
  3. Open the Worker's Settings → Variables and secrets and add a secret called CG_SITE_KEY containing your site key.
  4. Open Settings → Domains & Routes and add a route for your site, for example www.yoursite.co.uk/* (and yoursite.co.uk/* if you use both)[1].

The Worker needs no Cloudflare API token, and verified search crawlers keep getting your page unchanged.

Install on WordPress (about 3 minutes)

  1. Download the KanaryGate WordPress plugin (zip).
  2. In WordPress, go to Plugins → Add New → Upload Plugin, choose the zip, install and activate it[2].
  3. Go to Settings → KanaryGate, paste your site key and save.
  4. Optional: tick Block scrapers to block any address that takes the bait for 24 hours. This is your built-in containment if you're not on Cloudflare.

If your site has a physical robots.txt file rather than WordPress's built-in one, the plugin shows a notice with the exact line to add.

Test it

  1. In a private browser window, open https://yoursite.co.uk/cg-archive/test. You should see a plain page titled "Archive index". The test link never triggers blocking.
  2. Open https://yoursite.co.uk/robots.txt and check it includes Disallow: /cg-archive/.
  3. Within a minute, your dashboard shows "Honeypot active".

What you'll see next

Most sites see their first catches within a day or two. Your dashboard shows who took the bait (by network and disguise), whether they read your robots.txt first, the latest catches, and blocking rules built from what was caught. The daily email digest and Slack alerts can be set up under Settings.

To mark priority pages and approve trap facts, open the "Priority pages and trap facts" panel in the dashboard. Nothing changes on a page until you approve it.

Frequently asked questions

Will this slow my site down?

No noticeable amount. The Worker adds two small links as the page streams to the visitor, and all reporting happens in the background after the page has been sent.

What happens if KanaryGate is unavailable?

Your site carries on as normal. The Worker and plugin are built to fail open: if anything goes wrong, visitors get your page without the trap links, and reports are simply skipped.

Does it change what search engines see?

On Cloudflare, verified search crawlers get your page exactly as before. The trap links point to a path your robots.txt forbids, so honest crawlers never follow them, and they're marked nofollow.

I use a caching plugin on WordPress. Is that a problem?

The honeypot works with caching. Trap facts (wording variants on priority pages) show one combination to everyone on cached pages, so exclude your priority pages from the cache if you use trap facts.

Will my own SEO tools get caught?

Only if they ignore robots.txt. Site-audit crawlers in their default settings obey it, so they never follow the trap links. If you set one to ignore robots.txt, it will follow them and show up in your catches. That's accurate: it ignored the rules. You'll recognise it in the dashboard by its user agent and your own network. Add its address, or its name, to the allow-list in your dashboard settings: its visits are then left out of your counts, digest and alerts. If you use the WordPress plugin's optional auto-block, also add the tool's address under Settings → KanaryGate → Never block, or it will be blocked for 24 hours.

Where do I find my site key?

In your welcome email. If you've lost it, sign in to your dashboard, open Settings and reset it. The old key stops working immediately, so update your Worker or plugin straight away.

My site isn't on Cloudflare or WordPress. Can I still use KanaryGate?

Yes. The quickest route is putting the site behind Cloudflare's free plan, which is a DNS change rather than a hosting move, then installing the Worker. Email us if that isn't possible; the protocol is simple enough to add to most servers.

Sources

  1. Cloudflare Workers: routes, Cloudflare Docs. Accessed 4 December 2026.
  2. Manage plugins, WordPress.org. Accessed 4 December 2026.
  3. RFC 9309: Robots Exclusion Protocol, IETF. Accessed 4 December 2026.