Korzen
Bot Protection
In these docs

WordPress and WooCommerce

Bot Protection on WordPress without code: the plugin loads the tag and asks before a login, a registration and a WooCommerce checkout, and fails open.

On WordPress you write no server code: the Korzen Bot Protection plugin does the work of the tag and of the call. It loads the tag on your pages and the login page, and asks Bot Protection before a login, a registration (WordPress's and WooCommerce's) and a WooCommerce checkout, the classic one and the block one. When Bot Protection is slow (over 200 ms), down or answers anything unexpected, the visitor goes through. It needs WordPress 6.5 and PHP 8.2 or later.

Install

The plugin is in review for the WordPress.org directory: until it is listed, write to us for its zip. In WordPress, open Plugins > Add New Plugin > Upload Plugin, choose the zip, then activate it.

Settings

Open Settings > Korzen Bot Protection and paste the two keys from the Set-up page: the site key (YOUR_SITE_KEY), which the tag carries, and an API key, which your server sends. Once saved, the API key is never shown again. To keep it out of the database, define it in wp-config.php instead, and leave the field empty:

// wp-config.php, above "That's all, stop editing!"
define( 'KORZEN_API_KEY', 'your API key' );

Three more settings:

  • Mode. Monitor asks and lets everyone through, whatever the answer: start there, and watch the decisions in your dashboard. Block applies the answer's action, which stays allow until you turn on block mode on the Set-up page too (see monitor and block mode).
  • Visitor's IP. Behind a load balancer, a proxy or Cloudflare, every visitor seems to come from it. Choose the last X-Forwarded-For entry behind your own load balancer or proxy, or CF-Connecting-IP when your server takes traffic from Cloudflare alone; otherwise leave the connection.
  • Require the tag's token. Off by default. When it is on, in block mode a login, a registration or a checkout that brings no token the tag earned is answered block, so a script that never loads your pages cannot pass: the guard against card testing that Protecting a checkout describes. Turn it on in monitor mode first: your dashboard shows who would be blocked, and nobody is refused until block mode. It needs both keys: without the site key no tag loads, so the box is greyed out with the reason, and your choice is kept.

What it protects

  • Login: the login page, and WooCommerce's My Account login. Bot Protection is asked after WordPress checks the password, whether it was right or not, so a refusal tells a bot nothing about the password. A login over XML-RPC, the oldest way to try passwords in bulk, is asked as /xmlrpc.php, each one of a system.multicall in turn, without requiring the tag's token, since the apps that use XML-RPC never run it. Logins of apps over the REST API (application passwords) are not asked.
  • Registration: WordPress's registration page and WooCommerce's My Account registration. Spam registrations and fake sign-ups come in here. Comments and contact forms are not checked.
  • Checkout: WooCommerce's classic checkout and its block checkout.

Each is named in your dashboard as /login, /signup or /checkout, whatever your site's addresses.

What a visitor sees

In block mode, a visitor Bot Protection blocks gets the form's usual error, which says the request could not be completed and not why.

What it sends and stores

Before each protected action, your server sends Bot Protection the visitor's IP address, User-Agent, the headers the call lists, the tag's _kz token, the method and the action's name: never the password, the email or the order. The plugin stores only its settings, in one WordPress option, and deleting the plugin removes them.