Masking Emails and Avoiding Spam
Hans Zaunere
hans at nyphp.org
Thu May 1 15:49:49 EDT 2003
I was sent the below today at work and thought I'd pass it on.
> To prevent the harvesting of your or your organization's email address
> from your web pages, we recommend that you implement one of the
> two solutions offered below to replace your "mailto" links on html pages.
>
> 1) JavaScript Replacement
>
> For example, if your email address is webmaster at nyphp.edu, you would insert
> the following code, replacing "user" with the information to the left of
> the @ sign and replacing "site" with your host name.
>
> <SCRIPT LANGUAGE="JavaScript">
> <!-- Begin
> user = "webmaster";
> site = "nyphp.edu";
>
> document.write('<a href=\\"mailto:' + user + '@' + site + '\\">');
> document.write(user + '@' + site + '</a>');
> // End -->
> </SCRIPT>
>
>
> 2) ASCII Code Replacement
> You can replace the "@" sign in your mailto links with the ASCII code
> equivalent "@".
>
> For example, if your email address is webmaster at nyphp.edu, you would do the
> following:
>
> <a href="mailto:webmaster at nyphp.edu">webmaster at nyphp.edu</a>
>
> This will produce a link that says webmaster at nyphp.edu.
>
>
> Please see the following web page for more information on protecting your
> email address from spam:
>
> http://www.cdt.org/speech/spam/030319spamreport.shtml
=====
Hans Zaunere
President, New York PHP
http://nyphp.org
hans at nyphp.org
More information about the talk
mailing list