Skip to content

v0.1.1 — Automatic email obfuscation

Latest

Choose a tag to compare

@meksone meksone released this 09 Apr 19:20
8d524cd

What's new

Automatic email obfuscation (no configuration needed)

The plugin now scans post content, excerpts, and widget text before output and obfuscates all email addresses automatically:

  • <a href="mailto:..."> links written in the block editor or any page builder are replaced with Base64-encoded <span> elements. Original link attributes (class, target, title, rel) and inner HTML are preserved.
  • Plain-text email addresses (e.g. contact@example.com typed directly in the editor) are wrapped in the same obfuscated span and converted into clickable mailto links on the frontend.

The raw page source never contains a readable @ address. JavaScript decodes the payload with the native atob() function and reconstructs the live link transparently.

No-JS fallback

Fallback text uses the HTML entity &#64; for @, so addresses remain human-readable in browsers without JavaScript.

Files changed

  • shadow-links.php — added shadow_links_obfuscate_mailto() filter + shadow_links_extract_attr() helper
  • js/email-link-generator.js — added processShadowEmailElements() and createShadowMailtoLink() methods (v0.1.9)
  • README.md — new Automatic Email Obfuscation section, updated changelogs

Previous release

  • v0.1.0 — initial release