=== MySiteHandled Spam Shield – Spam Filter for Contact Form 7 & WPForms ===
Contributors: mysitehandled
Tags: spam, anti-spam, contact form 7, wpforms, contact form
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Contact form spam filter for Contact Form 7 and WPForms: rules plus AI, no CAPTCHA. Suspected spam is held for your review, not deleted. Free key.

== Description ==

Spam Shield is a contact form spam filter for Contact Form 7 and WPForms that uses rules and AI and needs no CAPTCHA. It reads each message just before the form's email is sent. A message that looks like spam, such as a sales pitch, an SEO offer or a scam, is held for you to review instead of emailed. Any other message is emailed as normal.

It reads what a message says, not how it was typed, so it can hold spam that a person typed into your form by hand. A CAPTCHA cannot tell that kind of message from a real enquiry. Your visitors get no puzzle, checkbox or extra field.

* **Held for review, not deleted.** A held message waits on **Settings → Spam Shield → Blocked messages** for 30 days. If it was real, press **Not spam: deliver it** and the form's normal email goes out. After 30 days it is removed, so look over the page now and then.
* **The sender is not told.** A held message sends no email and shows no error.
* **A problem with the check delivers the message.** If the checking service is slow, down or cannot be reached, or its daily AI limit is reached, the message is delivered as normal, without a check.
* **Your checks for the month used up?** Messages are delivered as normal, without a check, until the next month starts (UTC). A dashboard notice tells you when checks come back.
* **What is not checked.** A message is checked only if it has a valid sender email address; without one it is delivered without a check. WPForms forms with email notifications switched off are not checked.
* **Nothing is added to your pages.** It loads no scripts, styles or tracking on your site's pages. A dashboard widget shows how many messages were held this week.

= How a message is checked =

MySiteHandled's own rules and sender lists check it first. When they cannot decide, an AI model (Anthropic's Claude) reads it. What is sent, and to whom, is listed under External services.

= Free key and Pro =

Spam Shield needs a key from [mysitehandled.com/spam-shield](https://mysitehandled.com/spam-shield). Nothing is sent from your site until you paste it.

* **Free key:** 50 checks a month, one check per form message, no card.
* **Pro:** 5,000 checks a month for one site, $9/month or $90/year. Pro raises how many checks your key covers. It does not unlock anything in the plugin. Upgrade or cancel from Settings → Spam Shield; Pro runs to the end of the period you paid for, then your key goes back to the free plan.

Spam Shield works with Contact Form 7 and WPForms. They are products of their own owners; Spam Shield is not made by, affiliated with or endorsed by either.

== External services ==

This plugin connects to the MySiteHandled spam checking service at mysitehandled.com, which decides whether a form message is spam. You need a key and must paste it before anything is sent. Service terms: https://mysitehandled.com/terms. Privacy policy: https://mysitehandled.com/privacy#spam-shield

* **When:** for each Contact Form 7 or WPForms submission that is checked; when you press "Not spam: deliver it"; and when you open the Spam Shield settings page (to show checks used and Pro's price, at most once every 5 minutes). While your checks are used up, the Dashboard and the Plugins screen make the same reading, also at most once every 5 minutes.
* **Sent about a visitor:** the sender's name, email address, phone number, subject and message text, plus any other answers on the form (not file uploads, hidden fields, spam-trap fields, consent checkboxes, quiz answers, captcha answers or the submit button), added to the message text and cut to 4,000 characters, plus the Reply-To address when the form's email has one. "Not spam" sends the sender's email address. The visitor's IP address, browser or device details, and the page or referrer they came from are not sent.
* **Sent about your site:** your key (an `Authorization: Bearer` header, over HTTPS), WordPress's standard User-Agent header (your WordPress version and site address) and your site's address in an `X-MSH-Site` header. A key works on one site; mysitehandled.com ties it to the first address it sees. No plugin or PHP version is sent.
* **Your server's IP address:** the request comes from your site's server, so mysitehandled.com sees that server's IP address, never the visitor's. The service does not save it with a message or the record of the check. It writes it to its application log, kept 14 days, only when a request is turned away for a missing, unknown or revoked key, and uses it to rate limit only requests that carry no valid key. Its web server may also keep ordinary access logs.
* **Moving your key:** only when you press "Email me a link to move the key here", the plugin sends your key and your site's address, and mysitehandled.com emails the address on your Spam Shield account a link.
* **Upgrading and billing:** only when you press an upgrade or Manage billing button, the plugin sends your key (and, for an upgrade, month or year and the settings page's address) and gets a link. Your browser then opens that link at Stripe (https://stripe.com), which takes the payment. The plugin does not handle card details. Stripe's privacy policy: https://stripe.com/privacy
* **Anthropic (AI classification):** when our rules and sender lists cannot decide whether a message is spam, our server sends Anthropic's API (https://www.anthropic.com) the sender's name, email address, phone number, subject and message text, with any other answers on the form, and that it came from a contact form, together with a one-line description of the business, only if MySiteHandled has set one for your site (it is empty unless MySiteHandled staff add one, and nothing a visitor sends can change it). Anthropic's AI model (Claude) uses this to classify the message; the business line helps it tell a real enquiry from a sales pitch. The Reply-To address is not sent to Anthropic. Anthropic's commercial terms say it may not train its models on this content. Anthropic's published policy says it automatically deletes API inputs and outputs from its systems within 30 days of receipt or generation, with exceptions, for example where it needs them to enforce its Usage Policy or to comply with the law: https://privacy.claude.com/en/articles/7996866-how-long-do-you-store-my-organization-s-data. Anthropic's terms: https://www.anthropic.com/legal/commercial-terms. Anthropic's privacy policy: https://www.anthropic.com/legal/privacy
* **Kept by mysitehandled.com:** the sender's name, email address, subject and message text for 30 days, then the text is deleted; a record that a check happened (without the text) for 90 days. The phone number is used for the check and is not kept. A sender judged spam goes on a block list for your site, deleted after 365 days with no further message from that address; an address you mark "Not spam" stays on your allow list until removed. Other Spam Shield sites cannot see it. Text deleted from the live database can remain in a database backup, nightly or one-off, until that backup is deleted.

Your site's privacy notice should say that contact form messages are screened for spam by mysitehandled.com and Anthropic. Spam Shield adds suggested text under Settings → Privacy → Policy Guide.

== Installation ==

You need Contact Form 7 or WPForms installed and active.

1. In WordPress, go to Plugins → Add New, search for "MySiteHandled Spam Shield", then press Install Now and Activate.
2. Get a free key at https://mysitehandled.com/spam-shield.
3. Go to Settings → Spam Shield, paste the key and press Save. The page shows "Connected" and how many checks you have used this month.

== Frequently Asked Questions ==

= How do I stop Contact Form 7 spam? =

Install Spam Shield, get a free key and paste it under Settings → Spam Shield. Each Contact Form 7 message with a valid sender email address is then checked just before its email is sent. Suspected spam is held on the Blocked messages page instead of emailed; any other message is emailed as normal. A held message shows the visitor the form's usual success message, not an error, because Contact Form 7 counts a skipped email as sent. A message that is emailed shows whatever Contact Form 7 shows now, including its own mail error if your site's email is failing.

= How do I stop WPForms spam? =

The same way: paste your key, and each WPForms message is checked before the form's email notifications go out. The form needs its email notifications switched on; a form with notifications off is not checked. Spam Shield holds only the email. It does not change what WPForms itself saves.

= My reCAPTCHA is not working. Can Spam Shield help? =

Spam Shield is not a CAPTCHA, and it does not fix reCAPTCHA. It adds nothing to your form. Once your key is saved, it reads a message just before the form's email is sent, so it runs with a CAPTCHA on or off. A submission that Contact Form 7 or WPForms turns away, by their own spam checks included, or that another add-on stops before then, is not read. If you take a broken CAPTCHA off your form, the rest are still checked, except the cases the Description lists as not checked, a problem with the check, and checks used up for the month.

= Does it catch every spam message? =

No filter is perfect. Some spam can get through, and a real message can be held, which is why a held message waits for you on the Blocked messages page instead of being deleted.

= Can a real message be lost? =

A fault in the check delivers the message. A message Spam Shield holds waits 30 days on the Blocked messages page, where one click delivers it; after that it is removed, so look over the page now and then.

= Does it add a CAPTCHA or change my form? =

No. It adds no field, script or style to your form or pages. It reads the message after it is submitted.

= Which forms are checked? =

Contact Form 7 and WPForms. Messages from other form plugins and WordPress comments are not checked. If neither plugin is active, the settings page and the Plugins screen say so.

= What is sent off my site, and how long is it kept? =

About the visitor, only what they typed: the sender's name, email address, phone number, subject and message text, with the form's other answers, go to mysitehandled.com. When its own rules cannot decide, its server asks Anthropic's AI model (Claude). The visitor's IP address and browser details are not sent. Your key and your site's address go with each check. mysitehandled.com keeps the message text for 30 days and a record that a check happened for 90 days. The full list is under External services above.

= What do Free and Pro include? =

Both check messages the same way; Pro covers more of them. The free key gives 50 checks a month, with no card. Pro gives 5,000 checks a month for one site, at $9/month or $90/year, and unlocks nothing else in the plugin. If Pro is not for you, ask within 14 days of your first Pro payment for a full refund: https://mysitehandled.com/refunds

= What happens when my checks run out? =

Messages are delivered as normal, without a check, until the next month starts (UTC), so spam can reach your inbox in that time. No message is held or lost because checks ran out. A dashboard notice gives the date checks come back. Pro covers 5,000 checks a month.

= Will it nag me to upgrade or leave a review? =

It does not ask for a review. It shows a notice only when it needs something from you: a key is missing, checks are used up (dismissible), your key is in use on another site, or neither form plugin is active.

= How do I cancel Pro? =

Settings → Spam Shield → Manage billing or cancel. Pro runs to the end of the period you paid for, then your key goes back to the free plan.

= What happens to held messages if I delete the plugin? =

Deleting the plugin also deletes the held messages, so deliver any real ones first.

== Screenshots ==

1. Settings → Spam Shield on the free plan: connected, how many checks you have used this month, which form plugin is protected, the Pro upgrade buttons and what is sent, and where.
2. The Blocked messages tab: each held message shows the sender, why it was held and its subject, with "Show message" and a "Not spam: deliver it" button.
3. The Spam Shield dashboard widget: how many messages were held this week, with a link to see them.
4. The notice shown when your key is already in use on another site, with a button that emails you a link to move it.
5. The suggested privacy text Spam Shield adds under Settings → Privacy → Policy Guide: what is sent and when, who checks the message and how long it is kept.

== Changelog ==

= 1.0.0 =
* The plugin's name is now MySiteHandled Spam Shield – Spam Filter for Contact Form 7 & WPForms, and its description is reworded. Messages are checked the same way as before.

Earlier versions: see changelog.txt in the plugin folder.

== Upgrade Notice ==

= 1.0.0 =
A longer plugin name and a reworded description. Messages are checked the same way as before.
