Skip to content
WordPress.org
  • Showcase
  • Plugins
  • Themes
  • Hosting
  • News
    • Learn WordPress
    • Documentation
    • Education
    • Forums
    • Developers
    • Blocks
    • Patterns
    • Photos
    • Openverse ↗︎
    • WordPress.tv ↗︎
    • About WordPress
    • Make WordPress
    • Events
    • Five for the Future
    • Enterprise
    • Gutenberg ↗︎
    • Job Board ↗︎
  • Merch ↗︎
  • Get WordPress
Get WordPress
WordPress.org

Plugin Directory

Korzen Bot Protection

  • Submit a plugin
  • My favorites
  • Log in
  • Submit a plugin
  • My favorites
  • Log in

Korzen Bot Protection

By korzen
Download
  • Details
  • Reviews
  • Installation
  • Development
Support

Description

Korzen Bot Protection distinguishes people from bots before the actions bots abuse: creating accounts (spam registrations and fake sign-ups), guessing passwords, and buying out stock or testing stolen cards at checkout. This plugin connects your site to it without code:

  • It loads Korzen’s tag on your pages and the login page, which reads the browser itself.
  • Before a login, a registration (WordPress’s and WooCommerce’s) and a WooCommerce checkout (classic and block), your server asks Bot Protection about the request.
  • Comments, Contact Form 7’s forms and WPForms’ forms are asked about too, once you turn each on, monitored first: a comment Bot Protection blocks goes to the spam queue, where you can still approve it; a Contact Form 7 form gets its spam message and sends no mail; a WPForms form shows the refusal and saves no entry.
  • In monitor mode it only asks: everyone goes through, and the decisions show in your Korzen dashboard. In block mode it refuses what Bot Protection blocks.
  • Optionally, the protected actions require the tag’s token: a script that never loads your pages is refused. Turn it on in monitor mode first, and watch who would be refused in your dashboard.
  • There is no CAPTCHA and no puzzle: people register, log in and pay as before, while the tag reads the browser in the background.

You need a Korzen account: https://korzen.dev/bot-protection

The guide: https://korzen.dev/bot-protection/docs/wordpress

External services

This plugin connects to Korzen Bot Protection, a service by Korzen (https://korzen.dev), to tell people from bots.

  • On every page and the login page, the visitor’s browser loads Korzen’s tag from korzen.dev, which sends Korzen what it reads of the browser and how the visitor uses the page, and keeps a token in the _kz cookie.
  • Before a login, a registration, a checkout, and a comment or a contact form when you turn them on, your server sends Korzen the visitor’s IP address, User-Agent, a few request headers (Accept, Accept-Encoding, Accept-Language, the Sec-CH-UA and Sec-Fetch headers, Upgrade-Insecure-Requests), the names of the request’s headers in the order they came (never their values), the _kz token, the request’s method and which action it is. It never sends the password, the email, the order or what a comment or a form says.

Terms: https://korzen.dev/legal/terms
Privacy policy: https://korzen.dev/legal/privacy

Screenshots

The settings: the two keys from your Korzen dashboard, monitor or block mode, where the visitor's IP comes from, and whether the tag's token is required.
The settings: the two keys from your Korzen dashboard, monitor or block mode, where the visitor’s IP comes from, and whether the tag’s token is required.
In block mode, a checkout Bot Protection blocks: the shopper sees the store's usual error, never the reason.
In block mode, a checkout Bot Protection blocks: the shopper sees the store’s usual error, never the reason.

Installation

  1. Install and activate the plugin.
  2. In your Korzen dashboard, open the Set-up page and copy the site key and an API key.
  3. In WordPress, open Settings > Korzen Bot Protection, paste both keys, and save. Start in monitor mode.
  4. Watch the decisions in your dashboard for a few days, then switch to block mode.

To keep the API key out of the database, add it to wp-config.php instead:

define( 'KORZEN_API_KEY', 'your API key' );

Behind a load balancer, a proxy or Cloudflare, set “Visitor’s IP” to match, or every visitor looks like your proxy. Behind several proxies of your own (a CDN in front of your load balancer), choose the X-Forwarded-For entry and set “Proxies in front” to how many there are: the entry your outermost proxy wrote is read.

Behind Amazon CloudFront, Azure Front Door, Vercel, bunny.net, Google Cloud’s load balancer or Fastly, set “CDN” to it, and turn on the header the settings page names: the CDN forwards the visitor’s TLS fingerprint (JA4), which Bot Protection reads. Name a CDN only if your server takes traffic from it alone: anyone who reaches the server another way could send that header.

If a custom rule on your Korzen Custom rules page lets your own monitor or script through by a secret header, put that header’s name in “Custom rules’ headers” (by commas, such as X-Monitor-Key): the plugin then sends it with each decision. A cookie, Authorization and the other headers a rule may not name are never sent.

FAQ

Is it an anti-spam plugin?

For spam registrations, yes: it stops the scripts that create accounts on WordPress and WooCommerce, and the logins and checkouts they try next. For comments, Contact Form 7 and WPForms, it stops the bots that submit them, once you turn each on in the settings (monitor first, then block). Spam a person types is judged by its text, which a content filter such as Akismet does: use both.

Does each comment or contact form count as a decision?

Yes: each one asked is one decision on your Korzen plan, as a login or a registration is. Turn on only the forms bots reach on your site, and watch them in monitor mode first.

What happens if Korzen is down?

Everyone goes through. The plugin waits at most 200 ms for an answer, and treats no answer as allow.

What does a blocked visitor see?

The form’s usual error area says the request was refused, without saying why, and gives the decision’s reference, so a person refused by mistake can give it to you; search it in your Korzen dashboard.

Does it protect XML-RPC or the REST API?

XML-RPC logins, yes: the oldest way to try passwords in bulk. Each login on xmlrpc.php is asked as /xmlrpc.php, every one of a system.multicall in turn, without requiring the tag’s token, since the apps that use XML-RPC never run it. In block mode a block refuses one, and once one is refused the rest of that request are refused too. If nothing on your site uses XML-RPC, turn it off.

REST API logins (application passwords) are not asked: they come from apps you set up, not from a form.

What does the plugin store?

Its settings, in one option: the API key (unless wp-config.php holds it), the site key, the mode, where the visitor’s IP comes from and behind how many proxies, the CDN in front, whether the tag’s token is required, the names of the custom rules’ headers, and whether comments, Contact Form 7 and WPForms are asked about. Deleting the plugin removes them. It stores nothing about visitors.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Korzen Bot Protection” is open source software. The following people have contributed to this plugin.

Contributors
  • korzen

Translate “Korzen Bot Protection” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

3.2.0

  • Comments, Contact Form 7 and WPForms are asked about, each once you turn it on in the settings: off by default, then monitor (nobody refused) or block. A comment Bot Protection blocks goes to the spam queue; a Contact Form 7 submission gets its spam message and sends no mail; a WPForms submission shows the refusal and saves no entry.
  • “Proxies in front”: the visitor’s IP read behind several proxies of your own.
  • A CORS preflight goes through with no decision, and a refusal names the decision’s reference.

1.0.0

  • The first release: the tag on every page and the login page, and Bot Protection asked before a login, a registration (WordPress’s and WooCommerce’s) and a WooCommerce checkout (classic and block), in monitor or block mode, failing open (a challenge without a challenge page included); optionally, the tag’s token required on those actions; a decoyed refusal answered by the theme’s korzen_bot_protection_decoy, or else by the default decoy, 202 with {}.

Meta

  • Version 3.2.0
  • Last updated 9 hours ago
  • Active installations Fewer than 10
  • WordPress version 6.5 or higher
  • Tested up to 7.1.5
  • PHP version 8.2 or higher
  • Tags
    anti-spambot protectionfake signupslogin protectionwoocommerce
  • Advanced View

Ratings

No reviews have been submitted yet.

Your review

See all reviews

Contributors

  • korzen

Support

Got something to say? Need help?

View support forum

  • About
  • News
  • Hosting
  • Privacy
  • Showcase
  • Themes
  • Plugins
  • Patterns
  • Learn
  • Documentation
  • Developers
  • WordPress.tv ↗
  • Get Involved
  • Events
  • Donate ↗
  • Merch ↗
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org

The WordPress® trademark is the intellectual property of the WordPress Foundation.

  • Visit our X (formerly Twitter) account
  • Visit our Bluesky account
  • Visit our Mastodon account
  • Visit our Threads account
  • Visit our Facebook page
  • Visit our Instagram account
  • Visit our LinkedIn account
  • Visit our TikTok account
  • Visit our YouTube channel
  • Visit our Tumblr account
Code is Poetry