Obfuscate email with CSS.

02 Dec 2016

While creating this site, I wanted to add my e-mail explicitly to the list of contacts but not become a spam bot victim. Search results offered such solutions as HTML-encoding or JavaScript obfuscation. I opted for the CSS workaround since found it the most elegant: it changes text direction right to left. The trick works with the following code:

Now apply it to any text on your page to make it written right to

This will not work unfortunately for right to left scrips such as hebrew. Otherwise happy obfuscating!

comments powered by Disqus