WebAIM - Web Accessibility In Mind

E-mail List Archives

RE: Anti-spam email links in Javascript

for

From: Randy Pearson
Date: Apr 8, 2004 10:06AM


We have a function in our (server-side) library that munges the email
addresses so that they still look normal and act normal, but most harvesters
that look for email address "patterns" will not notice them.

Here's the function. It's written in Visual FoxPro, but you get the idea:

FUNCTION HTMunge(tcEmail)
tcEmail = ;
STRTRAN(;
STRTRAN(;
STRTRAN(;
STRTRAN( m.tcEmail, "@", "@"), ;
".", "."), ;
":", ":"),
"m", "m")
RETURN m.tcEmail
ENDFUNC

-- Randy

>