Including email addresses on Web pages

Angry Tiger

Photo by claudiogennari


Not unreasonably, if you have a web-site you will want to include your email address so that potential clients can contact you. Unfortunately, if you have your email address in plain view on a webpage without encrypting it in any way then it is inevitable that you will get a huge amount of spam to that address.

There are several ways to address this problem. One is to use a contact form with Captcha text, but that requires some knowledge of programming. Perhaps the simplest is to replace bits of the address so that a human can read them and work it out, for example:

yourname -at- domain -dot- com

That works, but does require the enquirer (a potential client, remember) to type the address in by hand. We don’t want to make things any more difficult for them than we need to.

Another way, which does result in a clickable link on the page, is to use codes for the characters of the address rather than actually typing it in. For example, the code for the letter ‘y’ is 121 so including y on a webpage will tell the browser to display a letter ‘y’. A simple tool to convert the whole email address is at www.wbwip.com/wbw/emailencoder.html
Type in ‘yourname@domain.com’ and get back:

yourname@d omain.com

Include that in your web page as an html link:

<a href=”mailto:
&#121;&#111;&#117;&#114;&#110;&#97;&#109;&#101;&#64;&#100; &#111;&#109;&#97;&#105;&#110;&#46;&#99;&#111;&#109;”>
&#121;&#111;&#117;&#114;&#110;&#97;&#109;&#101;&#64;&#100; &#111;&#109;&#97;&#105;&#110;&#46;&#99;&#111;&#109;
</a>

and on your web page it comes out as a normal, clickable link, so there is no chance of your potential client mistyping it, but it is harder for spammers to read.

This isn’t foolproof – it would be quite practical for a spammer to write a program to get around it – but it is just about making your address more difficult to harvest than someone else’s. Basically it is like the man chided by his friend for tying his shoelaces when they see an approaching tiger – his friend says “you can’t outrun a tiger” – he replies “I only have to outrun you”.

Share

No related posts.

About James Lamb

James Lamb has a degree in Computer Science and Mathematics from London University, worked for over 20 years as a senior IT technician and team leader, much of that time for dealing rooms of international banks, and became a full-time, professional indexer in 2004.
This entry was posted in client communications, email, SIdelights (SI newsletter), web presence and tagged . Bookmark the permalink.

2 Responses to Including email addresses on Web pages

  1. S. A. Fifer says:

    Thanks for all the good information available on this blog! As I am setting up my own freelance business, I was particularly glad to see the risk assessment article–but this one as well is a huge help with something that I had been wondering about for my website.

    I’ve not read everything here, so I’m wondering if you’d have suggestions on how to handle backup…external hard drive, online, et cetera?

    • James Lamb says:

      Glad you found the articles helpful. I have a couple of posts related to backups but the best solution will depend on your exact situation. Cloud backups, such as Mozy or Carbonite, are good but if you live somewhere remote with slow internet connection then you would be better off using your own local backup. The key thing is that backup is useless if you don’t do it, so it is best to have it fully automatic, and also useless if it doesn’t work, so you must try actually recovering some files to prove that you can.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>