🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Account Get it free
AntiSpam Shield by LukaCodes icon
Maintained Tested up to 7.0.9

AntiSpam Shield by LukaCodes

Block comment spam, brute-force logins and bot registrations with reCAPTCHA v3 or Cloudflare Turnstile. Lightweight, no bloat.

Active installs10+10+ tier
Downloads · 30d63▼ -7.4% vs prev. 30d
Rating—0 reviews
Health score45/100Fair
All-time downloads892Since Mar 2026
Support resolved—No recent threads
RequiresWP 6.0PHP 8.0+
Downloads · 7d11▼ -45% week over week
Our verdict

Use with caution

AntiSpam Shield by LukaCodes works, but test it on a staging site before relying on it in 2026. It runs on 10+ sites and was last updated 6 months ago, and scores 45/100 on our health check.

  • Small user base (10+ active installs)
  • Very few reviews so far

How does it stack up?

Side-by-side on installs, updates, ratings & support

Daily downloads

369Aug 31Oct 14Nov 28
Yesterday2
Daily average (1y)3
Peak day93Mar 14, 2026
Last 12 months896

Download spikes usually follow a new release — each site that auto-updates counts as a download.

Rankings

Where AntiSpam Shield by LukaCodes stands today

WordPress.org search rankings

Live position in the plugin search, top 100
KeywordPositionCompeting pluginsCategory
anti-spam >100 871 Best anti-spam plugins →
recaptcha >100 1,552 Best recaptcha plugins →
spam >100 4,451 Best spam plugins →
turnstile >100 721 Best turnstile plugins →
WPForms >100 1,412 Best WPForms plugins →

Version adoption

Share of active sites per release.

  • 1.1100.0%

About AntiSpam Shield by LukaCodes

From the official readme · v1.1.4

Description

AntiSpam Shield by LukaCodes is a lightweight, no-bloat plugin that protects your WordPress comment section and contact forms from spam. Six independent tools, one settings page. Read the full documentation.

  • Disable Website Field — Removes the URL/website field from the comment form. Works with all themes, including those that hardcode the field (CSS fallback included).
  • Strip Links from Comments — Automatically removes all <a href> hyperlinks from comment content — both on display and before saving to the database. Spammers get zero benefit from posting links.
  • reCAPTCHA v3 — Adds Google’s invisible bot-score protection. No checkbox, no puzzle, no friction for real users. Bots are silently blocked server-side.
  • Cloudflare Turnstile — A privacy-friendly CAPTCHA alternative. Mutually exclusive with reCAPTCHA v3 — enabling one automatically disables the other.
  • Login Shield — Adds CAPTCHA to the WordPress login form (wp-login.php). Stops brute-force bots silently.
  • Registration Shield — Adds CAPTCHA to the WordPress registration form. Blocks bot account creation.
  • WPForms Integration — Apply the same CAPTCHA protection to WPForms Lite — using the same keys you already configured, no extra setup.
  • Easy Contact Form by LukaCodes Integration — Apply the same CAPTCHA protection to forms created with the companion Easy Contact Form plugin.

All features are independent — enable only what you need.

Login & Registration Shield

Version 1.1.2 adds CAPTCHA protection to wp-login.php:

  • Login Shield — Hooks into wp_authenticate_user for server-side verification after credentials are checked. Returns a WP_Error if CAPTCHA fails — WordPress displays it as a normal login error.
  • Registration Shield — Hooks into registration_errors to add CAPTCHA validation during registration. Works alongside all other WordPress registration validations.

Both are independently togglable in the settings panel. Admins already logged in are never affected.

WPForms Integration

Version 1.1.0 introduces CAPTCHA protection for WPForms Lite:

  • Hooks into wpforms_display_submit_before to inject the CAPTCHA widget before the submit button.
  • Hooks into wpforms_process for server-side token verification.
  • Works with both reCAPTCHA v3 (invisible) and Cloudflare Turnstile (visible widget).

Note: WPForms Pro includes its own native CAPTCHA integration — this feature is intended for WPForms Lite users only.

Easy Contact Form by LukaCodes Integration

Version 1.1.4 adds CAPTCHA protection for forms created with Easy Contact Form by LukaCodes:

  • Injects the CAPTCHA widget (Turnstile) or invisible token (reCAPTCHA v3) into every Easy Contact Form on the page.
  • Hooks into Easy Contact Form’s lukacodes_comment_shield_check filter for server-side token verification before the submission is processed or emails are sent.
  • Uses the same CAPTCHA keys you already configured — no extra setup.
  • When a token fails, the user sees a CAPTCHA-specific error message inline; the submission is never stored or emailed.

Why AntiSpam Shield?

Most anti-spam plugins are heavy, require accounts, or add ugly CAPTCHAs. AntiSpam Shield by LukaCodes is different:

  • ~30 KB total — no external libraries, no jQuery dependency
  • Settings page with live key testing — verify your reCAPTCHA or Turnstile keys before enabling
  • Link stripping preview — paste any comment text and see exactly what gets removed
  • Graceful fallback: if Google’s or Cloudflare’s API is unreachable, comments are held for moderation (never lost)
  • Trusted users (administrators) bypass CAPTCHA checks automatically
  • Mutual exclusion: reCAPTCHA v3 and Cloudflare Turnstile cannot be active at the same time
  • WP Coding Standards compliant — fully escaped output, nonce-protected AJAX

reCAPTCHA v3 — How it works

When a visitor submits a form, JavaScript silently requests a score token from Google. The token is sent with the submission and verified server-side against your minimum score threshold (configurable from 0.1 to 1.0). No user interaction required.

Cloudflare Turnstile — How it works

A Turnstile widget is rendered inside the form. When the visitor completes the challenge, a token is submitted and verified server-side against the Cloudflare API.

Third-Party Services

This plugin optionally uses the following third-party services:

Google reCAPTCHA v3

A service provided by Google LLC.

  • What it does: Detects bots and spam on your comment form and contact forms without user interaction.
  • When data is sent: Only when reCAPTCHA v3 is enabled. A token is sent to https://www.google.com/recaptcha/api/siteverify on each form submission.
  • What data is sent: The visitor’s IP address and a reCAPTCHA token.
  • Google Privacy Policy: https://policies.google.com/privacy
  • Google Terms of Service: https://policies.google.com/terms

Cloudflare Turnstile

A service provided by Cloudflare, Inc.

  • What it does: Presents a privacy-friendly CAPTCHA widget on comment and contact forms.
  • When data is sent: Only when Cloudflare Turnstile is enabled. A token is sent to https://challenges.cloudflare.com/turnstile/v0/siteverify on each form submission.
  • What data is sent: The visitor’s IP address and a Turnstile token.
  • Cloudflare Privacy Policy: https://www.cloudflare.com/privacypolicy/
  • Cloudflare Terms of Service: https://www.cloudflare.com/website-terms/

Both services are entirely optional. If you do not enter API keys or enable either CAPTCHA, no data is sent to any third party.

Installation

  1. Upload the lukacodes-comment-shield folder to /wp-content/plugins/
  2. Activate the plugin through Plugins → Installed Plugins
  3. Go to Settings → AntiSpam Shield to configure your options

reCAPTCHA v3 Setup

  1. Visit Google reCAPTCHA Admin Console
  2. Create a new site — select Score based (v3)
  3. Add your domain to the allowed domains list
  4. Copy the Site Key and Secret Key into the plugin settings
  5. Use the built-in 🔍 Test Keys button to verify connectivity before enabling
  6. Enable reCAPTCHA v3, set your minimum score, and save

Cloudflare Turnstile Setup

  1. Visit Cloudflare Turnstile Dashboard
  2. Create a new site and select your widget type (Managed recommended)
  3. Copy the Site Key and Secret Key into the plugin settings
  4. Use the built-in 🔍 Test Turnstile Keys button to verify connectivity before enabling
  5. Enable Cloudflare Turnstile and save — reCAPTCHA v3 will be disabled automatically

Contact Forms Setup

No extra setup needed. Once reCAPTCHA v3 or Cloudflare Turnstile is configured, go to the Contact Forms section in the settings and toggle on each plugin you want to protect. The admin panel shows which form plugins are currently installed and active on your site. Currently supported: WPForms Lite and Easy Contact Form by LukaCodes.

Changelog

Fixes key tester false-positive: keys from a different domain no longer show as valid. Recommended update for all users.

1.1.4

  • Changed: Plugin display name renamed to “AntiSpam Shield by LukaCodes”
  • Tested: Confirmed compatible with WordPress 7.0
  • Added: Integration with Easy Contact Form by LukaCodes — injects CAPTCHA widget into every .lecf-form on the page and verifies tokens server-side via the lukacodes_comment_shield_check filter
  • Added: New toggle “Easy Contact Form by LukaCodes” under the Contact Forms settings section
  • Added: New “Easy Contact Form Shield” status row in the Plugin Status panel
  • Bumped version to 1.1.4

1.1.3

  • Added: Option to disable comments on all posts sitewide
  • Added: Option to disable comments on all pages sitewide
  • Fixed: WPForms CAPTCHA hook changed to wpforms_process_before — form submission is now blocked before email is sent when token is missing/invalid
  • Fixed: Key tester now validates that reCAPTCHA / Turnstile keys are registered for this site’s domain
  • Fixed: Keys from a different domain now show a clear “Domain mismatch” error instead of a false “keys look correct” result
  • Improved: Turnstile key tester now passes sitekey to Cloudflare API to enable domain-level validation
  • Improved: Greek (el) translation updated to 100% — all strings now translated
  • Bumped version to 1.1.3

1.1.2

  • Added Login Shield: CAPTCHA protection for wp-login.php login form
  • Added Registration Shield: CAPTCHA protection for wp-login.php registration form
  • Login and Registration shields are independently togglable in the settings panel
  • Both shields reuse existing reCAPTCHA v3 / Turnstile keys — no additional setup required
  • Added Login Shield and Register Shield rows to Plugin Status panel
  • Updated POT template with all new i18n strings
  • Updated Greek (el) translation with all new strings
  • Bumped version to 1.1.2

1.1.0

  • Added WPForms Lite integration: reCAPTCHA v3 and Cloudflare Turnstile protection for WPForms forms
  • WPForms protection reuses existing CAPTCHA keys — no additional setup required
  • Added WPForms panel in admin: auto-detects if WPForms is installed, toggle to enable/disable
  • Added WPForms Shield row to Plugin Status panel
  • Updated POT template with all new i18n strings
  • Updated Greek (el) translation with all new strings
  • Bumped version to 1.1.0

1.0.1

  • Added Cloudflare Turnstile as a second CAPTCHA option (privacy-friendly alternative to reCAPTCHA)
  • Added mutual exclusion logic: enabling reCAPTCHA disables Turnstile and vice versa
  • Added server-side Turnstile token verification with moderation fallback
  • Added live Turnstile key tester in the settings panel
  • Updated uninstall.php to clean up Turnstile options on deletion

0.3

  • Added server-side reCAPTCHA verification with action and hostname validation
  • Added fallback: holds comment for moderation if Google API is unreachable
  • Added COMMSH_VERSION constant and activation hook to seed default options
  • Improved score threshold: configurable from 0.1 to 1.0 with live slider

Full changelog on WordPress.org →

Screenshots

The main settings dashboard with Comment Options, reCAPTCHA, Turnstile, Login & Registration, and WPForms sections.
The main settings dashboard with Comment Options, reCAPTCHA, Turnstile, Login &…

For developers

Is this your plugin? Show off the numbers.

Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.

Active installs badge Rating badge Health score badge

Best AntiSpam Shield by LukaCodes alternatives

All anti-spam plugins →
Alternatives
Rank Plugin Active installs Rating Updated Health
1 Akismet Anti-spam: Spam Protection Akismet Anti-spam: Spam Protection The best anti-spam protection to block spam comments and spam in a contact form. The most… by Automattic 5M+ ★★★★★★★★★★ 4.7 (1.2K) 3 months ago 73
2 Antispam Bee Antispam Bee Sophisticated antispam plugin for effective daily comment and trackback spam-fighting… by pluginkollektiv 700K+ ★★★★★★★★★★ 4.8 (227) 3 months ago 72
3 WP Armour – Honeypot Anti Spam WP Armour – Honeypot Anti Spam Fastest growing Anti Spam plugin. No API calls, subscriptions, captcha or puzzle. Full GDPR… by Dinesh Karki 400K+ ★★★★★★★★★★ 5 (1.5K) 1 week ago 86
4 CF7 Apps – Addons for Contact Form 7 (Honeypot, Database, Redirection, Webhook, etc.) CF7 Apps Add hCaptcha, Honeypot, Redirection, and AI-powered form generation to Contact Form 7. by Saad Iqbal 300K+ ★★★★★★★★★★ 3.8 (135) 1 month ago 87
5 Anti-Spam, Honeypot, CAPTCHA Free Spam Protection by CleanTalk Anti-Spam, Honeypot, CAPTCHA Free Spam Protection by CleanT… Advanced antispam for comments, fake registrations, orders & contact forms spam. No… by CleanTalk Inc 200K+ ★★★★★★★★★★ 4.8 (3.2K) 4 days ago 94
6 CloudSecure WP Security CloudSecure WP Security CloudSecure WP Securityは、管理画面とログインURLをサイバー攻撃から守る、国産・日本語対応のセキュリティ対策プラグインです。… by XServer 200K+ ★★★★★★★★★★ 5 (2) 2 weeks ago 86
7 Gravity Forms Zero Spam Gravity Forms Zero Spam Block form spam in Gravity Forms with an invisible token check, email rejection rules, and… by GravityKit 100K+ ★★★★★★★★★★ 4.3 (24) 3 months ago 69
8 Email Encoder – Protect Email Addresses and Phone Numbers Email Encoder – Protect Email Addresses and Phone Numbers Protect email addresses and phone numbers on your site and hide them from spambots. Easy to… by Online Optimisation 90K+ ★★★★★★★★★★ 4.9 (94) 6 days ago 81
9 Spam Protection | Maspik Spam Protection | Maspik Blocks spam the moment you activate it. No CAPTCHA, no setup, no API key. Multi-Layer. Just… by yonifre 30K+ ★★★★★★★★★★ 4.7 (87) 1 week ago 79
10 Blackhole for Bad Bots Blackhole for Bad Bots Blackhole is a WordPress security plugin that detects and traps bad bots in a virtual black… by Jeff Starr 30K+ ★★★★★★★★★★ 4.7 (148) 3 weeks ago 94

FAQ

AntiSpam Shield by LukaCodes: quick answers

Straight answers, pulled from live WordPress.org data.

Source: WordPress.org

Is AntiSpam Shield by LukaCodes free?

Yes. AntiSpam Shield by LukaCodes is free to download and use from the official WordPress.org plugin directory.

Is AntiSpam Shield by LukaCodes safe to use in 2026?

AntiSpam Shield by LukaCodes works, but test it on a staging site before relying on it in 2026. It runs on 10+ sites and was last updated 6 months ago, and scores 45/100 on our health check.

How many websites use AntiSpam Shield by LukaCodes?

AntiSpam Shield by LukaCodes is active on 10+ WordPress websites and has been downloaded 892 times since it launched in March 2026. It was downloaded 63 times in the last 30 days.

Does AntiSpam Shield by LukaCodes work with WordPress 7.1?

AntiSpam Shield by LukaCodes is officially tested up to WordPress 7.0.9, while the latest release is 7.1.5. It may still work, but try it on a staging site first.

What PHP version does AntiSpam Shield by LukaCodes need?

AntiSpam Shield by LukaCodes requires PHP 8.0 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was AntiSpam Shield by LukaCodes last updated?

The latest version, 1.1.4, was released on May 21, 2026 (6 months ago).

Who makes AntiSpam Shield by LukaCodes?

AntiSpam Shield by LukaCodes is developed and maintained by LukaCodes.

What are the best alternatives to AntiSpam Shield by LukaCodes?

The most popular alternatives to AntiSpam Shield by LukaCodes are Akismet Anti-spam: Spam Pro… (5M+ installs), Antispam Bee (700K+ installs) and WP Armour (400K+ installs).

Powered by PageForge

One template and a spreadsheet. A real page for every search.

PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.

  • CSV and XLSX, plus Google Sheets on Professional and Enterprise
  • Its own title, URL, SEO fields and schema for every page
  • Works with the block editor, Elementor, Divi and Avada
  • Free on WordPress.org, no credit card

↑↓ to move↵ to open