How to avoid spam when posting your email address online
One sure recipe to end up with an Inbox full of spam is to openly publish your email address on the Web. Whether it appears in the Contact section of your Web site, or on postings you've made to a forum, blog or guestbook, spam robots will be quick to snatch it and direct tons spam your way.
There are a number of techniques you can use to prevent your email address from ending up on spammers' lists and at the same time give your visitors ample means to get in touch with you.
Disguise your email address by replacing symbols
You can substitute the "@" and "." symbols from your email with words - for example <youremail> (AT) <something> (DOT) <com> - i.e support (at) mysite (dot) com. Please note that you shouldn't set a 'mailto:' link on the disguised email string, as crawlers may extract the address from it. Visitors can replace the words with the correct symbols and contact you, while keeping spam crawlers away.
This option is the quickest, but replacing the words with symbols could be confusing for some users.
Post your email address as an image
You can safely post your email address as an image. You may create the image with any imaging program you are acquainted with or use some of the free online Email Address to Image Converters (e.g. www.chxo.com/labelgen) A sample image will look like this:
Again, don't set a mailto: link on the image. Users will need to retype the email address they see on the image into their mailing programs in order to send you a message.
Add a Contact form
A well-constructed Contact form is the ideal solution for letting your users easily contact you while keeping spammers away. Adding a contact form requires these steps:
- Add the form from Add Content > More.. > Form
- In the "Add Form" pop up window that opens, add your form by using the sample "Feedback form" wizard icon available in the upper right corner of the toolbar.
- Click on the "Submit" button and in in the "Send to Email" section the right hand side panel fill in the "To" field with the email address to which the form messages should be sent.
For detailed instructions, please refer to the Forms tutorial.
Shroud your email address using Java Script
To shroud your email, use the code below - replace [your_username] with the part of your e-mail address before "@" and [your_mail_account_domain] with the part after "@".
var username = "[your_username]";
var hostname = "[your_mail_account_domain]";
var linktext = username + "@" + hostname ;
document.write("<a href='" + "mail" + "to:" + username + "@" + hostname + "'>" + linktext + "</a>");