Skip to content

LeMiira/GForm-Spam-Slayer

Repository files navigation

Spam Slayer for Gravity Forms

Advanced spam cleanup and regex-powered spam detection for Gravity Forms entries.

Description

WordPress PHP Gravity Forms Vanilla JS CSS3 License GPLv2


What Is It?

Spam Slayer for Gravity Forms is a lightweight cleanup utility for Gravity Forms that helps you detect, review, mark, and remove spam-like submissions already stored in your database.

Instead of blocking spam during submission, the plugin works as a post-submission analysis tool using regex-powered pattern matching.

Perfect for:

  • bot attack cleanup
  • fake name detection
  • spam audits
  • bulk spam removal
  • regex-based moderation workflows

Features

  • Regex-powered spam detection
  • Built-in spam detection presets
  • Custom regex support
  • Scan specific forms and fields
  • Preview suspicious entries before deletion
  • Test scan mode
  • Bulk spam marking
  • Bulk spam deletion
  • Track which pages/posts are using Gravity Forms (shortcodes or Gutenberg blocks)
  • Lightweight admin interface
  • Native WordPress UI
  • No telemetry or tracking
  • No external API calls
  • Minimal performance impact

Example Use Cases

Clean Up Bot Attacks

Detect and remove thousands of spam submissions after automated attacks.

Detect Fake Names

Identify entries containing suspicious random strings or malformed content.

Filter Promo Spam

Locate repetitive promotional phrases, URLs, or injected text.

Advanced Regex Filtering

Create custom regex workflows tailored to your own moderation strategy.


Important Note

This plugin does NOT prevent spam during submission.

It is designed specifically for:

  • spam detection
  • spam analysis
  • spam cleanup
  • post-submission moderation

For prevention, combine it with:

  • reCAPTCHA
  • Cloudflare Turnstile
  • Gravity Forms anti-spam tools
  • honeypot fields

Installation

cd wp-content/plugins
git clone https://github.com/LeMiira/GForm-Spam-Slayer.git

Changelog

1.5 (2026-06-01)

  • Plugin Rename: Renamed plugin to Spam Slayer for Gravity Forms to comply with WordPress directory trademark guidelines.
  • UI Enhancement: Completely overhauled the admin settings UI with a modern, card-based flexbox layout for better usability and aesthetics.
  • Visual Assets: Added new high-quality plugin icons and banners to the assets directory for the WordPress directory listing.
  • Improved Detection: Updated "GF Usage" page title to "Pages which uses gravity forms" and improved detection to find forms used inside Elementor widgets (e.g. bdt-gravity-forms) across both public and private pages.

1.4 (2026-05-26)

  • New Feature: Restructured admin interface into a custom Spam Slayer Tools top-level menu containing Spam Slayer for Gravity Forms and Usage submenu pages.
  • Security Hardening & Stability: Added checks on plugin activation, admin panels, and AJAX routines to gracefully handle scenarios when Gravity Forms is not installed or active, preventing any fatal errors.
  • Coding Standards Compliance: Resolved prefixing errors, added missing translator comment annotations, formatted raw error logs, and updated readme configurations to match WordPress repository requirements.

1.3 (2026-05-26)

  • New Feature: Added a Buy Me a Coffee donate link directly to the plugin action links on the main Plugins directory screen.
  • New Feature: Added a Support card in the admin tools panel featuring links to GitHub Sponsors and Buy Me a Coffee.

1.2 (2026-05-26)

  • New Feature: Added a Gravity Forms Usage page under the Tools management menu to see which posts and pages are using each Gravity Form (via shortcodes or Gutenberg blocks).

1.1 (2026-05-26)

  • Security Fix: Fixed critical bug where undefined wp_error_log function could cause fatal PHP crash when logging errors.
  • Security Hardening: Implemented server-side regex validation check before running preg_match to prevent PHP runtime warnings or crashes on invalid patterns.
  • Security Hardening: Removed inline Javascript script block from the admin dashboard to comply with modern security guidelines (CSP compatibility). All JS handling is now fully localized and loaded from an external file.
  • Performance Optimization: Optimized Gravity Forms loop performance by caching the form object retrieval outside the loop, avoiding redundant database lookups.
  • Localization: Localized all remaining hardcoded strings in the admin interface and JavaScript logic.
  • Requirement Updates: Bumped minimum required PHP version to 7.4.

About

[WordPress Plugin] Rather than preventing spam from being submitted, this plugin scans your stored form entries to identify those that match patterns commonly used in spam — such as long alphanumeric strings or unnatural text. It’s a great tool for maintaining clean, reliable form data and reducing the noise caused by bot submissions.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

  •  

Packages

 
 
 

Contributors