Free Captcha Protection by MJ Studios
Free captcha for WordPress that replaces Google reCAPTCHA, hCaptcha and Cloudflare Turnstile.
Install in
Most captchas stop spam by making your visitors do the work. Tick the box, then pick out every traffic light anyway. Free Captcha Protection hands that job to the visitor’s browser, so people just fill in your form and press send.
As soon as someone starts using a protected form, their browser works through a small proof-of-work calculation in the background. On most devices it takes about a second, usually while the person is still typing. Bots that post straight to your forms never run it, so they arrive without a valid answer and get turned away.
All of it happens on your own server. The plugin never talks to Google, Cloudflare or anyone else, and it sets no cookies. There’s no account to create and no API key to paste in. It’s free.
We made it for the client sites we build and look after at MJ Studios. Now you can use it on yours.
Replaces Google reCAPTCHA, Cloudflare Turnstile and hCaptcha
Google reCAPTCHA, Cloudflare Turnstile, hCaptcha and Friendly Captcha all ask you for an account and a site key, and each loads its script from the provider’s servers. This plugin does the same job from your own server. It’s free, and there’s nothing to sign up for.
Switch the old captcha off, activate this one, and the forms below are protected straight away. You don’t have to edit a single form.
Works with the forms you already have
The plugin sees which form plugins are active and protects their forms by itself. Each one has a switch under Captcha Protection > Settings, so you can leave any of them out.
- WordPress login, registration, lost password and comments
- WooCommerce lost password, plus login, registration and the classic checkout once you switch them on
- Fluent Forms (its conversational forms aren’t covered yet)
- Contact Form 7
- WPForms
- Gravity Forms
- Ninja Forms
- Formidable Forms
- Forminator
- WS Form
- Everest Forms
- Elementor Pro forms
- Kadence Blocks forms
- MetForm
- HappyForms
- Jetpack Forms
- Bricks forms
- Any other form, using the
[mjscp_captcha]shortcode andmjscp_verify()
Forms built with Divi, Beaver Builder, Otter Blocks, Spectra and Brizy are protected as well, but we call those experimental for now because they haven’t run on many real sites yet. If one of them gives you trouble, switch it off in Settings and tell us in the support forum.
Protection is on with sensible defaults from the moment you activate it.
What your visitors notice
Ideally, nothing.
- Nothing loads until someone interacts with a form, so your page speed stays where it was.
- The widget stays hidden. If a submission is turned away, the message shows up where the form puts its other errors.
- If someone presses submit before the answer is ready, the form waits a moment and then sends itself.
- Each answer works once. The widget then fetches a fresh challenge, so AJAX forms can be sent again without a page reload.
- Forms that send without reloading the page work, and so do forms in popups and pages with more than one form.
- The work runs in Web Workers using the browser’s built-in crypto, with a pure JavaScript fallback for older browsers and sites on plain HTTP.
- Page caching is fine, because challenges are fetched fresh when a form is used.
When the check can’t run
Now and then the check can’t finish in someone’s browser. A privacy extension might block the script, or a strict network might block the request for a challenge. Rather than turn a real person away, the plugin sends the form anyway and leans on its other checks: the honeypot, the time spent on the form and the spam score.
These submissions show up as “Let through” on the Activity screen. Each IP address gets three an hour and the whole site gets 50, so bots can’t use this as a way around the proof of work. A fault in the plugin is handled the same way. If the check hits an error on your server, the message still goes through and the error lands in the log.
Plugins that handle their own spam
Contact Form 7, Formidable Forms, Gravity Forms and Jetpack Forms each deal with spam in their own way. For these four, a failed check hands the submission to that plugin as spam by default, and the plugin treats it like any other spam. If you’d rather turn failed submissions away with an error message, pick Reject for that plugin in Settings.
Extra checks behind the scenes
- A hidden honeypot field that only bots fill in
- A minimum time on the form, because nobody writes a message in half a second
- A spam score that counts links in messages and notices requests with missing browser headers
- Automatic IP blocking after repeated failures (by default, 5 failures in an hour earns a 24 hour block)
- An allowlist for single IPs and IPv4 ranges
- Support for Cloudflare and other proxies, so blocks land on the real visitor IP
You can’t lock yourself out. Login forms ignore IP blocks, and an IP an administrator has used is never blocked automatically.
See what it stopped
The Overview screen shows how your forms held up over the last 7, 14 or 30 days. You get totals compared with the period before, a daily chart you can hover for each day’s numbers, the block rate, the IPs that failed most and a breakdown by form and by reason.
The Activity screen lists every check, newest first, and you can filter it by result, form or IP. Blocked IPs have their own screen, where you can block an address for a day, a week, a month or for good, and lift a block again.
The admin screens are part of the plugin and load nothing from outside your site, so they open quickly. They work with JavaScript switched off too.
Privacy
The plugin was designed with privacy laws such as the GDPR in mind.
- It sets no cookies and stores nothing in the visitor’s browser.
- It makes no requests to outside services, so visitor data stays on your server.
- The verification log keeps the IP address, browser user agent, form name, form ID and result for 30 days by default. You can shorten that to one day or switch the log off.
- It remembers the last 20 IP addresses your administrators used, only so it never blocks them.
- It adds suggested wording for your privacy policy under Settings > Privacy.
- Once a day it loads one page with each protected form from your own site, like a logged-out visitor, and checks that the captcha script is on it. If the script is missing even after it clears the caches, it emails your site’s admin address, no more than once a day per form plugin.
- Deleting the plugin removes its tables and settings, unless you choose to keep them.
Whether your site meets the GDPR depends on far more than one plugin, so that part is still yours to check. This plugin’s share of it is small and easy to explain in your privacy policy.
External services
None. This plugin does not connect to any third-party service. Its daily form check loads pages from your own site and nowhere else.
Trademarks
Google reCAPTCHA, Cloudflare Turnstile, hCaptcha, Friendly Captcha, Akismet, CleanTalk, WooCommerce, Elementor, Contact Form 7, WPForms and the other form plugins named on this page are trademarks of their owners. This plugin is not affiliated with or endorsed by any of them.
Developer hooks
mjscp_form_enabled(filter): enable or disable a form key.mjscp_pre_check(filter): short-circuit verification. Gets the form key and an array with the form plugin’s form ID.mjscp_score(filter): adjust the spam score.mjscp_error_message(filter): change the message shown on failure.mjscp_is_allowlisted(filter): allowlist an IP programmatically.mjscp_auto_attach_selectors(filter): attach the widget to extra forms by CSS selector.mjscp_max_number(filter): fine-tune difficulty.mjscp_degraded_limits(filter): how many submissions an hour may pass when the check can’t run, per IP (per_ip, default 3) and for the whole site (site, default 50).mjscp_native_{slug}(filter): true when this plugin protects that form plugin on the current request, for examplemjscp_native_fluentforms.MJSCP_Plugin::has_native( 'fluentforms' )gives the same answer. Code that connected a form plugin by hand can check it and switch itself off.mjscp_checked(action): runs after each verification, with the result, form key, IP, status (pass,blockordegraded) and form ID.mjscp_elementor_load_everywhere(filter): return false to load the script only on pages where an Elementor Pro form widget renders. Default true. A page served from Elementor’s element cache can skip that render, so leave it on unless your forms are never cached.mjscp_self_test_url(filter): the page the daily check loads for a form plugin. Gets the address it found (or an empty string), the integration slug and the integration. Return an empty string to skip that form plugin.mjscp_flush_caches(action): runs when the plugin asks page caches to empty, so you can clear a cache it doesn’t know about.
Written by Joobi from the project's own listing. See the source page
1.3.1
- Fixed: Elementor Pro forms could turn away every visitor after an update. Elementor 4 keeps a stored copy of each page for up to a day, and a copy made while the plugin was updating had no captcha script in it, so every submission failed. The script now loads on every page while Elementor Pro forms are protected, and the form itself is never kept in that copy.
- After an update, on activation and when you change which forms are protected, the plugin clears Elementor’s stored copies and asks your caching plugin to empty its cache.
- New daily check: the plugin opens one page per protected form plugin on your own site and looks for the captcha script. If it’s still missing after the caches are cleared, you get a notice in the admin and an email, at most once a day per form plugin.
- Submissions that arrive with no captcha answer at all no longer count toward automatic IP blocks, so a broken page can’t get real visitors banned. If the hidden spam trap was filled in, they still count.
1.3.0
- New welcome tour. When you activate the plugin, it opens the Overview and walks you through it in about thirty seconds. If you already use the plugin, click “Take the tour” at the bottom of any of its screens.
- Switches, buttons, the save bar and notices in the admin now move with a light spring. If your device is set to reduce motion, they don’t animate at all.
- Visitors see no difference. All of this runs only in the admin.
1.2.0
- Many more form plugins are protected on their own, with nothing to set up: Fluent Forms, Gravity Forms, Ninja Forms, Formidable Forms, Forminator, WS Form, Everest Forms, Kadence Blocks, MetForm, HappyForms, Jetpack Forms and Bricks. Contact Form 7, WPForms and Elementor Pro were already covered.
- Divi, Beaver Builder, Otter Blocks, Spectra and Brizy forms are supported too, marked as experimental for now.
- Settings lists the form plugins it found on your site, each with its own switch.
- Fixed: AJAX forms, Fluent Forms and WPForms among them, could turn real visitors away because the answer was cleared before the form was sent.
- If the check can’t run in a visitor’s browser, the form is sent anyway on the other spam checks instead of failing. These show as “Let through” on the Activity screen.
- Contact Form 7, Formidable Forms, Gravity Forms and Jetpack Forms hand failed submissions to their own spam handling by default. You can switch any of them to Reject.
- New installs leave WooCommerce login and registration off until you switch them on. Existing sites keep their settings.
- For developers: the
mjscp_native_{slug}andmjscp_degraded_limitsfilters, and more details passed tomjscp_pre_checkandmjscp_checked.
1.1.6
- New name: Free Captcha Protection by MJ Studios. Nothing else changes, and your settings stay as they are.
- The plugin now links to its home page, captcha.mjstudios.tech.
- A small link in the plugin’s footer to rate it on WordPress.org.
- The readme explains how to switch from another captcha service.
1.1.5
- Settings: forms from plugins that aren’t active now show as off and locked, with a note that they start once you activate the plugin. Your choice is kept until then.
- The test view you get with ?mjscp_debug=1 now says what visitors actually see, so Invisible mode no longer looks like a visible status line.
1.1.4
- Removed the Plugin URI header, which pointed to the same page as Author URI.
1.1.3
- Corrected the contributor username in the readme.
1.1.2
- Activity now marks rows from an IP you’ve already blocked with “IP blocked” instead of offering to block it again.
- Fixed the missing space between the two cards on the Blocked IPs screen.
1.1.1
- Rewrote the database queries behind the Overview and Activity screens and the uninstall routine, so Plugin Check now reports no warnings.
- The screens show the same data as before, and uninstalling still removes data only when Clean uninstall is on.
1.1.0
- New admin design with four screens: Overview, Activity, Blocked IPs and Settings.
- Overview compares totals with the previous period and adds a daily chart you can hover, the block rate and the IPs that failed most.
- New Activity screen with filters, pages and the full details of each check.
- Settings show whether each form’s plugin is active, and a save bar appears when you change something.
- Block an IP for 24 hours, 7 days, 30 days or permanently.
- One-click fix for sites behind Cloudflare.
- Tested with WordPress 7.1 and PHP 7.4 to 8.5.
1.0.0
- First public release.
Follow this listing's changes (Atom feed)