Mailto links that discourage spammers
Stacy Pober
Spober at manhattan.edu
Thu Apr 22 20:25:33 EDT 1999
Hey, I found an answer to my own question!
Some time back, I had asked on this list for ways that I could have my
email address on my webpage, yet discourage the spambots from
getting ahold of it. I ended up using character literals for part of the
addresss and getting rid of the actual "mailto" link.
However, the Dr. Website column in a recent issue of Internet World
gave a nice javascript solution for this that uses a javascript to
create the mailto link. The archive page for this column is:
http://www.webdeveloper.com/drweb/19990329-drweb.html
and another, similar script is at the JavaScript Source site:
http://javascript.internet.com/page-details/email-protector.html
The Dr. Website column also mentioned a page at SiteUp that will
automatically convert your entire email address into character entities
and will email the converted address to you. (Just be aware that
unless you want to be added to the mailing list for two newsletters
that SiteUp offers, you must check both of the "No Thanks" boxes
on the form.) http://www.siteup.com/encoder.html
If you'd rather do the character entity translation yourself, here's a
site with the HTML 3.2 entities (Okay, maybe it isn't the latest spec
but I doubt the a-Z characters have changed.):
http://www.w3.org/TR/REC-html32.html#latin1
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\
Stacy Pober mailto: spober at manhattan.edu
Information Alchemist http://www.manhattan.edu/library/
Manhattan College Libraries Voice: 718-862-7166
Riverdale, NY 10471 Fax: 718-862-7995
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\
More information about the Web4lib
mailing list