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@drquest.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.



