Wired

Webmonkey

  • Web Dev & Design
    • Ajax
    • Backend
    • Blog Publishing
    • CSS
    • Databases
    • Fonts
    • Frameworks
    • HTML
    • HTML 5
    • JavaScript
    • Mobile
    • Multimedia
    • Programming
    • Security
    • UI/UX
    • Web Standards
  • Software & Apps
    • Browsers
    • Software
    • Web Apps
  • Platform & APIs
    • APIs
    • Identity
    • Location
    • Social
    • Web Services
  • Reference
    • Color Charts
    • HTML Cheat Sheets
    • Special Characters
    • Glossary
    • Templates
    • Code Snippets
  • twitter
  • facebook
  • RSS Feeds
Jul 25 2008
File Under: Web Basics

The Safest Way to Publish Your Email Address

  • By Adam Duvander

At the dawn of time, including your email address on a web page didn’t seem like a horrible idea. Now, that’s the easiest way to get on every spam list around. Sadly, this makes it a little more difficult to solicit email from site visitors.

Silvan Mühlemann decided to find the best way to safely publish an email address. He started his test almost two years ago and recently published the results.

Silvan created nine email addresses and use a different method of obfuscation–nine different ways of hiding the actual address. Of the methods he tested, three of the email addresses never received a spam message.

The simplest method is to add markup with display: none styling so it doesn’t show:

email@<span style="display: none">null</span>example.com

The other two methods are reversing backwards text with unicode declarations and simple ROT13 encoding using JavaScript to decode. Next on the list, receiving just a few spam emails, was the popular email AT example DOT com method. Silvan did not test the email-as-image method, one employed by Facebook on its profile pages.

These methods probably won’t work with a mailto: link for easy clicking. Still, they all allow copy-pasting, instead of laborious re-typing, so they’re worth a shot. And yes, I know you could just use a contact form, but isn’t that a little impersonal? I think so.

Tags: email, spam
  • Post Comment  | 
  • Permalink
  • Digg
  • Stumble Upon
  • Facebook
  • Delicious
  • Reddit

Comments (0)

All fields required

Webmonkey's Picks

Browse Our Tutorials

HTML, JavaScript, design and more

Cheat Sheets

HTML, CSS and special characters

Color Charts

Brighten up your pages

Cut & Paste Code

Templates and snippets you can steal

Recent Comments

  • brighten on Chrome Web Browser Adds Automatic Translation, Better Privacy Controls
  • William on Code Optimizers Can Make View Source Useless
  • a on Blank HTML Document
  • Alex Kessinger on Code Optimizers Can Make View Source Useless
  • Ulitka on Turn Your WordPress Blog into a Forum
  • Recent Articles

  • Code Optimizers Can Make View Source Useless
  • Mozilla Labs Seeks to Tame Your Address Book With ‘Contacts’
  • Chrome Web Browser Adds Automatic Translation, Better Privacy Controls
  • Internet Explorer 9 Shows Up Faster, But Still Lacking
  • Opera on the iPhone? Yes, and Soon
  • Corrections | Sitemap | FAQ | Contact Us | Wired Staff | Advertising | Press Center | Subscription Services | Newsletter | RSS Feeds
    Condé Nast Web Sites:
    Webmonkey | Reddit | ArsTechnica | Details | Golf Digest | GQ | New Yorker

    Registration on or use of this site constitutes acceptance of our User Agreement (Revised 4/1/2009) and Privacy Policy (Revised 4/1/2009).

    Wired.com © 2010 Condé Nast Digital. All rights reserved.

    The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of Condé Nast Digital.