Why I built this plugin
Sooner or later the contact form on an export website runs into three things: the inbox fills up with SEO pitches and gambling links, burying real inquiries; bots skip the page and post straight to the server (the Page URL in the inquiry is empty — the script never opened your site); and once you add a strict CAPTCHA, the bots are stopped, but so are real buyers who can’t be bothered.
This plugin is what I built up over years of maintaining my own export websites. Its core position is just one thing: anti-spam shouldn’t cost you inquiries. Zero friction for real people (no CAPTCHA, no slider), zero tolerance for wrongful blocks (better to hold a submission than lose you a customer).
Six layers of protection
Validation runs twice, in front-end JavaScript and back-end PHP; the back end scans every submitted field automatically (including fields forged by bots), so you don’t need to specify field IDs one by one.
- Keyword filtering on all fields — any banned keyword blocks the submission, with whole-word matching (
seowon’t wrongly hit "houseowner"). Keepinghttp://is recommended to block every inquiry that contains a link. - Email validation and blacklist — format check plus a blacklist that accepts whole domains (
@spam.com) or address prefixes (test@). - Honeypot — injects a hidden field real people can’t see; bots that fill in forms automatically give themselves away. It’s hidden by moving it off-screen, which scripts detect less easily than
display:none. No false positives. - Submission speed check — no person fills in a form in 3 seconds. The timestamp travels through both a hidden field and a cookie, so it works with page caching.
- Source check — validates Elementor’s Page URL metadata directly, so bots can’t get past it by forging the referer header; a relaxed mode recognizes real people coming from ad landing pages to avoid wrongful blocks.
- Full block log — time, reason, full content, IP and source are logged for each block, filterable by reason, with manual tagging and automatic flagging of "likely real ad visitors" for review.
The order of checks is deliberate: first the "definitely spam, no false positives" checks (honeypot → keywords → email), then the behaviour checks that could catch a real person (source → speed). The statistics are more accurate and real people are safer.
Wrongful blocks don’t lose orders
Any anti-spam system can catch the wrong thing, so every blocked submission can be recovered:
- One-click resend — spot a real inquiry in the block log, click "Resend" and it goes to your inbox in the same format as Elementor’s native notification, with the customer’s email set as the reply-to address.
- Manual tagging loop — mark each record as "real inquiry" or "spam" to keep tuning your keywords and blacklist.
- Likely real ad visitors — blocks whose source carries ad parameters such as
gclidorutm_are grouped separately, so sites running Google Ads can review them and not waste ad spend. - Automatic cleanup — records are cleaned up by retention days, with a cap of 3000 records in total, so the database doesn’t slow down.
Block reason codes
Every block has a clear reason code, shown after the error message the visitor sees and in the block log:
| Code | Meaning | Category |
|---|---|---|
KEYWORD |
The submission contains a banned keyword | Keywords |
EMAIL-FORMAT |
Invalid email format | |
EMAIL-BLACKLIST |
The email is on the blacklist | |
HP |
The honeypot field was filled in (bot form-filling) | Bot |
PAGEURL-MISSING |
Page URL is empty (a script posted directly, skipping the page) | Bot |
PAGEURL-FOREIGN |
Page URL domain is not this site | Bot |
REF-MISSING |
No HTTP referer header (strict mode only) | Bot |
REF-FOREIGN |
HTTP referer is not this site (strict mode only) | Bot |
TS-FAST |
Submitted faster than the threshold (default 3 seconds) | Bot |
TS-INVALID |
Invalid timestamp (forged or expired) | Bot |
TS-MISSING |
No timestamp at all (this switch is off by default) | Bot |
Installation and quick start
- Upload and activate the plugin — in the admin go to "Plugins → Add New → Upload Plugin", upload the zip downloaded from this page and activate it. Elementor Pro must be installed (forms are a Pro feature).
- Open the "Inquiry Guard" menu — once activated, a menu with a shield icon appears in the left sidebar; all settings are on one page.
- Fill in keywords and the email blacklist — one per line. Keeping
http://andhttps://is recommended to block inquiries with links; the honeypot, speed check and source check are on by default. - Set the error message and forwarding email — the error message can use the sample text in one click (replace the placeholder email in the sample with your own); leave "Forward to" empty to send to the site admin email.
Basis and limits
- Blocking happens in Elementor Pro’s form validation hook, so a blocked submission never triggers Elementor’s email; the visitor sees your custom error message (with the block code, for troubleshooting)
- It only protects Elementor Pro forms — Contact Form 7, WPForms and other form plugins are not covered
- Keyword filtering is exact or whole-word matching with no semantic judgement; for content spam (sales pitches written as normal sentences), keep tuning the blacklist
- Blocked content includes the visitor’s original submission and IP, which is your own site’s data — it’s a good idea to mention this in your privacy policy
Related reading
- Question bank
- SEO basic check — check whether your site’s basics are healthy