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

SharkCaptcha – Bot Protection for Login, Comments & Forms

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

SharkCaptcha – Bot Protection for Login, Comments & Forms

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

Description

SharkCaptcha protects your WordPress forms from bots without making people pick traffic lights. Visitors tick one box; their browser quietly solves a small proof-of-work challenge, and your site checks the result before it accepts the form.

Free. The plugin is free, and a free CDNShark account includes 5 protected sites.

What it protects

  • WordPress: login, registration, lost password, reset password, comments
  • WooCommerce: My Account login and registration, lost password, checkout (optional)
  • Contact Form 7: every form, or exactly where you put the [sharkcaptcha] tag
  • WPForms: every form

Each area has its own on/off switch.

Why SharkCaptcha

  • No image puzzles. One click, about a second, done.
  • No tracking cookies. SharkCaptcha sets no cookies and builds no profile of your visitors.
  • You can’t lock yourself out. If our service is unreachable, logins go through by default, and one line in wp-config.php switches the plugin off.
  • Checks your setup. Saving your keys tests them against your site’s domain, so a typo shows up on the settings page, not as a login form that refuses everyone.
  • Light, dark or automatic to match your theme.
  • Clean uninstall. Deleting the plugin removes all its settings.

What it doesn’t do

No CAPTCHA stops every attacker. SharkCaptcha stops automated spam, sign-up and login bots by making every attempt cost real work. Someone solving it by hand, or a bot written specially to solve it, needs other defences too, such as rate limiting and a firewall.

Getting started

  1. Create a free CDNShark account.
  2. In the dashboard open CAPTCHA → Add site and enter your site’s domain.
  3. Paste the site key and secret under Settings → SharkCaptcha and save.

Full guide: SharkCaptcha for WordPress

External services

This plugin relies on SharkCaptcha, a service provided by CDNShark, to tell people from bots. It cannot work without it.

  • In the visitor’s browser: on pages that show a protected form, the browser loads the SharkCaptcha widget from https://captcha.cdnshark.com/captcha/v1/api (with its stylesheet) and requests a challenge from https://captcha.cdnshark.com/captcha/challenge. As with any web request, this sends CDNShark the visitor’s IP address, browser user agent and the address of the page. No cookies are set.
  • From your server: when a protected form is submitted, your site sends the one-time token from the form and your SharkCaptcha secret to https://captcha.cdnshark.com/captcha/siteverify to check it. When you save your keys or press “Test connection”, your site also sends your site key (with your site’s address) and secret to the same service.

No other data is sent, and nothing is sent from pages without a protected form.

  • Terms of Service: https://cdnshark.com/policy/terms
  • Privacy Policy: https://cdnshark.com/policy/privacy

Screenshots

The SharkCaptcha checkbox on the WordPress login page.
The SharkCaptcha checkbox on the WordPress login page.
Dark theme.
Dark theme.
Settings → SharkCaptcha: your keys and the forms to protect.
Settings → SharkCaptcha: your keys and the forms to protect.
Options: theme, IP allowlist, fail-open, XML-RPC, username discovery and login lockout.
Options: theme, IP allowlist, fail-open, XML-RPC, username discovery and login lockout.

Installation

  1. Install SharkCaptcha from Plugins → Add New and activate it.
  2. Create a free CDNShark account and add your site under CAPTCHA.
  3. Go to Settings → SharkCaptcha, paste the site key and secret, choose the forms to protect and save.

You can keep the keys out of the database by adding them to wp-config.php instead:

define( 'SHARKCAPTCHA_SITEKEY', 'sck_...' );
define( 'SHARKCAPTCHA_SECRET', 'scs_...' );

FAQ

I can’t create a CDNShark account yet.

CDNShark sign-up opens on December 15, 2026. You can install SharkCaptcha before then: until both keys are saved it changes nothing on your forms.

Is it really free?

Yes. The plugin is free and a free CDNShark account includes 5 protected sites. Extra sites are $1 per month each.

I locked myself out. What now?

Add define( 'SHARKCAPTCHA_DISABLE', true ); to wp-config.php. SharkCaptcha switches off, you can log in and fix the settings, then remove the line.

What happens if CDNShark is down?

By default, forms are let through and the settings page shows when it happened, so an outage on our side never locks you out of your own site. You can choose to block forms instead.

The checkbox says “Verification failed”.

Usually the site key doesn’t match this site’s domain. In your CDNShark dashboard set the CAPTCHA site’s domain to your WordPress domain (it covers www. and other subdomains), then press Test connection in the plugin.

My site has a Content Security Policy.

Allow https://captcha.cdnshark.com in script-src, style-src and connect-src, and blob: in worker-src (the check runs in a small background worker).

Does it work with caching plugins?

Yes. Every visitor’s browser fetches its own challenge, so cached pages are fine.

Does it support the WooCommerce block checkout?

Not yet. Version 1.0 supports the classic (shortcode) checkout. My Account forms work with any setup.

Does it work with XML-RPC, the REST API or application passwords?

They are left alone: they can’t show a checkbox. Only logins through the login form are checked.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“SharkCaptcha – Bot Protection for Login, Comments & Forms” is open source software. The following people have contributed to this plugin.

Contributors
  • CDNShark

Translate “SharkCaptcha – Bot Protection for Login, Comments & Forms” into your language.

Interested in development?

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

Changelog

1.0.2

  • New option to hide usernames from public pages: blocks the REST users list (/wp-json/wp/v2/users), the users sitemap and ?author=N scans an attacker uses to discover login names before a brute-force run. Logged-in users and application-password API clients are unaffected. Off by default.
  • New login lockout: temporarily blocks an IP after a configurable number of failed logins, covering wp-login.php and WooCommerce. Works even when the verification service is briefly unreachable. Allowlisted IPs are never locked out. Off by default.

1.0.1

  • New option to block XML-RPC (xmlrpc.php): disables XML-RPC logins and removes the system.multicall and pingback methods, which bypass the login CAPTCHA and are a common brute-force and pingback-DDoS vector. Off by default.

1.0.0

  • First release: WordPress login, registration, lost and reset password, comments; WooCommerce My Account and checkout; Contact Form 7; WPForms.

Meta

  • Version 1.0.2
  • Last updated 1 hour ago
  • Active installations Fewer than 10
  • WordPress version 6.0 or higher
  • Tested up to 7.1.5
  • PHP version 7.4 or higher
  • Tags
    anti-spamcaptchacommentslogin securitywoocommerce
  • Advanced View

Ratings

No reviews have been submitted yet.

Your review

See all reviews

Contributors

  • CDNShark

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