跳到内容

OliForge Submission Guard for Contact Form 7

v0.4.9

oliforge · 2026年11月16日 上架

A local, transparent policy firewall for Contact Form 7: checks every submission against the rules of its form. No external services.

正在使用
10 以下
评分
暂无
累计下载
120
最近更新
2026年11月16日
需要 WordPress 6.2+已测试到 7.1.5PHP 7.4+

贡献者

截图

The dashboard: blocked and monitored submissions, the most triggered rules and recent activity.
The dashboard: blocked and monitored submissions, the most triggered rules and recent activity.
Content rules: block links, email patterns and HTML, and reject select values that are not one of the field's options.
Content rules: block links, email patterns and HTML, and reject select values that are not one of the field's options.
The log: which form, which rule and what result, without storing names, email addresses or message contents.
The log: which form, which rule and what result, without storing names, email addresses or message contents.
OliForge Submission Guard for Contact Form 7
OliForge Submission Guard for Contact Form 7
OliForge Submission Guard for Contact Form 7

OliForge Submission Guard for Contact Form 7 is a local, transparent policy firewall for Contact Form 7. It goes beyond looking for spam: it checks that every submission follows the rules of the specific form it was sent through, entirely on your own server, before any mail is sent.

What makes it different

  • Rules, not guesses. You decide what a valid submission looks like for each form: field lengths, no links or HTML where they do not belong, accepted countries, blocked email domains, a minimum time to fill in the form. A submission follows the rules or it does not, and the log shows which rule decided.
  • Private by design. Everything runs locally in your WordPress. No message, name or email address is sent to any external service. By default the plugin does not store submitted names, email addresses or message contents.
  • You stay in control. Every rule is configured per form. Newly discovered forms stay disabled until you enable them and map their fields. Monitor mode records what a rule would have blocked without rejecting anything, so you can test a rule on live traffic first.
  • No subscription. No account, no API key and no monthly fee are needed to keep the protection working, and it does not depend on a vendor’s reputation database or an AI service.
  • Precise and predictable. The plugin enforces the exact rules of your form instead of competing on the size of a shared blacklist.

One layer in a layered defense

Contact Form 7 itself recommends combining several protections instead of relying on a single mechanism. Submission Guard is designed for that: it works alongside the anti-spam integrations built into Contact Form 7, such as Akismet, Cloudflare Turnstile and reCAPTCHA, and does not replace or disable them. Akismet and a CAPTCHA service judge who is sending, using external intelligence. Submission Guard judges what is being sent, by checking the submission against the rules of that form, locally and without sharing the content. Each check runs independently and a submission has to pass all of them.

What it can enforce

  • Field length rules, and blocking of URLs, email-like content and HTML in text fields.
  • Validation of native select values and, when OliForge Country Select for Contact Form 7 is active, of every country field on the form.
  • Blocking of specific email domains, rate limiting by IP, a minimum completion time and detection of duplicate messages.
  • Validation of a configured consent field.
  • A hidden honeypot field that catches simple bots.
  • Monitor mode, which records rule matches without rejecting the submission.

Logs are lightweight and paginated in wp-admin. Each entry records the date, the form (shown by its Contact Form 7 title), the result, the rule that matched, the name of the field involved, the domain part of the sender’s email address, the visitor’s browser user-agent and an IP value. By default the plugin does not store submitted names, full email addresses or message contents.

Privacy

  • The IP value is pseudonymized by default: a keyed hash of the address is stored, not the address itself. You can switch to full IP storage or to no IP storage at all (Settings Logging).
  • Log entries are deleted automatically after the retention period you set (30 days by default), and “Clear all logs” removes them immediately.
  • The rate limiter keeps a hashed visitor/form key with an attempt counter for the length of the rate-limit window only.
  • If you choose full IP storage, mention it in your privacy policy. The plugin adds a suggested paragraph under Settings Privacy.
  • Nothing is sent to an external service.

Extending the plugin

The plugin exposes hooks for add-ons such as OliForge Submission Guard Pro for Contact Form 7: extra panels in the Domains and Logging tabs, extra settings keys, additional email-domain checks, additional views on the Logs page, and an oliforge_cf7sg_submission_passed action fired after a submission passes all checks. An add-on that uses this action may store submission details; the free plugin itself does not.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums