Samay Bhavsar

Blog


Securing your Email on website using CSS

January 28, 2010 by samay

Email address on a website is never safe. There are a number of bots running on the internet which collects email address from the webpages. Here is a secure way of securing your email address from such bots using CSS

Add this to your head section.

<style type="text/css">
span.secure-mail
{
unicode-bidi:bidi-override;
direction: rtl;
}
</style>

Now, write your email backwards using this style

<style class="secure-mail">ofni.yamas@yamas</span>

Category:

2 Comments

  1. This can also be done using PHP funtion called hide_email().

    Comment by samay — February 1, 2010 @ 1:26 pm

  2. How about writing like this?

    echo “gro&naibed*kitrak”|rev|tr “*” “@”|tr “&” “.”

    Comment by Kartik Mistry — February 10, 2010 @ 3:10 pm

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.