The Movable Type User Manual

NOTE: This documentation is for Movable Type 3.2. If you are using a newer version, please see the documentation for Movable type 3.3x or Movable Type Enterprise.

« Introduction | Up | Configuring Outbound Email Services »

Chapter 9: Email

Protecting Email Addresses from Spammers

Problem

You want to display an email address in a way that is hard for spammers to capture.

Solution

Apply the spam_protect global filter.

Discussion

Spam is the bane of our online existence and arguably the biggest problem with email today. To generate their lists of email addresses, many of these spammers use automated systems to harvest email addresses from web pages and other online resources.

The email tags in MT include a simple spam_protect argument for disguising the familiar pattern of an email address using entity-encoding characters. Assuming our author's email is race@drquest.com, this tag...

 <$MTEntryAuthorEmail spam_protect="1"$>

...would output...

 race&#64;drquest&#46;com

This is not foolproof, since one of these agents need only take the extra step of decoding entities to detect email addresses. It takes many layers to stem the flood of spam and this is but a simple first step to slow them down.

Submit Feedback on This Article

Your comments on how we can improve this article are appreciated; but please do not use the feedback form to submit support requests or question. We will not respond to or publish such queries submitted through this form. If you have a technical question or problem, visit Movable Type Support.

Six Apart
Makers of weblog software and services for individuals, organizations and businesses.
This website is powered by Movable Type.