Step 1: Convert your address into an image

Pick colors for text, background and border, choose a font and click Generate. Then, save the generated image to your computer. When you do, use a file name that nobody would link with email addresses, such as nospam.png.

Finally, upload the image to your website. I will use images/nospam.png as an example.

Alternatively, run any image editor, type your email address in as text, (crop, re-size and make any other modifications until you’re happy with what you get) and save the image.

Step 2: Cloak your email address image

In your contact page code, include the following snippet of JavaScript code, which opens up a new message window on the site visitor’s, to be sent to your email address.

Note that in the code below, I have not used terms like “send”, “email” or “address” and I am breaking various items up (like the parts of the email address or the word “subject”) to make it as difficult as possible for bots to guess what’s going on. It’s not bullet proof, but every counter measure reduces more spam.