Auto-detection scans your posts, pages, and widget text for contact information and protects it before the content is sent to the browser. You choose what to detect and how strict the matching is—so you can lock down everything or keep it conservative.
Where to Configure It
All auto-detection options live under WhoKnew Shield → Protection Settings, in the Auto-Detection (Optional) section. Two things must be on first:
- Enable Contact Protection — The master switch. If this is off, nothing is obfuscated (including shortcodes).
- Enable Auto-Detection — Turns on scanning. Until this is on, no automatic finding or wrapping happens.
After that, check the contact types you want: Email addresses (Free), and in Pro Phone numbers and Physical addresses. All of these are off by default so you opt in explicitly.
What Gets Scanned
Auto-detection runs on:
- Post and page content (
the_content) - Widget text (e.g. Text widget, Custom HTML where shortcodes run)
Content that is already inside a [whoknew-shield] shortcode is skipped so it isn’t processed twice. Plain text and existing mailto: or tel: links are eligible for detection.
What Happens When Something Is Found
- Plain text emails — Wrapped in
[whoknew-shield type="email"]...[/whoknew-shield]so the normal shortcode logic obfuscates them and outputs a mailto link. - Emails inside
mailto:links — The link is obfuscated in place (href and display text) so scrapers can’t read the address from the HTML. - Phone numbers (Pro) — Detected in plain text or inside
tel:links and obfuscated according to the phone strictness setting. - Physical addresses (Pro) — Detected in content and obfuscated according to the address strictness setting.
Detection Strictness
For each type you enable, you can set Detection strictness in Protection Settings. The slider gives you three levels:
The plugin shows a short tip in the UI: start with Strict and test, then move to Balanced if needed; use Aggressive for dedicated contact pages.
Use with caution: Auto-detection can cause false positives (e.g. non-email text that looks like an email). The plugin recommends testing on a staging site first. For precise control over exactly what is protected, use the [whoknew-shield] shortcode instead of auto-detection.
Defaults and Pro
After activation, Enable Contact Protection, Enable Auto-Detection, and each type (Email addresses, and in Pro Phone numbers, Physical addresses) are all off. Email strictness defaults to Balanced; Pro phone and address strictness have their own defaults (e.g. Balanced for phone, configurable for address). Save the form after any change.
In Free, only email can be auto-detected. Phone and address appear in Protection Settings as Pro options; when you upgrade and enable them, the same scanning pipeline runs with Pro’s detection and obfuscation.
Need Help?
For step-by-step setup: Your First 5 Minutes with WhoKnew Shield (Free) and Your First 5 Minutes with WhoKnew Shield (Pro). For manual control: Basic Shortcodes Reference. For why obfuscation matters: Understanding Contact Obfuscation & Spam Prevention.