Hide your email address from spammers in plain sight

This technique uses CSS for displaying a human readable version of your email address, while hiding your address from spam bots and crawlers.

Step 1. The Markup

	<span class="obv">moc.elpmaxe@<span class="obv">garbage</span>elpmaxe</span>

Step 2. The CSS

.reverse {
    direction: rtl;
    unicode-bidi: bidi-override;
}

.obv{
    display:none;
}

Lets' step through the CSS

.reverse class

.obv class

That's it!

Your final email address should look like this:

moc.elpmaxe@elpmaxe

There is a drawback to this method. Munging your email address in this way will make it inaccessible to screen readers. It would be a good idea to also provide the disabled a way to contact you.

Now bask in the glow of knowing that spammers will be spamming a gibberish lemon of an email address, while nice people can read your actual address.

blog comments powered by Disqus