Extras catalogue

SpamGuard

Latest release 15 years ago (October 24, 2011).

spamguard

  • By debussy

About

Protect email addresses in mailto links from spam bots with JavaScript.

This script generates <a> tags that are devoid of email addresses. When a user clicks on the link, a JavaScript generates the mailto link and then forwards the user to it. The @ symbol is never used, and under the most secure method (using a default email domain) the email username (what comes before the @ symbol in the address) is nowhere near the domain, which is also broken up.

Allows TO, CC, BCC, Subject, and Body fields on the Mailto link.

EXAMPLE----------------------

Snippet: [[!SpamGuard? &email=`user-name` &display=`Email`]]

Output: <a class="SpamGuard" href="javascript: void();" uU="user-name">Email</a>

Installation & usage

Install via Package Management.

Important: First, please set the domain, defaultLink, and defaultDisplay in the snippet properties; SpamGuard will attempt to use the default domain whenever possible. In fact, this ends up being slightly more secure as the username and the email domain get distanced from each other in the html. the defaultLink and defaultDisplay are used if JavaScript is disabled.

At a glance

MODX 3 compatibility unknown. Based on our testing and community reports where available.

  • Developer debussy
  • Latest release October 24, 2011 (15 years ago)
  • First seen in SiteDash October 14, 2011 (15 years ago)
  • License GPLv2
  • MODX support 2.0 – 100.0

Releases 1 indexed release

Changelog
MODX.com

1.5-pl

October 24, 2011

15 years ago

<p>SpamGuard 1.5-pl (October 14, 2011)====================================- Updated to allow for default link and display if JavaScript is disabled- mailto links build into href tag(s) on page load instead of on click</p><p>SpamGuard 1.0-rc1 (September 12, 2011)====================================- Initial Release</p>