I wanted to publish my email address on a static webpage, so that people can easily contact me. The problem was that I am afraid of spam bots that crawl the Internet and harvest email addresses from HTML code. Therefore, doing a simple
would expose my inbox to evil spammers.
Looking around to see how other people solved it, I came across a very smart solution that is claimed to be safe from email harvesting: using CSS to change text direction right to left.
To do that I created a simple css class
When using this class, everything will be displayed backwards.
unicode-bidi enables bidirectional text,
direction changes the text direction to right-to-left and
text-align makes sure the text is displayed on the left instead on the right (which is default for right-to-left text).
So, I did:
The result looks like this:
Try and harvest that you stupid spam bots!