Phox Elements

Phox Form Guard

Spam scoring, blocklists, a review quarantine and form health alerts for Breakdance, Bricks and Elementor Pro forms. Obvious junk is dropped, borderline submissions are held for a look, and a real enquiry caught by mistake is released with one click, attachments and all.

Breakdance Bricks Elementor Pro Form Builder Plus No core files changed Fails open

Overview

Form Guard sits on a hook in your form builder's submission pipeline, scores each submission against a set of signals you can see and tune, and decides whether it goes through, is held for you to look at, or is dropped.

The core idea: nothing is blocked on one signal alone unless you say it should be. Each rule that matches adds points. Below the first threshold the submission goes through exactly as normal. Above the second it is rejected and the visitor sees the form's ordinary success message. In between it is held: none of the form's actions have run, and you decide.

Scored, not guessed

Fourteen signals, each with its own points. Two thresholds decide hold and reject.

A quarantine

Held submissions show every field and every reason. Release, block the sender, or delete.

Released intact

Release runs every form action as if the submission had just arrived, attachments included.

Lists that mean something

Domains, TLDs, senders, IPs and ranges, countries, keywords with wildcards or regex.

One list, many sites

Publish an export at a URL and every site you run follows it, without losing its own entries.

Fails open

If anything in the plugin breaks, the submission goes through and the log says why.

What it works with

Breakdance's Form Builder element and the Form Builder Plus element in Phox Elements, the Bricks Form element, and the Elementor Pro Form widget. Each is protected as it is, without any setup. See Form builders for what differs between them. Each builder's own honeypot, captcha and similar checks run before Form Guard and answer with their own responses; anything they stop never reaches Form Guard and never appears in its statistics.

Requirements & installation

RequirementMinimum
WordPress6.0 or newer
PHP7.4 or newer
A form builderAt least one of: Breakdance, any version with the Form Builder element; Bricks, with its Form element; Elementor Pro 4.0.3 or newer, with its Form widget. Form Guard checks for them on load and shows a notice if none is active. On an older Elementor Pro it leaves Elementor forms alone and carries on for the others.
LicenceAn active licence key. Form Guard does not protect forms until one is activated on the site. See Licence.
DatabaseMySQL 5.7 / MariaDB 10.2 or newer. Three small tables are created on activation.
  1. Install the plugin. In WordPress go to Plugins → Add New → Upload Plugin, choose phox-form-guard.zip and click Install Now.
  2. Activate it. A Form Guard item appears in the admin menu, and a badge on it shows how many submissions are waiting whenever there are any.
  3. Add your licence key on Form Guard → Licence and press Activate. Until a key is active the other screens are locked and a notice says your forms are not protected.
  4. Leave the defaults on for a week. Once the licence is active, Form Guard protects every Breakdance, Bricks and Elementor Pro form on the site, with sensible defaults. Turn on test mode if you would rather watch first.
Permissions

Every Form Guard screen and every action on them requires the Administrator capability (manage_options). Form Guard adds no AJAX endpoints or REST routes of its own; the only public-facing code is a small script that adds two hidden fields to each form.

Quick start

The plugin is protecting your forms as soon as it is active. Here is the five-minute pass that makes it yours.

  1. Add your own addresses to the allow list. On Form Guard → Lists, put your domain in Allowed domains. Allow lists beat everything, including rules marked block outright, so your own test submissions can never be caught.
  2. Look at the TLD list. The default blocks .ru, .cn, .xyz, .top and a handful of others that carry almost nothing but spam. If you trade with any of them, remove them.
  3. Check the keyword list. It ships with 33 phrases that are safe on a normal contact form: cold SEO outreach, crypto and money, pharma and adult, and bot filler. Some are only spam for most businesses. If you are a finance or gaming site, words like forex, crypto or casino may be things your real visitors write, so take them out.
  4. Send yourself a summary. On Settings, set the summary email to daily and press Send a test summary. If it arrives, the plugin can reach you when something is waiting.
  5. Try to get past it. Submit a form from a @mail.ru address. It lands in the quarantine at 6 points. Open it, read the reasons, press Not spam, release it, and watch the form's actions run.

The admin interface

Everything lives under the Form Guard menu:

ScreenWhat it is for
DashboardThirty days of counts, a per-day chart, the rules that did the most work, the form health panel, and the recently rejected list.
QuarantineHeld submissions to review, plus tabs for what has been released and what has been blocked.
Form healthEvery open delivery problem with its error, first and last seen and a count, a Clear button for each, recent failures, and problems that have been resolved. See Form health.
RulesThe two thresholds, and every rule with its switch, points, block-outright option and settings.
ListsDeny and allow lists: keywords, domains, TLDs, senders, IPs, countries and link shorteners.
FormsEvery form on the site, from whichever builders are active, with per-form on/off and thresholds.
SettingsTest mode, proxy and Cloudflare, attachments, housekeeping, the summary email, form health, API keys.
ToolsThe match tester, the shared list URL, and export and import of the whole configuration.
LicenceActivate your key for updates.

The header of every screen names the builders it is protecting ("Spam protection for Bricks forms", "Spam protection for Breakdance and Elementor forms") and shows two badges: whether Form Guard is protecting forms (or in test mode), and whether the licence is active. When submissions are waiting, a count appears in the header, in the admin menu and in the admin bar. When a form has a delivery problem, the header shows a count of form issues as well, which opens the Form health screen. See Form health.

Form builders

Form Guard works out which builders are running and protects each one's own forms. Several can be active on one site; each form is handled by its own builder's adapter, and the quarantine, rules, lists and dashboard are shared. Scoring, holding and rejecting work the same everywhere. What differs is where each builder lets Form Guard in, and what a release can and cannot repeat.

BreakdanceBricksElementor Pro
ProtectsForm Builder, Form Builder PlusForm elementForm widget, Elementor Pro 4.0.3 or newer
Forms found inPages, templates, headers, footers, popupsPages and templates, headers and footers includedPages, posts, templates, popups, global widgets
Held or rejected spamAnswers with the form's own success message. None of the form's actions run, so nothing is emailed, sent or stored.
Release runs withThe visitor's stored IP, browser and page, and no user attachedA logged-out visitor, so actions that create or update posts cannot use your admin rightsThe visitor, with their IP, browser and page, so Collect Submissions records them rather than you
Skipped on releaseNothing; actions that only steer the browser have nothing to act on and do no harmRedirect, Login, Unlock password protection, Reset passwordRedirect, Popup
Form health readsThe stored actions log, and the response for forms that store nothingThe response, which names the failing actionEach action's outcome as it runs

On Bricks and Elementor, actions that only make sense in the visitor's browser, such as a redirect, have nobody to act on when you release from the admin, so they are skipped and the release notice names them. On Bricks, registration never logs anyone in when it is released, so a release can never sign the administrator in as the new user.

Bricks stops at the first failing action

When one of a Bricks form's actions fails, Bricks does not run the ones after it, live or on release. Form Guard does the same, and the release notice names the action that failed.

Elementor needs Pro 4.0.3 or newer

The free version of Elementor has no Form widget. On an Elementor Pro older than 4.0.3, which lacks the hook Form Guard uses, Elementor forms are not protected and the other builders carry on as normal.

Scoring & thresholds

Every enabled rule looks at the submission. A rule that matches adds its points to the score and records a reason. When all the rules have run, the score is compared with two thresholds:

ScoreOutcomeWhat happens
Below Hold for review (default 5)PassNothing. Every form action runs as normal.
From Hold for review up to RejectQuarantineNo action runs. The submission, its files and its reasons are stored for you to review. The visitor sees the form's normal success message.
Reject (default 10) and aboveRejectNo action runs. Only the score, the reasons and a one-way hash of the address are kept. The visitor sees the success message.

Block outright

A rule marked Block outright skips the arithmetic: if it matches, the submission is rejected regardless of anything else, and the dashboard shows "blocked outright" instead of a number. Two rules ship this way, Blocked sender or IP and Honeypot filled, because both are certain.

Allow lists win

Before any rule runs, the sender address, its domain and the visitor's IP are checked against the allow lists. A match ends scoring immediately with a pass, including past rules marked block outright. That is what makes it safe to put your own domain, a client's domain or an office IP there.

Never reject

If you would rather see everything, turn on Never reject outright on the Settings screen. Anything that would have been rejected is held instead. Useful while you tune the rules on a new site; costly on a site under heavy attack, because every piece of junk is stored.

Outside checks run last

StopForumSpam and Akismet each cost a network round trip, so they run after every local rule, and only if the score has not already crossed the reject line. Their answers are cached, so a repeat offender is not looked up twice.

Why the visitor sees "success"

A rejected bot that is told it was rejected learns something. A rejected bot that is told "thanks, we'll be in touch" learns nothing, which is exactly how Breakdance's own honeypot behaves. Form Guard does the same.

Test mode

With Test mode on, every submission is scored and recorded but nothing is blocked: every form action runs, every time. The dashboard still shows what would have been held and what would have been rejected, and the summary email says so too.

Use it on a live site for a week before you switch it off. Real traffic is the only honest test of the default lists, and a week of it will tell you whether test is a keyword your visitors actually type or a TLD on the list is one you trade with.

What Form Guard sees

Each submission is normalised into one context that every rule reads:

ValueWhere it comes from
Every fieldThe form's own field definitions, with each field's label, type and submitted value. Arrays (checkbox groups) are joined.
The sender addressThe first email field on the form.
The messageThe longest textarea. Used by the length check and by the keyword rule when its scope is set to message fields.
The visitor's IPREMOTE_ADDR, unless you have told Form Guard the site is behind Cloudflare or another proxy. See Settings: this is the one place a wrong setting weakens protection.
The countryCloudflare's CF-IPCountry header, only when the Cloudflare setting is on. Without it the country is unknown and the country rule never fires.
Time to submitSeconds since the page loaded, written into the form by the Form Guard script when the visitor first touches the form and again on submit. An empty or missing value counts as unknown, never as suspicious.
The honeypotA hidden field the script adds. A person never sees it; a bot filling every field does.
UploadsThe builder's file descriptors, already validated and written to disk by the time Form Guard runs.

Failing open

An anti-spam plugin that blocks real enquiries when something goes wrong is worse than no plugin. Form Guard is built to fail open at every level:

  • Each rule runs inside its own guard. A rule that throws is logged and skipped; the others still run.
  • The engine as a whole is guarded. If scoring itself fails, the submission passes.
  • If a submission should be held but the quarantine row cannot be written (a missing table, a read-only database), it passes and the log says why. Nothing is ever silently lost.
  • A missing timestamp, a missing honeypot, an unknown country or an unreachable outside service are all "no opinion", never a penalty.

Turn on Write decisions to the PHP error log on the Settings screen to see all of this happening.

Rules

The Rules screen lists every rule in four groups. Each has an on/off switch, a points value from 0 to 100, a Block outright checkbox, and its own settings where it has any. The defaults are tuned for an ordinary contact form and an ordinary reject threshold of 10: no single rule reaches it on its own, so it takes two signals to reject, and one to hold.

RuleGroupPointsOn by defaultNotes
Blocked sender or IPSender10 · block outrightYesThe address or IP is on a deny list. Usually populated from the quarantine's Block sender button.
Blocked email domain or TLDSender6YesThe sender's domain, or its top-level domain, is on a deny list. Also checks links in the message by default.
Disposable email addressSender4YesThe domain is a throwaway mailbox provider. Ships with a curated list of about 300, subdomains included.
CountrySender6NoThe visitor is in a blocked country, or outside the allowed ones. Needs Cloudflare.
Blocked keywordsContent5YesA phrase from the keyword list appears. Scope: all fields, or message fields only. Optionally score every match rather than once.
Too many linksContent3YesMore URLs than allowed (default 1), or a link shortener.
Unexpected script or shoutingContent4YesCyrillic (default), CJK or any non-Latin script where you do not expect it, and optionally an all-caps message over a minimum length.
Suspicious field valuesContent4YesA URL in the name field, a name that is just the email address, or a message shorter than a minimum you set.
Suspicious uploadsContent5 · executables block outrightYesLooks inside attached files. An executable or script, by extension or by content, is blocked outright. A file whose contents do not match its name, or an Office file with macros, adds 5. A double extension adds 3 (blocked outright when it ends in an executable), a type outside the allowed list adds 3, and more than 5 files or 20 MB in all adds 2. Optional ClamAV scan, off by default.
Honeypot filledBehaviour10 · block outrightYesThe hidden field was completed. Only a bot does this.
Submitted too quicklyBehaviour5YesUnder 3 seconds from render to submit, or a timestamp older than 24 hours. Never fires when the timestamp is missing.
Too many submissionsBehaviour5YesMore than 5 from one IP or 3 from one address in 10 minutes, or an identical submission within 5 minutes.
StopForumSpamOutside checks6NoLooks the address and IP up in the free StopForumSpam database. No key needed. Minimum confidence 50, timeout 3 seconds.
AkismetOutside checks6NoSends the submission to Akismet. Uses the Akismet plugin's key if it is active, otherwise the key on Settings. Timeout 4 seconds.

Reading the defaults

A submission from a .ru address scores 6 and is held. The same address with a blocked keyword scores 11 and is rejected. A real person who happens to write from a .xyz domain with one link in their message scores 9 and is held, where you will see them and can allow their domain. That is the balance the defaults aim for: hold on one signal, reject on two.

Repeat testing stacks the rate limit

If you test by submitting the same form several times in a row from one address, Too many submissions will start adding 5 points to each one. A submission you expected to be held will then be rejected. Either wait ten minutes between tests, or turn the rate limit rule off while you test.

Keyword patterns

Entries on the keyword list are matched case-insensitively against the submission text. Three forms are accepted:

FormExampleMatches
Plain phraseguest postThe phrase as whole words anywhere in the text, so crypto does not match cryptography.
Wildcardbuy*cheap*now* stands for anything. Up to five per pattern.
Regular expression/dofollow\s+backlink/A PCRE pattern between slashes, matched case-insensitively with Unicode support.

Patterns are validated when saved, and matching runs with a fixed budget so that a badly written expression can slow nothing down. A pattern that exceeds its budget is logged and treated as not matching. Use Test a value on the Tools screen to check what a pattern hits before you rely on it.

Lists

The Lists screen holds one entry per line for each list. Lines starting with # are comments. Entries are cleaned and validated on save, and anything dropped is named in the notice.

ListFormatRead by
Blocked keywordsPhrase, wildcard or /regex/Blocked keywords
Blocked domainsspammer.example. Matches the domain and every subdomain of it.Blocked email domain or TLD
Blocked TLDsru, xyz. No leading dot.Blocked email domain or TLD
Blocked sendersA full address. Gmail dots and +tags are normalised, so a.b+c@gmail.com and ab@gmail.com are the same sender.Blocked sender or IP
Blocked IPsAn address or a CIDR range, IPv4 or IPv6: 203.0.113.0/24, 2001:db8::/32Blocked sender or IP
Blocked countriesTwo-letter ISO codes: RU, CNCountry
Allowed countriesTwo-letter codes. When this list is not empty, anywhere else is flagged.Country
Allowed domains / senders / IPsAs aboveChecked before every rule. A match passes the submission outright.
Link shortenersHostnames. Ships with bit.ly, tinyurl.com, t.co and a few more.Too many links

The disposable domain list

The disposable rule reads data/disposable-domains.txt inside the plugin: around 300 throwaway providers, grouped by family, checked so that no real provider is on it. It is not editable from the admin; if a provider is missing, add its domain to Blocked domains instead, which does the same job with more points.

Allowed countries is not an allow list

A visitor from an allowed country is still scored on everything else. The three true allow lists are domains, senders and IPs; those end scoring with a pass.

Per-form settings

The Forms screen lists every form on the site from each active builder: Breakdance forms in pages, templates, headers, footers and popups; Bricks forms in pages and templates, headers and footers included; Elementor forms in pages, posts, templates, popups and global widgets. Each form shows its name, or for a Bricks form with no name its first few fields ("Form: Name, Email, Message"). A Bricks or Elementor form placed in a template is listed under the template that owns it, so its settings follow it onto every page that template appears on. Revisions, trashed posts and auto-drafts are ignored, so each form appears once. Press Rescan after adding a form; the index also refreshes whenever a post is saved.

For each form you can switch protection off entirely, or give it its own Hold and Reject thresholds. A form with protection off is not counted anywhere: it is neither a pass nor a block, so the dashboard's caught percentage stays honest.

When to raise a form's thresholds

A newsletter form with one email field gives the rules very little to go on, and a real subscriber from an unusual domain is easy to hold by mistake. Give forms like that a higher hold threshold, or switch them off and let the double opt-in do the work.

Settings

SettingEffectDefault
Test modeScore and record, but block nothing. See Test mode.Off
Never reject outrightHold everything that would have been rejected.Off
Behind CloudflareRead the visitor's IP from CF-Connecting-IP and the country from CF-IPCountry.Off
Behind another proxyRead the visitor's IP from the last entry of X-Forwarded-For.Off
Keep uploaded files with held submissionsCopy attachments into a protected store so a release can restore them. See Attachments.On
Skip files larger thanPer-file cap on what is kept.10 MB
Delete held submissions afterHousekeeping for the quarantine, files included.30 days
Delete the rejected log afterHousekeeping for the dashboard's rejected list.30 days
Summary emailOff, daily or weekly, and the address. See The summary email.Off
Tell me when a form stops deliveringSwitches form health monitoring on. See Form health.On
Webhook URLOptional Slack, Microsoft Teams or Discord incoming webhook for health alerts. Must start with https://. Never included in exports.Empty
Also email alerts to the summary addressEmail each new health problem to the summary email address, or the site admin address if that is empty.On
Warn when a busy form suddenly stops receiving submissionsThe daily silence check. Only forms with at least 20 submissions in the last four weeks are judged.On
Akismet keyOnly needed if the Akismet plugin is not installed.Empty
Write decisions to the PHP error logOne line per decision, plus every fail-open event.Off
Delete all Form Guard data when the plugin is uninstalledTables, options, cron events and the file store.Off
The proxy settings are the one thing to get right

Leave both off unless the site really is behind Cloudflare or a proxy. Each setting trusts exactly one header, and only that one: Cloudflare mode reads CF-Connecting-IP, proxy mode reads the last entry of X-Forwarded-For, which is the one the proxy itself appended. If you turn a setting on for a site that is not behind that proxy, a visitor can write the header themselves and choose which IP Form Guard sees, which defeats the IP lists and the rate limit. The right setting is the one that matches your hosting; when in doubt, leave both off and IP rules simply use REMOTE_ADDR.

The summary email

Daily at 8am, or weekly on Monday, Form Guard can send a short HTML summary: what was rejected, what was held, what was let through, how many are waiting for review with a button to the quarantine, and the five rules that did the most work. A plain-text version travels with it for clients that need one.

It is deliberately quiet. Nothing is sent on a quiet day: if nothing was blocked and nothing is waiting, there is no email. When test mode is on, the email says so.

When a summary goes out while a form has an open health problem, it carries a Forms not delivering box listing them. Health problems do not cause a summary to be sent on a quiet day; the health alerts themselves do that job.

Set the frequency and address on the Settings screen, save, then press Send a test summary. That sends one immediately whatever the schedule says, and reports plainly if the site's mail cannot deliver it.

Form health

A form can lose an enquiry without any spam involved: the email action fails, a webhook times out, a CRM rejects the data. Nobody sees an error, so nobody notices until a customer asks why they never heard back. Form health watches for this and tells you. It is on by default.

What it watches

ProblemHow it is spotted
An action reported an errorEvery builder reports what each action did. On Breakdance, when a form stores its submissions, Form Guard reads the actions log as it is written; on Bricks it reads the response, which names the action that failed; on Elementor it is told each action's outcome as it runs. An action that reports an error opens a problem for that form and action, with the action's own message. The same action later succeeding closes it. Messages meant for the visitor, such as a validation message from an action, are not counted as failures.
The form answered the visitor with an errorA Breakdance form that stores nothing leaves no log, so Form Guard reads the response Breakdance sends back to the browser, without changing it. It only counts when the submission passed Form Guard's checks, which proves the actions ran. Errors raised before the actions (a failed captcha, a missing required field, an expired security token) are not counted. A held or rejected submission answers with success on purpose and is never counted.
WordPress could not send an emailAny failed wp_mail call on the site opens a problem, labelled with the form when it happened during a submission. The next email that sends successfully closes it.
A busy form has gone quietChecked once a day. See below.

The silence check

Once a day, Form Guard looks at each protected form's submissions over the four whole weeks before today. Forms with fewer than 20 in that time are too quiet to judge and are left alone. For the rest it works out the usual gap between submissions, and warns when the form has gone more than three of those gaps without one, and never fewer than three days, so an ordinary weekend does not set it off.

A form that normally gets 280 submissions in four weeks is flagged after more than three quiet days; one that gets 20 is flagged after more than five. Every submission that reaches Form Guard counts, whether it was let through, held or rejected. The problem closes as soon as a submission arrives.

Why silence matters

Some failures happen before anything reaches the server: a broken script, a caching or security rule blocking the request, a page edit that removed the form. Nothing errors, submissions just stop. The silence check is the one that catches those.

Where problems show

  • The Form health screen: every open problem with its error, when it was first and last seen and how many times, a Clear button for each and Clear all, the last 25 failures, and resolved problems. Clearing closes a problem quietly, without a resolved message to the webhook.
  • A notice on every admin screen, listing each form and what failed, with a link to the Form health screen. Dismiss hides it until something new goes wrong; the problems stay open.
  • The dashboard's Form health panel: each open problem with the form, what failed, the last message, when it started and how many times it has happened. With nothing wrong it reads All forms delivering.
  • The header of every Form Guard screen shows a count of form issues.
  • An email to the summary email address (or the site admin address), when Also email alerts is on.
  • A webhook to Slack, Microsoft Teams or Discord, when a URL is set.
  • The summary email lists open problems when it goes out.

How alerts are sent

A new problem sends one alert through each channel. If it keeps happening, the count goes up but the next alert waits until a day has passed, so a broken form on a busy site does not flood your inbox. When a problem closes, the webhook gets a short resolved message; the email channel does not, to keep the noise down.

Problems with sending email are never emailed, because that email would not arrive either. They still show in the notice, on the dashboard and through the webhook.

Alerts go out after the visitor's request has finished, so a slow webhook can never hold up a submission. The webhook receives JSON with the alert as text (read by Slack and Teams) and content (read by Discord), capped to fit Discord's limit. Only https:// addresses are accepted.

After setting it up, press Send a test alert on Settings. It sends a sample through every channel that is switched on and reports which ones worked, or why one did not.

Switching parts off

Untick Tell me when a form stops delivering to stop monitoring altogether; the notice, the dashboard panel and the header count all go quiet with it. Untick the silence check alone if a form is naturally irregular, such as a seasonal booking form; open silence problems are closed without an alert. Forms with protection switched off on the Forms screen are not checked for silence.

It fails open too

Like the rest of Form Guard, monitoring can never affect a submission. Every check is wrapped so that a fault inside it is logged and ignored, and the response the visitor gets is passed through untouched.

The dashboard

Four tiles: waiting for review, rejected, let through, and the percentage caught, all over thirty days. Below them a stacked bar per day, then the rules that fired most, the form health panel, and the recently rejected list.

The form health panel lists every open delivery problem, or reads All forms delivering. A problem clears itself as soon as the form delivers again. See Form health.

Rejected submissions are not kept, so that list shows only when, which form, the score and the reasons. If something there should not have been rejected, raise the reject threshold on the Rules screen so it is held for review instead, or turn on Never reject outright while you tune.

The numbers only count what reached Form Guard

Each builder's own honeypot and captcha (and on Breakdance, Cloudflare Turnstile if you use the free Phox Elements action; on Elementor, its Akismet integration) all run first and stop what they stop before Form Guard sees it. On a site with those in place the dashboard shows the spam that got past them, which is smaller than the total.

The quarantine

The Quarantine screen has three tabs: Held (waiting for you), Released and Blocked. Held rows can be searched, sorted by date, score or address, and acted on in bulk.

Open a row to see everything Form Guard saw: every submitted value, any attachments held, the score with each rule that fired and the detail it recorded, and where it came from (address, IP, country, page, referer, browser, time). Three buttons:

ButtonWhat it does
Not spam, release itRuns every one of the form's actions exactly as if the submission had just arrived: email, CRM, stored entry, webhook, all of them, with the original files put back first. On Breakdance the action log is written to the stored submission. Actions that only steer the visitor's browser are skipped on Bricks and Elementor and named in the notice; see Form builders. The row moves to Released.
Block senderAdds the address to Blocked senders. Tick Block the whole domain too and Block the IP address too to add those as well. The row moves to Blocked and the next submission from them is rejected outright.
DeleteRemoves the row and its files.

A release runs once

Only a held row can be released, and the row is claimed the moment you press the button, so two people releasing the same submission at the same time cannot both get through and a released row cannot be released again. If a release is interrupted half way (a fatal, a timeout), the claim is handed back after fifteen minutes and the row is held again.

If an action reports a problem during release, the row is still closed: the actions have run, and leaving it held would invite someone to run them a second time. The notice tells you which action complained ("Released, but some actions reported a problem"), and on Breakdance the stored submission carries the detail.

Attachments

Every builder writes uploads to disk before its actions run. What happens next differs: Breakdance and Bricks delete them when nothing is stored, so a held submission's files would be gone by the time you released it, while Elementor leaves them in its public uploads/elementor/forms folder, where a held spammer's file would sit in the web root.

With Keep uploaded files on, Form Guard puts each file of a held submission into its own directory under wp-content/uploads/phox-form-guard/, and puts it back at the builder's original path on release. On Elementor the public copy is removed once Form Guard has its own, and the files of a rejected submission are deleted.

Stored copies get a random name with no extension, in a directory with a random name, behind a deny rule for Apache and an index file for everything else; nothing in there can be executed or guessed. The visitor's own filename is kept in the database for display only.

Files are purged with their row by the housekeeping schedule. When a Breakdance release stores no submission (the form has no Store submission action), the restored copies are removed afterwards, matching what Breakdance itself does. On Bricks the release finishes the way Bricks does, keeping, moving or deleting each file as its field is set up to.

Before any of this, the Suspicious uploads rule has already looked inside every file. See Rules.

Tools

Test a value

Paste an address, a domain, an IP or a phrase and Form Guard tells you which lists it hits. This is the quickest answer to "why was this held": if the tester shows only blocked TLD: ru then the extra points came from a rule, not a list, and the held submission's own reasons will name it.

Export

Downloads rules, lists, thresholds, per-form settings and the form health switches as one JSON file. The webhook URL is never included, so an export can be shared safely. This is also the format the shared list reads.

Import

Upload a file or paste JSON, choose which parts to apply (lists, rules, thresholds, per-form settings, form health switches), and whether to merge with what is there or replace it. Files from a newer version of the plugin are refused; everything imported goes through the same validation as the admin screens, so a hand-edited file cannot write anything the screens would not accept.

Shared blocklists

An agency looking after many sites wants to maintain one blocklist and have every site follow it. Form Guard does this with a feed: an export file at a URL.

  1. Tune one site until its lists are right, then Download configuration from Tools.
  2. Put the file somewhere fetchable over https: your own site's uploads, an object store, a static host. Only the lists section is read, so the rest can stay.
  3. On every other site, paste the URL into Shared list on Tools and press Save and sync now. The status line reports how many entries were applied.
  4. Leave it. Each site re-fetches the feed daily and applies whatever changed.

Entries that arrive from the feed are tracked separately from entries typed in on the site. A sync adds and withdraws its own entries and never touches yours, so a site owner's hand-curated list survives every sync.

A feed can only add to the deny lists

The feed is never allowed to write an allow list, because a feed that could would be a master key to every site following it. It must be served over https, redirects to private addresses are refused, and the response is capped at 1 MB. Keyword patterns from a feed are validated exactly like typed ones.

Licence

Enter your key on the Licence screen and press Activate. Form Guard needs an active licence to protect forms, and it brings plugin updates through the normal WordPress updates screen.

Licence stateWhat Form Guard does
Never activatedNothing for visitors: no scoring, no script on the page, no form health. Every screen except Licence is locked, and a notice says your forms are not protected.
ActiveEverything, with updates.
ExpiredKeeps protecting your forms. Updates and support stop, and the header shows a banner with a Renew link.
Deactivated, or reported disabled, revoked or not active on this site by the storeBack to never activated, so one key cannot be moved between sites and keep working on all of them.

The licence is checked once a day, and again when you open the Licence screen. A check that fails or cannot be read, because the store is unreachable for example, never changes anything.

Moving a site, or cloning it to staging

An activation belongs to the site's address. After a domain change, or on a staging copy, the store reports the key as not active on that site and protection switches off until you activate the key there.


How it hooks in

Each builder has its own adapter class, and PFG_Builders keeps the list of them: includes/class-breakdance-adapter.php, class-bricks-adapter.php and class-elementor-adapter.php. Only the adapters know about a builder; everything else reads a normalised PFG_Request_Context. Form ids are stored as text, because Bricks and Elementor element ids are strings.

Breakdance

Breakdance exposes one server-side filter in its submission pipeline, fired once per enabled action from inside handleSubmission():

apply_filters( 'breakdance_form_run_action_' . $slug, $canExecute, $action, $extra, $form, $settings );

Form Guard registers that filter for every action slug Breakdance knows about. On the first call for a request it builds the context, runs the engine once and caches the verdict; every subsequent call for the same request reads the cache. When the verdict is quarantine or reject it returns false for every action, so nothing runs and nothing is stored, and Breakdance returns the form's configured success message. No core file is changed and the AJAX endpoint is untouched.

A release calls \Breakdance\Forms\executeActions() directly with the stored raw fields, the restored files and the form's current actions and field definitions, then writes Breakdance's action log to the stored submission. It deliberately bypasses the CSRF, reCAPTCHA and honeypot gates in handleSubmission(), because those checked the original request and would fail for an administrator's replay.

Form health reads Breakdance without changing it. It watches for the submission's actions log being saved as post meta (_breakdance_form_actions, or _oxygen_form_actions on Oxygen 6), and inspects the submission request's JSON response through an output buffer that returns it unchanged.

Bricks

Bricks submits to admin-ajax.php with the action bricks_form_submit and has no per-action filter. Form Guard gates on bricks/form/validate, which runs after Bricks' own nonce, captcha, honeypot and file handling and before any action, so a submission Bricks is about to bounce for a missing field is never scored. A held or rejected submission is answered with the form's success message and its uploads are removed.

A release builds a fresh Bricks form object from the stored values without its constructor, and runs Bricks' own action classes on it in order, respecting action conditions and stopping at the first error as Bricks does. It runs logged out, removes registration auto-login, and skips redirect, login, unlock-password-protection and reset-password. Form health reads the action results from the JSON response through the same unchanged output buffer. Bricks is a theme, so builder setup runs on after_setup_theme.

Elementor Pro

Form Guard gates on the elementor_pro/forms/submit_actions filter at priority 9999, after Elementor's own validation, captcha, honeypot, Akismet and file handling. When a submission is held or rejected the request ends there with the form's success answer, so no action, new_record hook, activity log or Collect Submissions entry runs. The filter arrived in Elementor Pro 4.0.3; on older versions the adapter stays off.

A release rebuilds the form record the way Elementor does, puts the files back at their original paths, runs the actions as the visitor (their IP, browser and page) with no user logged in, fires elementor_pro/forms/actions/after_run and elementor_pro/forms/new_record, and skips redirect and popup. Form health listens on after_run. The forms index reads _elementor_data.

Shared

Every builder's email problems are caught through WordPress's wp_mail_failed and wp_mail_succeeded actions, and the silence check runs on the daily pfg_purge_quarantine event.

Writing a rule

Rules are self-describing. A rule declares its label, group, defaults and a config schema; the Rules screen renders itself from that, so a new rule needs no UI work. Register yours on the pfg_register_rules action:

add_action( 'pfg_register_rules', function ( $registry ) {
    $registry->register( new My_Company_Rule() );
} );

class My_Company_Rule extends PFG_Rule {
    public function id()             { return 'company_name'; }
    public function label()          { return 'Company field is a URL'; }
    public function group()          { return 'content'; }  // sender | content | behaviour | external
    public function default_points() { return 4; }

    public function config_schema() {
        return [
            'field' => [ 'type' => 'text', 'label' => 'Field label to check', 'default' => 'Company' ],
        ];
    }

    // Return null for "no opinion", or a short string describing the match.
    public function evaluate( $context, $config ) {
        $want = strtolower( $this->config( $config, 'field' ) );
        foreach ( $context->fields as $field ) {
            if ( strtolower( $field['label'] ) === $want && preg_match( '#https?://#i', $field['value'] ) ) {
                return 'url in ' . $field['label'];
            }
        }
        return null;
    }
}

Schema field types are toggle, number (with optional min and max), select (with options) and text. Values are validated against the schema whether they arrive from the Rules screen or from an import. Override default_enabled(), default_hard() and is_external() as needed; an external rule runs last and is skipped once the reject threshold is reached.

The context

Property / methodHolds
$context->fieldsArray of id, label, type, value per field.
$context->rawThe submitted values keyed by field id, exactly as posted.
$context->email · ip · country · user_agent · refererSender details, normalised.
$context->ageSeconds from render to submit, or null when unknown.
$context->honeypot_trippedBoolean.
$context->text_blob()Every text value joined, for content rules.
$context->message_value()The longest textarea.
$context->urls()Every URL found in the text.

Data model

KindNameHolds
Table{prefix}pfg_quarantineHeld, released and blocked submissions: form, builder, status, score, reasons, sanitised and raw fields (JSON, size-capped), file descriptors, sender details, timestamps.
Table{prefix}pfg_rejectedRejected submissions: form, builder, score, reason ids, and salted one-way hashes of the address and IP. No content is kept.
Table{prefix}pfg_statsOne row per form per day: passed, quarantined, rejected, and the rule hit counts. Feeds the dashboard.
Optionpfg_settingsEverything on the Settings screen plus the two thresholds.
Optionpfg_rulesPer-rule enabled, points, hard and config.
Optionpfg_listsEvery list.
Optionpfg_form_overridesPer-form settings keyed postId:formId.
Optionpfg_remote_entries · pfg_remote_listWhich entries came from the shared feed, and the last sync's status.
Optionpfg_health_issuesForm health problems keyed by kind and form: status, first and last seen, count, last message, when it was last alerted and whether the notice was dismissed. Resolved problems are kept for 30 days, and never more than 100 in all.
Optionpfg_health_eventsThe last 100 health failures, in order, for troubleshooting.
Optionpfg_hash_saltRandom salt for the rejected log's hashes, generated on activation.
Optionpfg_license_key · pfg_license_status · pfg_license_activatedThe licence key, what the store last reported, and whether the key has been activated on this site.
Optionpfg_db_versionThe table layout in use. Version 2 stores form ids as text and adds the builder column; older rows read as Breakdance.
Cronpfg_purge_quarantineDaily: recover stranded releases, purge old held rows and files, purge the rejected log, and run the form health silence check.
Cronpfg_refresh_listsDaily: re-fetch the shared feed.
Cronpfg_send_digestDaily at 8am, or Mondays at 8am, when the summary email is on.
Cronpfg_check_licenceDaily: ask the store for the licence status.
Directoryuploads/phox-form-guard/The protected file store.

Deactivating leaves everything in place. Uninstalling removes it all only when Delete all Form Guard data when the plugin is uninstalled was ticked first.

Front-end fields

One small script, assets/guard.js, runs on the front end. It finds every form.breakdance-form, form.brxe-form and form.elementor-form, including forms added after the page loads such as those in popups, and adds two inputs: pfg_hp_x (the honeypot, hidden from people and assistive technology, which must stay empty) and pfg_elapsed (empty until the visitor first touches the form, then seconds since the page loaded, updated again on submit). All three builders serialise the form with FormData, so the inputs travel with the submission without any change to the builder's own code.

Both rules treat a missing or empty field as "no opinion". A cached page, a visitor with JavaScript off, or a form rendered by some other means is never penalised for lacking them.


Security notes

  • Every admin action requires manage_options and a nonce. Form Guard registers no AJAX endpoints or REST routes of its own; it only listens on the builders' existing submission requests.
  • A release runs logged out on Bricks and Elementor, so an action that creates or updates posts can never act with the releasing administrator's rights.
  • Spam content is attacker-controlled and is rendered to administrators; every value is escaped at output.
  • Every database query is prepared; nothing is ever unserialised. Stored data is JSON.
  • Held rows are size-capped (64 KB per value, 512 KB per submission) so a bot cannot fill the table by getting itself held.
  • Keyword matching runs with a fixed backtracking budget against a capped amount of text, so a pathological pattern cannot occupy a worker.
  • Stored attachments carry random names with no extension; every path is checked against the uploads directory before a copy, restore or delete, and links are never followed.
  • The shared feed writes deny lists only, over https only, without following redirects to private addresses.
  • The rejected log holds salted hashes, never addresses.
  • Health alerts are only ever posted to an https:// webhook, after the visitor's request has finished. The webhook URL is kept out of exports.
  • Form health reads the submission response through an output buffer and always returns it byte for byte unchanged.

Troubleshooting

Submissions are being blocked but not appearing in the quarantine

They are being rejected, not held. Check the Recently rejected panel on the dashboard: it shows the score and every reason. The usual cause during testing is the rate limit stacking on top of another rule, which pushes a 6 to an 11. Wait ten minutes between test submissions, or turn on Never reject outright while you tune.

A real enquiry was held

Open it, press Not spam, release it, then add the sender's domain to Allowed domains so it never happens again. If the reasons show a keyword, consider whether that keyword belongs on the list at all.

Nothing is ever held or rejected

Check the Forms screen: is protection on for that form? Check Settings: is test mode on? Then submit from a @mail.ru address, which should be held at 6 points on the default lists. If it is still let through, turn on Write decisions to the PHP error log and read what the engine did.

The dashboard shows far less spam than the site gets

Each builder's own honeypot and captcha, Cloudflare Turnstile, and Elementor's Akismet integration all run before Form Guard and stop what they stop silently. The dashboard counts only what reached Form Guard.

Every screen except Licence is locked

The licence is not active on this site. Activate your key on the Licence screen. If it was active before, check whether the site's address has changed or this is a staging copy: an activation belongs to the address it was made on. See Licence.

Elementor forms are not protected

Check that Elementor Pro is active and is version 4.0.3 or newer; the free Elementor has no Form widget, and older Pro versions lack the hook Form Guard uses. The header names the builders being protected: if Elementor is missing from it, Form Guard has not found a usable Elementor Pro.

A release says some actions were skipped

That is expected on Bricks and Elementor. Actions that only steer the visitor's browser, such as a redirect or a popup, have nobody to act on when you release from the admin, so they are skipped and named. Every other action ran. See Form builders.

A Bricks release reports "Invalid post ID or form ID"

Bricks 2.4.3 changed how it identifies a form when saving a submission, and Form Guard before 1.2.0 did not supply it on release. Update to 1.2.0. A release that already failed this way ran its other actions but did not save the submission.

Releasing reports that the email action failed

The release ran; the site's mail path complained. Test it without Form Guard: submit the same form cleanly, with an attachment if the held one had one. If that fails too, the problem is the site's SMTP or mail service, and attachments are the usual trigger.

The country rule never fires

It needs a country, which only arrives from Cloudflare's CF-IPCountry header, and only when Behind Cloudflare is on. Without both, the country is unknown and the rule is silent by design.

"Submitted too quickly" never fires either

It needs the timestamp the Form Guard script writes. If the page is served from a full-page cache that was primed before the plugin was activated, or the theme blocks the script, the field is missing and the rule stays quiet. Purge the cache and check the page source for pfg_elapsed.

The summary email does not arrive

Press Send a test summary on Settings. If the notice says it was sent and nothing arrives, the site's mail is the problem. If the notice says it could not send, WordPress's wp_mail is failing and any SMTP plugin's own log will say why. Remember that a scheduled summary is only sent when something happened.

A form health problem will not go away

A problem closes when the form next delivers: the failing action logs a success, the form answers a genuine submission with success, or the next email sends. Send a real test submission through the form. If it keeps failing, the message shown on the dashboard is the action's own error, which is where to start. To clear the notice without fixing anything, press Dismiss; the problem stays on the dashboard until it resolves.

A health alert says a form went quiet, but it works

The silence check only knows that nothing arrived. Submit the form yourself: if it goes through, the problem closes. If a form is naturally irregular, untick the silence check, or switch protection off for that form on the Forms screen.

Health alerts do not arrive in Slack, Teams or Discord

Press Send a test alert on Settings. It reports the webhook's answer: a URL that does not start with https:// is refused, and anything but a 2xx response is shown with its status code. Check that the webhook is an incoming webhook for the right channel.

The shared list will not sync

The status line under the URL says why. The feed must be https, must return a 200, and must contain a lists section, which every Form Guard export does. A feed hosted on the same site as a security plugin that blocks server-to-server requests can fail with a 403.

Attachments are missing from a released submission

Check that Keep uploaded files was on when the submission was held, and that the file was under the size cap. Files skipped for size are noted in the log.

FAQ

Which form builders does it support?

Breakdance (the Form Builder element and Form Builder Plus), Bricks (the Form element) and Elementor Pro 4.0.3 or newer (the Form widget). Several can run on one site and share the same quarantine, rules and dashboard. See Form builders.

Does it work with the free version of Elementor?

No. Forms are an Elementor Pro feature; the free version has no Form widget to protect.

Do I still need Turnstile or reCAPTCHA?

They do a different job and they stack. Turnstile asks whether a browser is driven by a human and stops automated volume before it reaches the server. Form Guard reads what was actually submitted and catches what gets past: a person in a click farm, a spammer on a genuine Gmail account, a bot that has solved the challenge. Run both; on Breakdance, Turnstile is free from Phox Elements.

Does it change any builder files?

No. It hooks a filter each builder provides, and on release uses the builder's own code to run the actions. Nothing in the builder is edited or replaced, and deactivating Form Guard leaves the builder exactly as it was.

Does it work with Form Builder Plus?

Yes, automatically. Form Builder Plus renders through Breakdance's own form pipeline, so it goes through the same hook.

Where do rejected submissions go?

Nowhere. Only the score, the reasons and one-way hashes of the address and IP are recorded, so the dashboard can show what happened without the site holding a store of spam. If you want to see them, raise the reject threshold or turn on Never reject outright.

Will it slow my forms down?

Scoring costs about a millisecond on the server and nothing on the page. The outside checks each add a network round trip; they are off by default, cached when on, and skipped once the score has crossed the reject line.

Can I have different rules per form?

Each form can have its own thresholds and can be switched off. The rules and lists themselves are site-wide.

Will it tell me if a form stops working?

Yes. Form health watches for actions that report an error, errors sent back to visitors, emails WordPress could not send, and busy forms that go quiet. You get a notice in the admin, a dashboard panel, an email and, if you add one, a Slack, Teams or Discord webhook. Each problem clears itself once the form delivers again.

What happens to my data if I uninstall?

Nothing, unless you tick Delete all Form Guard data when the plugin is uninstalled first. Then the tables, options, cron events and the file store are all removed.

Changelog

1.2.0 New

New

  • Elementor Pro forms. Form Guard now protects Elementor Pro forms alongside Breakdance and Bricks, with the same scoring, quarantine and Form health. Needs Elementor Pro 4.0.3 or later; on older versions it switches itself off for Elementor and carries on for the other builders.
  • Held or rejected spam gets the form's normal success message, and none of the form's actions run: no email, no webhook, no Collect Submissions entry.
  • Files uploaded with a held submission are moved out of Elementor's public uploads folder into Form Guard's protected store, and put back where they were when you release it. Files sent with rejected spam are deleted.
  • Releasing a held submission runs the form's actions as the visitor would have, so Collect Submissions records the visitor's IP, browser and page, not yours. Redirect and Popup are skipped, because there is no visitor to send anywhere, and the release notice says so.
  • Form health watches every Elementor action and warns you when one fails, the same as on Breakdance and Bricks.
  • The Forms screen lists Elementor forms by name, including forms in templates, popups and global widgets.
  • Protection is added to forms that appear after the page loads, such as forms inside popups.

Fixed

  • On Bricks 2.4.3 and later, releasing a held submission failed with "save-submission: Invalid post ID or form ID." and the submission was not saved. Bricks 2.4.3 changed how it identifies a form when saving a submission; releases now give it what it expects. Older Bricks versions were not affected.

1.1.0

New

  • Bricks forms. The Bricks Form element is protected with the same scoring, quarantine and Form health, in pages and in templates, headers and footers included.
  • Held or rejected spam gets the form's normal success message and none of its actions run. A release runs Bricks' own actions in order, respecting action conditions, as a logged-out visitor, and skips actions tied to the visitor's browser (redirect, login, unlock password protection, reset password), naming them in the release notice.
  • Form health reads which Bricks action failed from the form's response.
  • Bricks forms without a name are listed by their first fields ("Form: Name, Email, Message").

Changed

  • Form ids are stored as text and each held or rejected submission records its builder. Existing data is carried over on update.

Form health update

New

  • Form health: alerts when a form action reports an error, when a form answers a genuine submission with an error, when WordPress cannot send email, and when a busy form suddenly goes quiet.
  • Alerts by admin notice, a dashboard panel, a header count, email, and an optional Slack, Microsoft Teams or Discord webhook, with a test button. Problems clear themselves when the form delivers again.
  • Open health problems are listed in the summary email.
  • Exports and imports include the form health switches. The webhook URL is never exported.

1.0.0

New

  • Initial release: thirteen rules in four groups, two thresholds, block outright, allow lists, test mode and never-reject.
  • Quarantine with review, release (attachments restored, action log written), block sender with domain and IP, and delete, singly or in bulk.
  • Dashboard with thirty-day counts, a per-day chart, top rules and the rejected log.
  • Per-form protection and thresholds, with automatic discovery of every Breakdance form.
  • Tools: match tester, shared blocklist feed, export and import.
  • Daily or weekly HTML summary email with a plain-text alternative and a test button.
  • A curated disposable-domain list, StopForumSpam and Akismet as optional outside checks.